[FIX] various: remove duplicate fields definition in kanban views preface
Remove duplicate fields in tree views / kanban (outside of templates). A field should not be present twice in a kanban view. If one of the nodes has custom attributes behavior of other nodes is somehow unpredicatable. Having field present only once gives a more coherent behavior. Xpaths could also lead to weird results if fields are present several times. Notably adding a field in the view preface instead of inside the view template itself (see b63043e for example of fix). An heuristic to detect duplicate fields will land soon in master. As this commit targets a stable version only view fixes are provided. Task ID-2329114 PR odoo/odoo#56946 X-original-commit: 90f8e9255fa46c408763346ed135d9e561ae7fd5
This commit is contained in:
committed by
Thibault Delavallée
parent
e261cddd73
commit
f9f2c561bd
@@ -778,7 +778,6 @@
|
||||
<field name="product_uom_category_id" invisible="1"/>
|
||||
<field name="product_uom_id" groups="uom.group_uom"/>
|
||||
<field name="price_unit"/>
|
||||
<field name="display_type"/>
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div t-attf-class="oe_kanban_card oe_kanban_global_click {{ record.display_type.raw_value ? 'o_is_' + record.display_type.raw_value : '' }}">
|
||||
|
||||
@@ -142,7 +142,6 @@
|
||||
<field name="type"/>
|
||||
<field name="create_uid"/>
|
||||
<field name="url"/>
|
||||
<field name="type"/>
|
||||
<field name="create_date"/>
|
||||
<field name="name"/>
|
||||
<templates>
|
||||
|
||||
@@ -422,7 +422,6 @@
|
||||
<field name="maintenance_ids"/>
|
||||
<field name="maintenance_open_count"/>
|
||||
<field name="next_action_date"/>
|
||||
<field name="technician_user_id"/>
|
||||
<field name="activity_ids" />
|
||||
<field name="activity_state" />
|
||||
<progressbar field="activity_state" colors='{"planned": "success", "today": "warning", "overdue": "danger"}'/>
|
||||
|
||||
Reference in New Issue
Block a user