Merge lp:~credativ/openobject-addons/6.0-stockmove-unitprice-precision into lp:~credativ/openobject-addons/6.0

Proposed by Kinner Vachhani
Status: Needs review
Proposed branch: lp:~credativ/openobject-addons/6.0-stockmove-unitprice-precision
Merge into: lp:~credativ/openobject-addons/6.0
Diff against target: 12 lines (+1/-1)
1 file modified
stock/stock.py (+1/-1)
To merge this branch: bzr merge lp:~credativ/openobject-addons/6.0-stockmove-unitprice-precision
Reviewer Review Type Date Requested Status
credativ Pending
Review via email: mp+170203@code.launchpad.net

Description of the change

[Bug fix] stock accounting: price_unit is not precise enough

To post a comment you must log in.

Unmerged revisions

5226. By Kinner Vachhani

stock move price_unit precision changed to 'Purchase Price' from 'Account'

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'stock/stock.py'
2--- stock/stock.py 2013-04-24 21:59:10 +0000
3+++ stock/stock.py 2013-06-18 21:07:27 +0000
4@@ -1566,7 +1566,7 @@
5 'state': fields.selection([('draft', 'Draft'), ('waiting', 'Waiting'), ('confirmed', 'Not Available'), ('assigned', 'Available'), ('done', 'Done'), ('cancel', 'Cancelled')], 'State', readonly=True, select=True,
6 help='When the stock move is created it is in the \'Draft\' state.\n After that, it is set to \'Not Available\' state if the scheduler did not find the products.\n When products are reserved it is set to \'Available\'.\n When the picking is done the state is \'Done\'.\
7 \nThe state is \'Waiting\' if the move is waiting for another one.'),
8- 'price_unit': fields.float('Unit Price', digits_compute= dp.get_precision('Account'), help="Technical field used to record the product cost set by the user during a picking confirmation (when average price costing method is used)"),
9+ 'price_unit': fields.float('Unit Price', digits_compute= dp.get_precision('Purchase Price'), help="Technical field used to record the product cost set by the user during a picking confirmation (when average price costing method is used)"),
10 'price_currency_id': fields.many2one('res.currency', 'Currency for average price', help="Technical field used to record the currency chosen by the user during a picking confirmation (when average price costing method is used)"),
11 'company_id': fields.many2one('res.company', 'Company', required=True, select=True),
12 'partner_id': fields.related('picking_id','address_id','partner_id',type='many2one', relation="res.partner", string="Partner", store=True, select=True),

Subscribers

People subscribed via source and target branches

to all changes: