diff --git a/addons/mrp/__openerp__.py b/addons/mrp/__openerp__.py index cdc5dd6b5ac..f8630065598 100644 --- a/addons/mrp/__openerp__.py +++ b/addons/mrp/__openerp__.py @@ -88,10 +88,11 @@ 'board_manufacturing_demo.xml' ], 'test': [ + 'test/mrp_procurement.yml', 'test/mrp_packs.yml', 'test/mrp_phantom_bom.yml', 'test/mrp_production_order.yml', - 'test/mrp_procurement.yml' + ], 'installable': True, 'active': False, diff --git a/addons/mrp/company_view.xml b/addons/mrp/company_view.xml index e94324f8195..f5f06518565 100644 --- a/addons/mrp/company_view.xml +++ b/addons/mrp/company_view.xml @@ -6,6 +6,7 @@ res.company.mrp.config res.company form + 22 diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index fd9f8335987..fad20da2589 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -459,9 +459,9 @@ class mrp_production(osv.osv): 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': many2many_domain('stock.move', 'mrp_production_move_ids', 'production_id', 'move_id', 'Products to Consume', domain=[('state','not in', ('done', 'cancel'))], states={'done':[('readonly',True)]}), - 'move_lines2': many2many_domain('stock.move', 'mrp_production_move_ids', 'production_id', 'move_id', 'Consumed Products', domain=[('state','in', ('done', 'cancel'))], readonly=True), + 'move_lines2': many2many_domain('stock.move', 'mrp_production_move_ids', 'production_id', 'move_id', 'Consumed Products', domain=[('state','in', ('done', 'cancel'))]), 'move_created_ids': one2many_domain('stock.move', 'production_id', 'Moves Created', domain=[('state','not in', ('done', 'cancel'))], states={'done':[('readonly',True)]}), - 'move_created_ids2': one2many_domain('stock.move', 'production_id', 'Moves Created', domain=[('state','in', ('done', 'cancel'))], readonly=True), + 'move_created_ids2': one2many_domain('stock.move', 'production_id', 'Moves Created', domain=[('state','in', ('done', 'cancel'))]), 'product_lines': fields.one2many('mrp.production.product.line', 'production_id', 'Scheduled goods'), 'workcenter_lines': fields.one2many('mrp.production.workcenter.line', 'production_id', 'Work Centers Utilisation'), 'state': fields.selection([('draft','Draft'),('picking_except', 'Picking Exception'),('confirmed','Waiting Goods'),('ready','Ready to Produce'),('in_production','In Production'),('cancel','Cancelled'),('done','Done')],'State', readonly=True, diff --git a/addons/mrp/mrp_demo.xml b/addons/mrp/mrp_demo.xml index fa54dc0096f..f454a8d14a8 100644 --- a/addons/mrp/mrp_demo.xml +++ b/addons/mrp/mrp_demo.xml @@ -713,6 +713,9 @@ 12.0 + + + diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml index 5d47c8acf0c..b84ba1aca95 100644 --- a/addons/mrp/mrp_view.xml +++ b/addons/mrp/mrp_view.xml @@ -611,11 +611,11 @@ - - - - - + + + + +