From b2f4dce58f4b6038bbfeef793e009b0f7b6cb71c Mon Sep 17 00:00:00 2001 From: "uco (Open ERP)" Date: Tue, 14 Sep 2010 18:15:06 +0530 Subject: [PATCH] [IMP] mrp, mrp_xxx: Form and List views improved according to Checklist guidelines. bzr revid: uco@tinyerp.com-20100914124506-y0ls43epnm2uutxr --- addons/mrp/mrp.py | 6 +-- addons/mrp/mrp_installer.xml | 4 +- addons/mrp/mrp_view.xml | 29 +++++++------ addons/mrp_operations/mrp_operations_view.xml | 38 ++++++++-------- addons/mrp_repair/mrp_repair.py | 2 +- addons/mrp_repair/mrp_repair_view.xml | 43 +++++++++---------- .../wizard/mrp_repair_make_invoice_view.xml | 8 ++-- addons/resource/resource_view.xml | 3 +- 8 files changed, 67 insertions(+), 66 deletions(-) diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 109d11ede8b..a7066e2c1a3 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -176,8 +176,8 @@ class mrp_bom(osv.osv): 'code': fields.char('Reference', size=16), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the bills of material without removing it."), 'type': fields.selection([('normal','Normal BoM'),('phantom','Sets / Phantom')], 'BoM Type', required=True, - help= "If a sub-product is used in several products, it can be useful to create its own BoM."\ - "Though if you don't want separated production orders for this sub-product, select Set/Phantom as BoM type."\ + help= "If a sub-product is used in several products, it can be useful to create its own BoM. "\ + "Though if you don't want separated production orders for this sub-product, select Set/Phantom as BoM type. "\ "If a Phantom BoM is used for a root product, it will be sold and shipped as a set of components, instead of being produced."), 'method': fields.function(_compute_type, string='Method', method=True, type='selection', selection=[('',''),('stock','On Stock'),('order','On Order'),('set','Set / Pack')]), 'date_start': fields.date('Valid From', help="Validity of this BoM or component. Keep empty if it's always valid."), @@ -476,7 +476,7 @@ class mrp_production(osv.osv): 'name': lambda x, y, z, c: x.pool.get('ir.sequence').get(y, z, 'mrp.production') or '/', 'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'mrp.production', context=c), } - _order = 'date_planned asc, priority desc'; + _order = 'priority desc, date_planned asc'; def _check_qty(self, cr, uid, ids): orders = self.browse(cr, uid, ids) diff --git a/addons/mrp/mrp_installer.xml b/addons/mrp/mrp_installer.xml index bcec9af75f6..2ca500afd93 100644 --- a/addons/mrp/mrp_installer.xml +++ b/addons/mrp/mrp_installer.xml @@ -8,7 +8,7 @@
- MRP Modules Configuration + MRP Application Configuration
@@ -22,7 +22,7 @@ - Configure + _Configure diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml index 5ff69217312..e7783757534 100644 --- a/addons/mrp/mrp_view.xml +++ b/addons/mrp/mrp_view.xml @@ -64,7 +64,6 @@ form
- @@ -252,15 +251,18 @@ form - - - - - - + + + + + + + + + @@ -380,7 +382,6 @@ -
@@ -510,10 +511,10 @@ + - @@ -638,16 +639,16 @@ states="done,cancel"/> - + -