← Back to team overview

openerp-community-reviewer team mailing list archive

[Merge] lp:~credativ/ocb-addons/7.0-rounding-fix-cost-price into lp:ocb-addons

 

Jacob Hicks (credativ) has proposed merging lp:~credativ/ocb-addons/7.0-rounding-fix-cost-price into lp:ocb-addons.

Requested reviews:
  OpenERP Community Backports Team (ocb)
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/ocb-addons/7.0-rounding-fix-cost-price/+merge/212197
-- 
https://code.launchpad.net/~credativ/ocb-addons/7.0-rounding-fix-cost-price/+merge/212197
Your team OpenERP Community Backports Team is requested to review the proposed merge of lp:~credativ/ocb-addons/7.0-rounding-fix-cost-price into lp:ocb-addons.
=== modified file 'product/product.py'
--- product/product.py	2014-03-14 17:09:35 +0000
+++ product/product.py	2014-03-21 16:58:51 +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-10-23 16:05:04 +0000
+++ product/product_data.xml	2014-03-21 16:58:51 +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>


Follow ups