From 1f56befb600bb91961bdbc163a65a18df076dabb Mon Sep 17 00:00:00 2001
From: "olt@tinyerp.com" <>
Date: Mon, 14 Dec 2009 15:56:27 +0100
Subject: [PATCH] [IMP] board_manufacturing, mrp, mrp_operations, report_mrp:
menu reorganisation + changed all 'workcenter' to 'work center'
bzr revid: olt@tinyerp.com-20091214145627-ql9ounrorougkgdw
---
addons/board_manufacturing/__terp__.py | 2 +-
.../board_manufacturing_view.xml | 2 +-
addons/mrp/mrp.py | 14 ++---
addons/mrp/mrp_view.xml | 59 ++++++++-----------
addons/mrp/mrp_wizard.xml | 4 +-
addons/mrp/report/price.py | 2 +-
addons/mrp_operations/__terp__.py | 6 +-
addons/mrp_operations/mrp_operations.py | 4 +-
.../mrp_operations/mrp_operations_report.xml | 2 +-
addons/mrp_operations/mrp_operations_view.xml | 2 +-
addons/report_mrp/__terp__.py | 2 +-
addons/report_mrp/report_mrp.py | 4 +-
addons/report_mrp/report_mrp_view.xml | 8 +--
13 files changed, 50 insertions(+), 61 deletions(-)
diff --git a/addons/board_manufacturing/__terp__.py b/addons/board_manufacturing/__terp__.py
index 5a369e16aa4..d646e2ac54a 100644
--- a/addons/board_manufacturing/__terp__.py
+++ b/addons/board_manufacturing/__terp__.py
@@ -28,7 +28,7 @@
This module creates a dashboards for Manufaturing that includes:
* List of next production orders
* List of deliveries (out packing)
- * Graph of workcenter load
+ * Graph of work center load
* List of procurement in exception
""",
'author': 'Tiny',
diff --git a/addons/board_manufacturing/board_manufacturing_view.xml b/addons/board_manufacturing/board_manufacturing_view.xml
index 0081dbbbdc4..d128bf62b81 100644
--- a/addons/board_manufacturing/board_manufacturing_view.xml
+++ b/addons/board_manufacturing/board_manufacturing_view.xml
@@ -20,7 +20,7 @@
-
+
diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py
index 65639258381..dd6df6ff4ff 100644
--- a/addons/mrp/mrp.py
+++ b/addons/mrp/mrp.py
@@ -29,7 +29,7 @@ from mx import DateTime
from tools.translate import _
#----------------------------------------------------------
-# Workcenters
+# Work Centers
#----------------------------------------------------------
# capacity_hour : capacity per hour. default: 1.0.
# Eg: If 5 concurrent operations at one time: capacity = 5 (because 5 employees)
@@ -39,9 +39,9 @@ from tools.translate import _
#
class mrp_workcenter(osv.osv):
_name = 'mrp.workcenter'
- _description = 'Workcenter'
+ _description = 'Work Center'
_columns = {
- 'name': fields.char('Workcenter Name', size=64, required=True),
+ 'name': fields.char('Work Center Name', size=64, required=True),
'active': fields.boolean('Active'),
'type': fields.selection([('machine','Machine'),('hr','Human Resource'),('tool','Tool')], 'Type', required=True),
'code': fields.char('Code', size=16),
@@ -107,7 +107,7 @@ class mrp_routing(osv.osv):
'code': fields.char('Code', size=8),
'note': fields.text('Description'),
- 'workcenter_lines': fields.one2many('mrp.routing.workcenter', 'routing_id', 'Workcenters'),
+ 'workcenter_lines': fields.one2many('mrp.routing.workcenter', 'routing_id', 'Work Centers'),
'location_id': fields.many2one('stock.location', 'Production Location',
help="Keep empty if you produce at the location where the finished products are needed." \
@@ -124,7 +124,7 @@ class mrp_routing_workcenter(osv.osv):
_name = 'mrp.routing.workcenter'
_description = 'Routing workcenter usage'
_columns = {
- 'workcenter_id': fields.many2one('mrp.workcenter', 'Workcenter', required=True),
+ 'workcenter_id': fields.many2one('mrp.workcenter', 'Work Center', required=True),
'name': fields.char('Name', size=64, required=True),
'sequence': fields.integer('Sequence'),
'cycle_nbr': fields.float('Number of Cycle', required=True,
@@ -437,7 +437,7 @@ class mrp_production(osv.osv):
'move_created_ids': fields.one2many('stock.move', 'production_id', 'Moves Created'),
'product_lines': fields.one2many('mrp.production.product.line', 'production_id', 'Scheduled goods'),
- 'workcenter_lines': fields.one2many('mrp.production.workcenter.line', 'production_id', 'Workcenters Utilisation'),
+ '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,
help='When the production order is created the state is set to \'Draft\'.\n If the order is confirmed the state is set to \'Waiting Goods\'.\n If any exceptions are there, the state is set to \'Packing Exception\'.\
\nIf the stock is available then the state is set to \'Ready to Produce\'.\n When the production get started then the state is set to \'In Production\'.\n When the production is over, the state is set to \'Done\'.'),
@@ -757,7 +757,7 @@ class mrp_production_workcenter_line(osv.osv):
_order = 'sequence'
_columns = {
'name': fields.char('Work Order', size=64, required=True),
- 'workcenter_id': fields.many2one('mrp.workcenter', 'Workcenter', required=True),
+ 'workcenter_id': fields.many2one('mrp.workcenter', 'Work Center', required=True),
'cycle': fields.float('Nbr of cycle', digits=(16,2)),
'hour': fields.float('Nbr of hour', digits=(16,2)),
'sequence': fields.integer('Sequence', required=True),
diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml
index 2c2434bea29..123e48ef205 100644
--- a/addons/mrp/mrp_view.xml
+++ b/addons/mrp/mrp_view.xml
@@ -35,15 +35,6 @@
parent="menu_mrp_root"
groups="group_mrp_manager"
sequence="-50" />
-
-
mrp.property.tree
@@ -82,10 +73,15 @@
-
+ parent="menu_mrp_configuration"
+ groups="base.group_extended"
+ sequence="10" />
+
@@ -93,7 +89,7 @@
mrp.workcenter
tree
-
+
@@ -104,7 +100,7 @@
mrp.workcenter
form
-
- Workcenters
+ Work Centers
ir.actions.act_window
mrp.workcenter
form
-