[REF] mrp, resource: Changing labels
TASK-ID: 1879655
This commit is contained in:
committed by
Pierre Masereel
parent
86d10380a1
commit
f8e3aed20b
@@ -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.")
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user