From e17325325f1cb869628bf3dd27ebf4f754039963 Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Thu, 18 Apr 2013 15:47:36 +0200 Subject: [PATCH] [IMP] Add view_load bzr revid: jco@openerp.com-20130418134736-7sln2dbco6yfxf91 --- addons/product/product.py | 4 ++-- addons/product/product_data.xml | 7 +------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/addons/product/product.py b/addons/product/product.py index 6dbfcc76e49..52e53912540 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -300,9 +300,9 @@ class product_template(osv.osv): 'rental': fields.boolean('Can be Rent'), 'categ_id': fields.many2one('product.category','Category', required=True, change_default=True, domain="[('type','=','normal')]" ,help="Select category for the current product"), 'list_price': fields.float('Sale Price', digits_compute=dp.get_precision('Product Price'), help="Base price to compute the customer price. Sometimes called the catalog price."), - 'standard_price': fields.property('product.template', type = 'float', + 'standard_price': fields.property('', type = 'float', view_load=True, help="Cost price of the product used for standard stock valuation in accounting and used as a base price on purchase orders.", - groups="base.group_user"), + groups="base.group_user", string="Cost"), #fields.float('Cost', digits_compute=dp.get_precision('Product Price'), help="Cost price of the product used for standard stock valuation in accounting and used as a base price on purchase orders.", groups="base.group_user"), 'volume': fields.float('Volume', help="The volume in m3."), 'weight': fields.float('Gross Weight', digits_compute=dp.get_precision('Stock Weight'), help="The gross weight in Kg."), diff --git a/addons/product/product_data.xml b/addons/product/product_data.xml index 8a24a9fb5ef..fe45d7685d6 100644 --- a/addons/product/product_data.xml +++ b/addons/product/product_data.xml @@ -190,15 +190,10 @@ parameter) will see those record just disappear. Product --> - - standard_price - - - 75.0 - + 30.0 Service