[IMP] stock,mrp,product,pruchase,repair: improve empty screen

Improve empty screen, add sample data.

Task 2310494
PR #55910

X-original-commit: 762457f1edd84208f43bd85de6be7316cfd20780
This commit is contained in:
yhu-odoo
2020-09-09 10:15:32 +00:00
parent 2430416ab0
commit 81f86adf1f
15 changed files with 56 additions and 49 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -513,7 +513,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>
+1 -1
View File
@@ -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>
+6 -8
View File
@@ -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>
+11 -16
View File
@@ -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>
+8
View File
@@ -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"
+1 -1
View File
@@ -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>
+3 -3
View File
@@ -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>
+1 -5
View File
@@ -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>
@@ -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">
+3 -1
View File
@@ -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>
+1 -1
View File
@@ -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
@@ -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>
+8 -8
View File
@@ -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.
@@ -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>