[IMP] sale: add kanban view for sale.order.line for better display on mobile
For a SO line on mobile it was displaying only the name of the line without the SO number. It wasn't very practical for the users so we added this view to display the display_name instead. Task-2188831 Co-authored-by: jdoutreloux <jud@odoo.com>
This commit is contained in:
committed by
Yannick Tivisse
co-authored by
jdoutreloux
parent
e04cf0c6be
commit
b6eec420a8
@@ -1057,6 +1057,26 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="sale_order_line_view_kanban" model="ir.ui.view">
|
||||
<field name="name">sale.order.line.kanban</field>
|
||||
<field name="model">sale.order.line</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban class="o_kanban_mobile">
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div class="oe_kanban_content oe_kanban_global_click">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<field name="display_name"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="product_form_view_sale_order_button">
|
||||
<field name="name">product.product.sale.order</field>
|
||||
<field name="model">product.product</field>
|
||||
|
||||
Reference in New Issue
Block a user