diff --git a/addons/mrp/__openerp__.py b/addons/mrp/__openerp__.py index b7a6466bbaf..4514c146a05 100644 --- a/addons/mrp/__openerp__.py +++ b/addons/mrp/__openerp__.py @@ -50,7 +50,7 @@ Reports provided by this module: * Bill of Material structure and components - * Load forecast on workcenters + * Load forecast on Work Centers * Print a production order * Stock forecasts Dashboard provided by this module:: diff --git a/addons/mrp/i18n/mrp.pot b/addons/mrp/i18n/mrp.pot index 40d9196fc6a..25a8bea531d 100644 --- a/addons/mrp/i18n/mrp.pot +++ b/addons/mrp/i18n/mrp.pot @@ -534,7 +534,7 @@ msgstr "" #. module: mrp #: help:mrp.workcenter,costs_cycle:0 -msgid "Specify Cost of Work center per cycle." +msgid "Specify Cost of Work Center per cycle." msgstr "" #. module: mrp @@ -751,7 +751,7 @@ msgstr "" #. module: mrp #: model:ir.model,name:mrp.model_mrp_routing_workcenter -msgid "Workcenter Usage" +msgid "Work Center Usage" msgstr "" #. module: mrp @@ -913,7 +913,7 @@ msgstr "" #. module: mrp #: help:mrp.workcenter,capacity_per_cycle:0 -msgid "Number of operations this work center can do in parallel. If this work center represents a team of 5 workers, the capacity per cycle is 5." +msgid "Number of operations this Work Center can do in parallel. If this Work Center represents a team of 5 workers, the capacity per cycle is 5." msgstr "" #. module: mrp @@ -1053,7 +1053,7 @@ msgid "\n" "\n" " Reports provided by this module:\n" " * Bill of Material structure and components\n" -" * Load forecast on workcenters\n" +" * Load forecast on Work Centers\n" " * Print a production order\n" " * Stock forecasts\n" " Dashboard provided by this module::\n" @@ -2012,7 +2012,7 @@ msgstr "" #. module: mrp #: help:mrp.routing.workcenter,routing_id:0 -msgid "Routing indicates all the workcenters used, for how long and/or cycles.If Routing is indicated then,the third tab of a production order (workcenters) will be automatically pre-completed." +msgid "Routing indicates all the Work Centers used, for how long and/or cycles.If Routing is indicated then,the third tab of a production order (Work Centers) will be automatically pre-completed." msgstr "" #. module: mrp @@ -2039,7 +2039,7 @@ msgstr "" #. module: mrp #: help:mrp.workcenter,note:0 -msgid "Description of the work center. Explain here what's a cycle according to this work center." +msgid "Description of the Work Center. Explain here what's a cycle according to this Work Center." msgstr "" #. module: mrp diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 322567674cb..2fa72d6ded0 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -39,15 +39,15 @@ class mrp_workcenter(osv.osv): _description = 'Work Center' _inherits = {'resource.resource':"resource_id"} _columns = { - 'note': fields.text('Description', help="Description of the work center. Explain here what's a cycle according to this work center."), - 'capacity_per_cycle': fields.float('Capacity per Cycle', help="Number of operations this work center can do in parallel. If this work center represents a team of 5 workers, the capacity per cycle is 5."), + 'note': fields.text('Description', help="Description of the Work Center. Explain here what's a cycle according to this Work Center."), + 'capacity_per_cycle': fields.float('Capacity per Cycle', help="Number of operations this Work Center can do in parallel. If this Work Center represents a team of 5 workers, the capacity per cycle is 5."), 'time_cycle': fields.float('Time for 1 cycle (hour)', help="Time in hours for doing one cycle."), 'time_start': fields.float('Time before prod.', help="Time in hours for the setup."), 'time_stop': fields.float('Time after prod.', help="Time in hours for the cleaning."), - 'costs_hour': fields.float('Cost per hour', help="Specify Cost of Work center per hour."), + 'costs_hour': fields.float('Cost per hour', help="Specify Cost of Work Center per hour."), 'costs_hour_account_id': fields.many2one('account.analytic.account', 'Hour Account', domain=[('type','<>','view')], help="Complete this only if you want automatic analytic accounting entries on production orders."), - 'costs_cycle': fields.float('Cost per cycle', help="Specify Cost of Work center per cycle."), + 'costs_cycle': fields.float('Cost per cycle', help="Specify Cost of Work Center per cycle."), 'costs_cycle_account_id': fields.many2one('account.analytic.account', 'Cycle Account', domain=[('type','<>','view')], help="Complete this only if you want automatic analytic accounting entries on production orders."), 'costs_journal_id': fields.many2one('account.analytic.journal', 'Analytic Journal'), @@ -75,7 +75,7 @@ mrp_workcenter() class mrp_routing(osv.osv): """ - For specifying the routings of workcenters. + For specifying the routings of Work Centers. """ _name = 'mrp.routing' _description = 'Routing' @@ -102,20 +102,20 @@ mrp_routing() class mrp_routing_workcenter(osv.osv): """ - Defines working cycles and hours of a workcenter using routings. + Defines working cycles and hours of a Work Center using routings. """ _name = 'mrp.routing.workcenter' - _description = 'Workcenter Usage' + _description = 'Work Center Usage' _columns = { 'workcenter_id': fields.many2one('mrp.workcenter', 'Work Center', required=True), 'name': fields.char('Name', size=64, required=True), - 'sequence': fields.integer('Sequence', help="Gives the sequence order when displaying a list of routing work centers."), + 'sequence': fields.integer('Sequence', help="Gives the sequence order when displaying a list of routing Work Centers."), 'cycle_nbr': fields.float('Number of Cycles', required=True, help="Number of iterations this work center has to do in the specified operation of the routing."), - 'hour_nbr': fields.float('Number of Hours', required=True, help="Time in hours for this work center to achieve the operation of the specified routing."), + 'hour_nbr': fields.float('Number of Hours', required=True, help="Time in hours for this Work Center to achieve the operation of the specified routing."), 'routing_id': fields.many2one('mrp.routing', 'Parent Routing', select=True, ondelete='cascade', - help="Routing indicates all the workcenters used, for how long and/or cycles." \ - "If Routing is indicated then,the third tab of a production order (workcenters) will be automatically pre-completed."), + help="Routing indicates all the Work Centers used, for how long and/or cycles." \ + "If Routing is indicated then,the third tab of a production order (Work Centers) will be automatically pre-completed."), 'note': fields.text('Description'), 'company_id': fields.related('routing_id', 'company_id', type='many2one', relation='res.company', string='Company', store=True, readonly=True), } @@ -299,14 +299,14 @@ class mrp_bom(osv.osv): return result def _bom_explode(self, cr, uid, bom, factor, properties=[], addthis=False, level=0): - """ Finds Products and Workcenters for related BoM for manufacturing order. + """ Finds Products and Work Centers for related BoM for manufacturing order. @param bom: BoM of particular product. @param factor: Factor of product UoM. @param properties: A List of properties Ids. @param addthis: If BoM found then True else False. @param level: Depth level to find BoM lines starts from 10. @return: result: List of dictionaries containing product details. - result2: List of dictionaries containing workcenter details. + result2: List of dictionaries containing Work Center details. """ factor = factor / (bom.product_efficiency or 1.0) factor = rounding(factor, bom.product_rounding) diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml index ed16986e715..1ac11707870 100644 --- a/addons/mrp/mrp_view.xml +++ b/addons/mrp/mrp_view.xml @@ -9,8 +9,6 @@ - - - + mrp.production.form.inherit mrp.production @@ -22,7 +22,7 @@ - + mrp.production.form.inherit2 mrp.production @@ -40,7 +40,7 @@ - + mrp.production.workcenter.line.tree mrp.production.workcenter.line @@ -151,9 +151,9 @@ - - - + + + @@ -228,7 +228,7 @@ - + Work Centers ir.actions.act_window diff --git a/addons/mrp_operations/report/mrp_workorder_analysis.py b/addons/mrp_operations/report/mrp_workorder_analysis.py index 47fb562e96a..e559f97fbed 100644 --- a/addons/mrp_operations/report/mrp_workorder_analysis.py +++ b/addons/mrp_operations/report/mrp_workorder_analysis.py @@ -40,9 +40,9 @@ class mrp_workorder(osv.osv): 'total_cycles': fields.float('Total Cycles', readonly=True), 'delay': fields.float('Delay', readonly=True), 'production_id': fields.many2one('mrp.production', 'Production', readonly=True), - 'workcenter_id': fields.many2one('mrp.workcenter', 'Workcenter', readonly=True) + 'workcenter_id': fields.many2one('mrp.workcenter', 'Work Center', readonly=True) } - + def init(self, cr): tools.drop_view_if_exists(cr, 'mrp_workorder') cr.execute(""" @@ -66,7 +66,7 @@ class mrp_workorder(osv.osv): from mrp_production_workcenter_line wl left join mrp_workcenter w on (w.id = wl.workcenter_id) left join mrp_production mp on (mp.id = wl.production_id) - group by + group by w.costs_hour, mp.product_id, mp.name, wl.state, wl.date_planned, wl.production_id, wl.workcenter_id )""") diff --git a/addons/mrp_operations/report/mrp_workorder_analysis_view.xml b/addons/mrp_operations/report/mrp_workorder_analysis_view.xml index 6052feb1936..d25ec5132f6 100644 --- a/addons/mrp_operations/report/mrp_workorder_analysis_view.xml +++ b/addons/mrp_operations/report/mrp_workorder_analysis_view.xml @@ -70,7 +70,7 @@ - +