From 81f86adf1ff41a000cce29fa2bb83b3fff6af832 Mon Sep 17 00:00:00 2001 From: yhu-odoo Date: Mon, 10 Aug 2020 07:47:01 +0000 Subject: [PATCH] [IMP] stock,mrp,product,pruchase,repair: improve empty screen Improve empty screen, add sample data. Task 2310494 PR #55910 X-original-commit: 762457f1edd84208f43bd85de6be7316cfd20780 --- addons/mrp/views/mrp_bom_views.xml | 2 +- addons/mrp/views/mrp_production_views.xml | 2 +- addons/mrp/views/mrp_unbuild_views.xml | 2 +- addons/mrp/views/mrp_workcenter_views.xml | 14 +++++----- addons/mrp/views/mrp_workorder_views.xml | 27 ++++++++----------- addons/mrp/views/product_views.xml | 8 ++++++ addons/product/views/product_views.xml | 2 +- addons/purchase/views/purchase_views.xml | 6 ++--- addons/repair/views/repair_views.xml | 6 +---- addons/stock/views/product_strategy_views.xml | 9 ++++++- addons/stock/views/product_views.xml | 4 ++- addons/stock/views/stock_move_views.xml | 2 +- addons/stock/views/stock_orderpoint_views.xml | 2 +- addons/stock/views/stock_picking_views.xml | 16 +++++------ .../views/stock_valuation_layer_views.xml | 3 ++- 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 @@ {'default_company_id': allowed_company_ids[0]}

- Create a bill of materials + No bill of materials found. Let's create one!

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 c45c6524027..679f3ea2cdf 100644 --- a/addons/mrp/views/mrp_production_views.xml +++ b/addons/mrp/views/mrp_production_views.xml @@ -513,7 +513,7 @@ [('picking_type_id.active', '=', True)]

- Create a new manufacturing order
+ No manufacturing order found. Let's create one.

Consume components and build finished products using bills of materials

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 @@ tree,kanban,form

- Create an unbuild order + No unbuild order found

An unbuild order is used to break down a finished product into its components.

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 @@ [('state', 'not in', ('done', 'cancel'))] {'search_default_workcenter_id': active_id} -

- Add a work center -

- 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. -

+

+ No work orders to do! +

+ 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. +

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 @@ [('production_id', '=', active_id)]

- Start a new work order + No work orders to do!

- 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 -

+ 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. +

@@ -413,12 +412,11 @@ {'search_default_work_center': True, 'search_default_ready': True, 'search_default_progress': True, 'search_default_pending': True}

- Start a new work order + No work orders to do!

- 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 -

+ 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. +

@@ -433,13 +431,10 @@ {'search_default_production': True, 'search_default_ready': True, 'search_default_progress': True, 'search_default_pending': True}

- Start a new work order + No work orders to do!

- 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.

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 @@ kanban,tree,form {"search_default_consumable": 1, 'default_type': 'product'} + +

+ No product found. Let's create one! +

+ Define the components and finished products you wish to use in + bill of materials and manufacturing orders. +

+
{'visible_product_tmpl_id':False}

- Create a vendor pricelist + No vendor pricelist found

Register the prices requested by your vendors for each product, based on the quantity and the period.

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 @@

- Create a new product + No product found. Let's create one!

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 @@ {'quotation_only': True}

- Create a request for quotation + No request for quotation found. Let's create one!

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 @@ {}

- Create a purchase order + No purchase order found. Let's create one!

Once you ordered your products to your supplier, confirm your request for quotation and it will turn into a purchase order.

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 @@

- Create a new reparation order + No repair order found. Let's create one!

In a repair order, you can detail the components you remove, add or replace and record the time you spent on the different operations. -

- 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.

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 @@ stock.putaway.rule.tree stock.putaway.rule - + ir.actions.act_window tree + +

+ No putaway rule found. Let's create one! +

+ Create new putaway rules to dispatch automatically specific products to their appropriate destination location upon receptions. +

+
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 @@ {"search_default_consumable": 1, 'default_type': 'product'}

- Create a new product + No product found. Let's create one! +

+ Track your stock quantities by creating storable products.

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 @@ {'search_default_done': 1, 'search_default_groupby_location_id': 1}

- Create a new stock movement + No stock move found

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 3bdc71a7979..7483beeef3f 100644 --- a/addons/stock/views/stock_orderpoint_views.xml +++ b/addons/stock/views/stock_orderpoint_views.xml @@ -211,7 +211,7 @@ {'search_default_trigger': 'auto'}

- Create a reordering rule + No reordering rule found

Define a minimum stock rule so that Odoo creates automatically requests for quotations or draft manufacturing orders to resupply your stock.

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 @@ tree,form

- Create a new transfer + No transfer found. Let's create one!

Transfers allow you to move products from one location to another.

@@ -503,7 +503,7 @@

- Create a new transfer + No transfer found. Let's create one!

Transfers allow you to move products from one location to another.

@@ -547,7 +547,7 @@

- Create a new transfer + No transfer found. Let's create one!

Transfers allow you to move products from one location to another.

@@ -564,7 +564,7 @@

- Create a new transfer + No transfer found. Let's create one!

Transfers allow you to move products from one location to another.

@@ -581,7 +581,7 @@

- Create a new transfer + No transfer found. Let's create one!

Transfers allow you to move products from one location to another.

@@ -598,7 +598,7 @@

- Create a new transfer + No transfer found. Let's create one!

Transfers allow you to move products from one location to another.

@@ -615,7 +615,7 @@

- Create a new transfer + No transfer found. Let's create one!

Transfers allow you to move products from one location to another. @@ -638,7 +638,7 @@

- Create a new transfer + No transfer found. Let's create one!

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 @@ [('product_id.type', '=', 'product')] {'search_default_group_by_product_id': 1} -

+

+

There is no valuation layers. Valuation layers are created when some product moves should impact the valuation of the stock.