summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryhu-odoo <yhu@odoo.com>2020-08-10 07:47:01 +0000
committeryhu-odoo <yhu@odoo.com>2020-09-09 06:48:50 +0000
commit762457f1edd84208f43bd85de6be7316cfd20780 (patch)
tree97e8b3b063ac836451ae1ff146bfdf0d2b706c3d
parentd08133719146dc1c8cc2d9713966a2016a3c3c9e (diff)
[IMP] stock,mrp,product,pruchase,repair: improve empty screen
Improve empty screen, add sample data. Task 2310494 PR #55910
-rw-r--r--addons/mrp/views/mrp_bom_views.xml2
-rw-r--r--addons/mrp/views/mrp_production_views.xml2
-rw-r--r--addons/mrp/views/mrp_unbuild_views.xml2
-rw-r--r--addons/mrp/views/mrp_workcenter_views.xml14
-rw-r--r--addons/mrp/views/mrp_workorder_views.xml27
-rw-r--r--addons/mrp/views/product_views.xml8
-rw-r--r--addons/product/views/product_views.xml2
-rw-r--r--addons/purchase/views/purchase_views.xml6
-rw-r--r--addons/repair/views/repair_views.xml6
-rw-r--r--addons/stock/views/product_strategy_views.xml9
-rw-r--r--addons/stock/views/product_views.xml4
-rw-r--r--addons/stock/views/stock_move_views.xml2
-rw-r--r--addons/stock/views/stock_orderpoint_views.xml2
-rw-r--r--addons/stock/views/stock_picking_views.xml16
-rw-r--r--addons/stock_account/views/stock_valuation_layer_views.xml3
15 files changed, 56 insertions, 49 deletions
diff --git a/addons/mrp/views/mrp_bom_views.xml b/addons/mrp/views/mrp_bom_views.xml
index 9e8dcfcc48d..f555eaae7fe 100644
--- a/addons/mrp/views/mrp_bom_views.xml
+++ b/addons/mrp/views/mrp_bom_views.xml
@@ -214,7 +214,7 @@
<field name="context">{'default_company_id': allowed_company_ids[0]}</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
- Create a bill of materials
+ No bill of materials found. Let's create one!
</p><p>
Bills of materials allow you to define the list of required raw
materials used to make a finished product; through a manufacturing
diff --git a/addons/mrp/views/mrp_production_views.xml b/addons/mrp/views/mrp_production_views.xml
index bc4924b2d6b..30b4e775d9c 100644
--- a/addons/mrp/views/mrp_production_views.xml
+++ b/addons/mrp/views/mrp_production_views.xml
@@ -514,7 +514,7 @@
<field name="domain">[('picking_type_id.active', '=', True)]</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
- Create a new manufacturing order <br/>
+ No manufacturing order found. Let's create one.
</p><p>
Consume <a name="%(product.product_template_action)d" type='action' tabindex="-1">components</a> and build finished products using <a name="%(mrp_bom_form_action)d" type='action' tabindex="-1">bills of materials</a>
</p>
diff --git a/addons/mrp/views/mrp_unbuild_views.xml b/addons/mrp/views/mrp_unbuild_views.xml
index 7922478eb25..c12a424cda6 100644
--- a/addons/mrp/views/mrp_unbuild_views.xml
+++ b/addons/mrp/views/mrp_unbuild_views.xml
@@ -197,7 +197,7 @@
<field name="view_mode">tree,kanban,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
- Create an unbuild order
+ No unbuild order found
</p><p>
An unbuild order is used to break down a finished product into its components.
</p>
diff --git a/addons/mrp/views/mrp_workcenter_views.xml b/addons/mrp/views/mrp_workcenter_views.xml
index 6e97cbaeb76..fe94b4815b0 100644
--- a/addons/mrp/views/mrp_workcenter_views.xml
+++ b/addons/mrp/views/mrp_workcenter_views.xml
@@ -18,14 +18,12 @@
<field name="domain">[('state', 'not in', ('done', 'cancel'))]</field>
<field name="context">{'search_default_workcenter_id': active_id}</field>
<field name="help" type="html">
- <p class="o_view_nocontent_smiling_face">
- Add a work center
- </p><p>
- Work Centers allow you to create and manage manufacturing
- units. They consist of workers and/or machines, which are
- considered as units for task assignment as well as capacity
- and planning forecast.
- </p>
+ <p class="o_view_nocontent_smiling_face">
+ No work orders to do!
+ </p><p>
+ Work orders are operations to do as part of a manufacturing order.
+ Operations are defined in the bill of materials or added in the manufacturing order directly.
+ </p>
</field>
</record>
diff --git a/addons/mrp/views/mrp_workorder_views.xml b/addons/mrp/views/mrp_workorder_views.xml
index 6ebe08dc72b..aa932aeba75 100644
--- a/addons/mrp/views/mrp_workorder_views.xml
+++ b/addons/mrp/views/mrp_workorder_views.xml
@@ -43,12 +43,11 @@
<field name="domain">[('production_id', '=', active_id)]</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
- Start a new work order
+ No work orders to do!
</p><p>
- Work Orders are operations to be processed at a Work Center to realize a
- Manufacturing Order. Work Orders are trigerred by Manufacturing Orders,
- they are based on the Routing defined on these ones
- </p>
+ Work orders are operations to do as part of a manufacturing order.
+ Operations are defined in the bill of materials or added in the manufacturing order directly.
+ </p>
</field>
</record>
@@ -413,12 +412,11 @@
<field name="context">{'search_default_work_center': True, '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">
- Start a new work order
+ No work orders to do!
</p><p>
- Work Orders are operations to be processed at a Work Center to realize a
- Manufacturing Order. Work Orders are trigerred by Manufacturing Orders,
- they are based on the Routing defined on these ones
- </p>
+ Work orders are operations to do as part of a manufacturing order.
+ Operations are defined in the bill of materials or added in the manufacturing order directly.
+ </p>
</field>
</record>
@@ -433,13 +431,10 @@
<field name="context">{'search_default_production': True, '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">
- Start a new work order
+ No work orders to do!
</p><p>
- To manufacture or assemble products, and use components and
- finished products you must also handle manufacturing operations.
- Manufacturing operations are often called Work Orders. The various
- operations will have different impacts on the costs of
- manufacturing and planning depending on the available workload.
+ Work orders are operations to do as part of a manufacturing order.
+ Operations are defined in the bill of materials or added in the manufacturing order directly.
</p>
</field>
</record>
diff --git a/addons/mrp/views/product_views.xml b/addons/mrp/views/product_views.xml
index 62ec9b43155..2dd6fe52925 100644
--- a/addons/mrp/views/product_views.xml
+++ b/addons/mrp/views/product_views.xml
@@ -50,6 +50,14 @@
<field name="search_view_id" ref="mrp_product_template_search_view"/>
<field name="view_mode">kanban,tree,form</field>
<field name="context">{"search_default_consumable": 1, 'default_type': 'product'}</field>
+ <field name="help" type="html">
+ <p class="o_view_nocontent_smiling_face">
+ No product found. Let's create one!
+ </p><p>
+ Define the components and finished products you wish to use in
+ bill of materials and manufacturing orders.
+ </p>
+ </field>
</record>
<menuitem id="menu_mrp_product_form"
diff --git a/addons/product/views/product_views.xml b/addons/product/views/product_views.xml
index 24d1a5a7d73..7c8fadbb615 100644
--- a/addons/product/views/product_views.xml
+++ b/addons/product/views/product_views.xml
@@ -683,7 +683,7 @@
<field name="context">{'visible_product_tmpl_id':False}</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
- Create a vendor pricelist
+ No vendor pricelist found
</p><p>
Register the prices requested by your vendors for each product, based on the quantity and the period.
</p>
diff --git a/addons/purchase/views/purchase_views.xml b/addons/purchase/views/purchase_views.xml
index db50323004d..70a75440ae9 100644
--- a/addons/purchase/views/purchase_views.xml
+++ b/addons/purchase/views/purchase_views.xml
@@ -63,7 +63,7 @@
<field name="view_id" eval="False"/> <!-- Force empty -->
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
- Create a new product
+ No product found. Let's create one!
</p><p>
You must define a product for everything you sell or purchase,
whether it's a storable product, a consumable or a service.
@@ -631,7 +631,7 @@
<field name="context">{'quotation_only': True}</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
- Create a request for quotation
+ No request for quotation found. Let's create one!
</p><p>
Requests for quotation are documents that will be sent to your suppliers to request prices for different products you consider buying.
Once an agreement has been found with the supplier, they will be confirmed and turned into purchase orders.
@@ -653,7 +653,7 @@
<field name="context">{}</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
- Create a purchase order
+ No purchase order found. Let's create one!
</p><p>
Once you ordered your products to your supplier, confirm your request for quotation and it will turn into a purchase order.
</p>
diff --git a/addons/repair/views/repair_views.xml b/addons/repair/views/repair_views.xml
index 8c59e6964cb..d98b5e62d9c 100644
--- a/addons/repair/views/repair_views.xml
+++ b/addons/repair/views/repair_views.xml
@@ -316,15 +316,11 @@
<field name="search_view_id" ref="view_repair_order_form_filter"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
- Create a new reparation order
+ No repair order found. Let's create one!
</p><p>
In a repair order, you can detail the components you remove,
add or replace and record the time you spent on the different
operations.
- </p><p>
- The repair order uses the warranty date on the Serial Number in
- order to know if whether the repair should be invoiced to the
- customer or not.
</p>
</field>
</record>
diff --git a/addons/stock/views/product_strategy_views.xml b/addons/stock/views/product_strategy_views.xml
index b2577f70738..9e03118a00a 100644
--- a/addons/stock/views/product_strategy_views.xml
+++ b/addons/stock/views/product_strategy_views.xml
@@ -4,7 +4,7 @@
<field name="name">stock.putaway.rule.tree</field>
<field name="model">stock.putaway.rule</field>
<field name="arch" type="xml">
- <tree string="Putaway Rules" editable="bottom">
+ <tree string="Putaway Rules" editable="bottom" sample='1'>
<field name="sequence" widget="handle"
invisible="context.get('invisible_handle', False)"/>
<field name="product_id"
@@ -46,6 +46,13 @@
<field name="type">ir.actions.act_window</field>
<field name="view_mode">tree</field>
<field name="view_id" ref="stock_putaway_list"/>
+ <field name="help" type="html">
+ <p class="o_view_nocontent_smiling_face">
+ No putaway rule found. Let's create one!
+ </p><p>
+ Create new putaway rules to dispatch automatically specific products to their appropriate destination location upon receptions.
+ </p>
+ </field>
</record>
<record id="view_putaway_search" model="ir.ui.view">
diff --git a/addons/stock/views/product_views.xml b/addons/stock/views/product_views.xml
index 6dce4b0eb6f..443fdeaeb56 100644
--- a/addons/stock/views/product_views.xml
+++ b/addons/stock/views/product_views.xml
@@ -395,7 +395,9 @@
<field name="context">{"search_default_consumable": 1, 'default_type': 'product'}</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
- Create a new product
+ No product found. Let's create one!
+ </p><p>
+ Track your stock quantities by creating storable products.
</p>
</field>
</record>
diff --git a/addons/stock/views/stock_move_views.xml b/addons/stock/views/stock_move_views.xml
index 7a7a78b37a2..fbb3c1ae693 100644
--- a/addons/stock/views/stock_move_views.xml
+++ b/addons/stock/views/stock_move_views.xml
@@ -370,7 +370,7 @@
<field name="context">{'search_default_done': 1, 'search_default_groupby_location_id': 1}</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
- Create a new stock movement
+ No stock move found
</p><p>
This menu gives you the full traceability of inventory
operations on a specific product. You can filter on the product
diff --git a/addons/stock/views/stock_orderpoint_views.xml b/addons/stock/views/stock_orderpoint_views.xml
index 4b69fd9990c..9ebb6fd7c81 100644
--- a/addons/stock/views/stock_orderpoint_views.xml
+++ b/addons/stock/views/stock_orderpoint_views.xml
@@ -211,7 +211,7 @@
<field name="context">{'search_default_trigger': 'auto'}</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
- Create a reordering rule
+ No reordering rule found
</p><p>
Define a minimum stock rule so that Odoo creates automatically requests for quotations or draft manufacturing orders to resupply your stock.
</p>
diff --git a/addons/stock/views/stock_picking_views.xml b/addons/stock/views/stock_picking_views.xml
index 07b99d820e8..cfdab213a2f 100644
--- a/addons/stock/views/stock_picking_views.xml
+++ b/addons/stock/views/stock_picking_views.xml
@@ -114,7 +114,7 @@
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
- Create a new transfer
+ No transfer found. Let's create one!
</p><p>
Transfers allow you to move products from one location to another.
</p>
@@ -503,7 +503,7 @@
<field name="search_view_id" ref="view_picking_internal_search"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
- Create a new transfer
+ No transfer found. Let's create one!
</p><p>
Transfers allow you to move products from one location to another.
</p>
@@ -547,7 +547,7 @@
<field name="search_view_id" ref="view_picking_internal_search"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
- Create a new transfer
+ No transfer found. Let's create one!
</p><p>
Transfers allow you to move products from one location to another.
</p>
@@ -564,7 +564,7 @@
<field name="search_view_id" ref="view_picking_internal_search"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
- Create a new transfer
+ No transfer found. Let's create one!
</p><p>
Transfers allow you to move products from one location to another.
</p>
@@ -581,7 +581,7 @@
<field name="search_view_id" ref="view_picking_internal_search"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
- Create a new transfer
+ No transfer found. Let's create one!
</p><p>
Transfers allow you to move products from one location to another.
</p>
@@ -598,7 +598,7 @@
<field name="search_view_id" ref="view_picking_internal_search"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
- Create a new transfer
+ No transfer found. Let's create one!
</p><p>
Transfers allow you to move products from one location to another.
</p>
@@ -615,7 +615,7 @@
<field name="search_view_id" ref="view_picking_internal_search"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
- Create a new transfer
+ No transfer found. Let's create one!
</p>
<p>
Transfers allow you to move products from one location to another.
@@ -638,7 +638,7 @@
<field name="search_view_id" ref="view_picking_internal_search"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
- Create a new transfer
+ No transfer found. Let's create one!
</p>
<p>
Transfers allow you to move products from one location to another.
diff --git a/addons/stock_account/views/stock_valuation_layer_views.xml b/addons/stock_account/views/stock_valuation_layer_views.xml
index 69880de1205..567859e517d 100644
--- a/addons/stock_account/views/stock_valuation_layer_views.xml
+++ b/addons/stock_account/views/stock_valuation_layer_views.xml
@@ -68,7 +68,8 @@
<field name="domain">[('product_id.type', '=', 'product')]</field>
<field name="context">{'search_default_group_by_product_id': 1}</field>
<field name="help" type="html">
- <p class="o_view_nocontent_smiling_face">
+ <p class="o_view_nocontent_smiling_face"/>
+ <p>
There is no valuation layers. Valuation layers are created when some product moves should impact the valuation of the stock.
</p>
</field>