credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #05841
[Merge] lp:~credativ/openobject-addons/7.0-rounding-fix-cost-price into lp:openobject-addons/7.0
Jacob Hicks (credativ) has proposed merging lp:~credativ/openobject-addons/7.0-rounding-fix-cost-price into lp:openobject-addons/7.0.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #1187924 in OpenERP Addons: "[v7,v6]Stock accounting outgoing shipment rounding"
https://bugs.launchpad.net/openobject-addons/+bug/1187924
For more details, see:
https://code.launchpad.net/~credativ/openobject-addons/7.0-rounding-fix-cost-price/+merge/212209
--
https://code.launchpad.net/~credativ/openobject-addons/7.0-rounding-fix-cost-price/+merge/212209
Your team credativ is subscribed to branch lp:~credativ/openobject-addons/7.0-rounding-fix-cost-price.
=== modified file 'product/product.py'
--- product/product.py 2014-03-05 17:14:56 +0000
+++ product/product.py 2014-03-21 17:22:12 +0000
@@ -304,7 +304,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('Product Price'), help="Base price to compute the customer price. Sometimes called the catalog price."),
- 'standard_price': 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"),
+ 'standard_price': fields.float('Cost', digits_compute=dp.get_precision('Purchase 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."),
'weight_net': fields.float('Net Weight', digits_compute=dp.get_precision('Stock Weight'), help="The net weight in Kg."),
=== modified file 'product/product_data.xml'
--- product/product_data.xml 2012-12-07 13:41:10 +0000
+++ product/product_data.xml 2014-03-21 17:22:12 +0000
@@ -165,6 +165,10 @@
<field name="name">Product Price</field>
<field name="digits">2</field>
</record>
+ <record forcecreate="True" id="decimal_purchase" model="decimal.precision">
+ <field name="name">Purchase Price</field>
+ <field name="digits">6</field>
+ </record>
<record forcecreate="True" id="decimal_discount" model="decimal.precision">
<field name="name">Discount</field>
<field name="digits">2</field>