← Back to team overview

openerp-dev-web team mailing list archive

[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-726816-rha into lp:openobject-addons

 

Rifakat Haradwala (OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-726816-rha into lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  #726816 Product field standard_price should use 'Purchase Price' precision instead of 'Account' precision
  https://bugs.launchpad.net/bugs/726816

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-726816-rha/+merge/52006

Bug #726816 Product: Product field standard_price should use 'Purchase Price' precision instead of 'Account' precision
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-726816-rha/+merge/52006
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-726816-rha.
=== modified file 'product/product.py'
--- product/product.py	2011-02-28 10:49:36 +0000
+++ product/product.py	2011-03-03 06:15:20 +0000
@@ -271,7 +271,7 @@
         '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('Sale Price'), help="Base price for computing the customer price. Sometimes called the catalog price."),
-        'standard_price': fields.float('Cost Price', required=True, digits_compute=dp.get_precision('Account'), help="Product's cost for accounting stock valuation. It is the base price for the supplier price."),
+        'standard_price': fields.float('Cost Price', required=True, digits_compute=dp.get_precision('Purchase Price'), help="Product's cost for accounting stock valuation. It is the base price for the supplier price."),
         'volume': fields.float('Volume', help="The volume in m3."),
         'weight': fields.float('Gross weight', help="The gross weight in Kg."),
         'weight_net': fields.float('Net weight', help="The net weight in Kg."),


Follow ups