openerp-dev-web team mailing list archive
-
openerp-dev-web team
-
Mailing list archive
-
Message #03706
[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-718722-rha into lp:openobject-addons
Rifakat Haradwala (OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-718722-rha into lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
#718722 [PS] Manufacturing : raw material units should always be rounded up
https://bugs.launchpad.net/bugs/718722
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-718722-rha/+merge/52161
Bug #718722 mrp: raw material units should always be rounded up
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-718722-rha/+merge/52161
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-718722-rha.
=== modified file 'mrp/mrp.py'
--- mrp/mrp.py 2011-02-15 12:50:01 +0000
+++ mrp/mrp.py 2011-03-04 04:52:00 +0000
@@ -447,7 +447,7 @@
'picking_id': fields.many2one('stock.picking', 'Picking list', readonly=True, ondelete="restrict",
help="This is the internal picking list that brings the finished product to the production plan"),
'move_prod_id': fields.many2one('stock.move', 'Move product', readonly=True),
- 'move_lines': fields.many2many('stock.move', 'mrp_production_move_ids', 'production_id', 'move_id', 'Products to Consume', domain=[('state','not in', ('done', 'cancel'))], states={'done':[('readonly',True)]}),
+ 'move_lines': fields.many2many('stock.move', 'mrp_production_move_ids', 'production_id', 'move_id', 'Products to Consume', domain=[('state','not in', ('done', 'cancel'))], readonly=True, states={'draft':[('readonly',False)]}),
'move_lines2': fields.many2many('stock.move', 'mrp_production_move_ids', 'production_id', 'move_id', 'Consumed Products', domain=[('state','in', ('done', 'cancel'))]),
'move_created_ids': fields.one2many('stock.move', 'production_id', 'Moves Created', domain=[('state','not in', ('done', 'cancel'))], states={'done':[('readonly',True)]}),
'move_created_ids2': fields.one2many('stock.move', 'production_id', 'Moves Created', domain=[('state','in', ('done', 'cancel'))]),
Follow ups