summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryhu-odoo <yhu@odoo.com>2020-07-09 13:52:03 +0000
committeryhu-odoo <yhu@odoo.com>2020-07-22 08:53:36 +0000
commitd976eb072ad3ca1ecb1a2123fef214a208c18905 (patch)
tree4e8a48d91f80df684fbe130f228c9a64493c9f76
parentb9ffee84e40a586a44d7988a5782d638565c6481 (diff)
[IMP] mrp: Add empty screen sample to work center overview
Enable empty screen sample for work center overview, and improve the helper message of work center and work order. We also removed create button in the list view of work orders, and no create in calendar. Task 2253588 PR #54415 X-original-commit: 26c7802f64b37fdb3159bef9b23741ec3fca4f01
-rw-r--r--addons/mrp/views/mrp_workcenter_views.xml9
-rw-r--r--addons/mrp/views/mrp_workorder_views.xml10
2 files changed, 11 insertions, 8 deletions
diff --git a/addons/mrp/views/mrp_workcenter_views.xml b/addons/mrp/views/mrp_workcenter_views.xml
index ec8a4b7ca43..d80ee5af4be 100644
--- a/addons/mrp/views/mrp_workcenter_views.xml
+++ b/addons/mrp/views/mrp_workcenter_views.xml
@@ -142,7 +142,7 @@
<field name="name">mrp.workcenter.kanban</field>
<field name="model">mrp.workcenter</field>
<field name="arch" type="xml">
- <kanban class="oe_background_grey o_kanban_dashboard o_workcenter_kanban" create="0">
+ <kanban class="oe_background_grey o_kanban_dashboard o_workcenter_kanban" create="0" sample="1">
<field name="name"/>
<field name="color"/>
<field name="workorder_count"/>
@@ -400,9 +400,8 @@
<p class="o_view_nocontent_smiling_face">
Create a new work center
</p><p>
- Manufacturing operations are processed at Work Centers. A Work Center can be composed
- of workers and/or machines, they are used for costing, scheduling, capacity planning, etc.
- The Work Centers are defined on the Routing's operations.
+ Manufacturing operations are processed at Work Centers. A Work Center can be composed of
+ workers and/or machines, they are used for costing, scheduling, capacity planning, etc.
</p>
</field>
</record>
@@ -420,7 +419,7 @@
</p><p>
Manufacturing operations are processed at Work Centers. A Work Center can be composed of
workers and/or machines, they are used for costing, scheduling, capacity planning, etc.
- The Work Centers are defined on the Routing's operations.
+ They can be defined via the configuration menu.
</p>
</field>
</record>
diff --git a/addons/mrp/views/mrp_workorder_views.xml b/addons/mrp/views/mrp_workorder_views.xml
index 857dd9948ef..e64823e40c4 100644
--- a/addons/mrp/views/mrp_workorder_views.xml
+++ b/addons/mrp/views/mrp_workorder_views.xml
@@ -113,6 +113,9 @@
<field name="priority" eval="10"/>
<field name="inherit_id" ref="mrp.mrp_production_workorder_tree_editable_view"/>
<field name="arch" type="xml">
+ <xpath expr="//tree" position="attributes">
+ <attribute name="create">0</attribute>
+ </xpath>
<field name="workcenter_id" position="after">
<field name="production_id"/>
</field>
@@ -258,7 +261,7 @@
<field name="name">mrp.production.work.order.calendar</field>
<field name="model">mrp.workorder</field>
<field name="arch" type="xml">
- <calendar date_stop="date_planned_finished" date_start="date_planned_start" string="Operations" color="workcenter_id" event_limit="5" delete="0">
+ <calendar date_stop="date_planned_finished" date_start="date_planned_start" string="Operations" color="workcenter_id" event_limit="5" delete="0" create="0">
<field name="workcenter_id" filters="1"/>
<field name="production_id"/>
<field name="state"/>
@@ -473,9 +476,10 @@
<field name="context">{'search_default_ready': True, 'search_default_progress': True, 'search_default_pending': True}</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
- Plan a Manufacturing Order
+ Create a Manufacturing Order
</p><p>
- Work orders correspond to the different operations, taking place at specific workcenters, which are performed to manufacture a product. Those can be defined in a routing that will be assigned to a bill of material.
+ Work orders correspond to the different operations, taking place at specific workcenters, which are performed to manufacture a product.
+ Those can be defined on bills of materials or directly on manufacturing orders.
</p>
</field>
</record>