From 0793892ca416afcb4b2e489d8eadcc8bfedd5580 Mon Sep 17 00:00:00 2001 From: Joel Grand-Guillaume Date: Wed, 23 Dec 2009 16:28:37 +0100 Subject: [PATCH] [IMP] Change the demo data according to last modification bzr revid: joel.grandguillaume@camptocamp.com-20091223152837-b46zaj4iv1ua02jb --- addons/multi_company/multi_company_view.xml | 20 +++++++++++++ addons/multi_company/product.py | 33 +++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 addons/multi_company/multi_company_view.xml create mode 100644 addons/multi_company/product.py diff --git a/addons/multi_company/multi_company_view.xml b/addons/multi_company/multi_company_view.xml new file mode 100644 index 00000000000..96a4695f576 --- /dev/null +++ b/addons/multi_company/multi_company_view.xml @@ -0,0 +1,20 @@ + + + + + + product.normal.form + product.product + form + + + + + + + + + + + + diff --git a/addons/multi_company/product.py b/addons/multi_company/product.py new file mode 100644 index 00000000000..988ef7ee39e --- /dev/null +++ b/addons/multi_company/product.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + +from osv import fields, osv +from tools import config + +class product_product(osv.osv): + _inherit = "product.product" + + _columns = { + 'standard_price_usd': fields.float('Cost Price USD', required=True, digits=(16, int(config['price_accuracy'])), + help="Product's cost in USDfor accounting stock valuation."), + } + +product_product() \ No newline at end of file