[REF] mrp, resource: Changing labels

TASK-ID: 1879655
This commit is contained in:
Haresh Shyara
2018-08-30 17:33:47 +02:00
committed by Pierre Masereel
parent 86d10380a1
commit f8e3aed20b
6 changed files with 6 additions and 50 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ class MrpRouting(models.Model):
_name = 'mrp.routing'
_description = 'Routings'
name = fields.Char('Routing Name', required=True)
name = fields.Char('Routing', required=True)
active = fields.Boolean(
'Active', default=True,
help="If the active field is set to False, it will allow you to hide the routing without removing it.")
+1 -1
View File
@@ -14,7 +14,7 @@ class MrpWorkcenter(models.Model):
_inherit = ['resource.mixin']
# resource
name = fields.Char(related='resource_id.name', store=True)
name = fields.Char('Work Center', related='resource_id.name', store=True)
time_efficiency = fields.Float('Time Efficiency', related='resource_id.time_efficiency', default=100, store=True)
active = fields.Boolean('Active', related='resource_id.active', default=True, store=True)
-42
View File
@@ -326,48 +326,6 @@
parent="menu_mrp_manufacturing"
sequence="1"/>
<record id="mrp_production_action_planning" model="ir.actions.act_window">
<field name="name">Manufacturing Orders</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">mrp.production</field>
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form,calendar,pivot,graph</field>
<field name="domain">[('state', '=', 'confirmed'), ('routing_id', '!=', False)]</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a new manufacturing order
</p><p>
A manufacturing order, based on a bill of materials, will
consume raw materials and produce finished products.
</p><p>
Manufacturing orders are usually proposed automatically based
on customer requirements or automated rules like the minimum
stock rule.
</p>
</field>
</record>
<record id="mrp_production_action_waiting" model="ir.actions.act_window">
<field name="name">Waiting Availability MO</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">mrp.production</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form,kanban,calendar,pivot,graph</field>
<field name="domain">[('availability', 'in', ('waiting', 'partially_available'))]</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a new manufacturing order
</p><p>
A manufacturing order, based on a bill of materials, will
consume raw materials and produce finished products.
</p><p>
Manufacturing orders are usually proposed automatically based
on customer requirements or automated rules like the minimum
stock rule.
</p>
</field>
</record>
<record id="mrp_production_report" model="ir.actions.act_window">
<field name="name">Manufacturing Orders</field>
<field name="type">ir.actions.act_window</field>
+1 -3
View File
@@ -127,7 +127,7 @@
</record>
<record model="ir.actions.act_window" id="mrp_workorder_report">
<field name="name">Work Orders Performance</field>
<field name="name">Work Orders</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">mrp.workorder</field>
<field name="domain">[]</field>
@@ -548,11 +548,9 @@
<filter name="productive" string="Fully Productive" domain="[('loss_type','=','productive')]"/>
<separator/>
<group expand='0' string='Group by...'>
<filter string="Date" name="loss_date" context="{'group_by': 'date_start'}"/>
<filter string="User" name="user" context="{'group_by': 'create_uid'}"/>
<filter string='Workcenter' name="workcenter_group" context="{'group_by': 'workcenter_id'}"/>
<filter string="Loss Reason" name="loss_group" context="{'group_by': 'loss_id'}"/>
<filter string="TPM Big Loss" name="loss_group_main" context="{'group_by': 'loss_type'}"/>
</group>
</search>
</field>
+1 -1
View File
@@ -369,7 +369,7 @@
</record>
<record model="ir.actions.act_window" id="action_mrp_workorder_workcenter">
<field name="name">Work Orders</field>
<field name="name">Work Orders Planning</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">mrp.workorder</field>
<field name="view_type">form</field>
+2 -2
View File
@@ -279,14 +279,14 @@
<field name="model">resource.calendar</field>
<field name="arch" type="xml">
<tree string="Working Time">
<field name="name"/>
<field name="name" string="Working Time"/>
<field name="company_id" groups="base.group_multi_company"/>
</tree>
</field>
</record>
<record id="action_resource_calendar_form" model="ir.actions.act_window">
<field name="name">Working Time</field>
<field name="name">Working Times</field>
<field name="res_model">resource.calendar</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>