diff options
| author | Victor Feyens <vfe@odoo.com> | 2020-06-25 10:43:00 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-09-02 13:33:57 +0000 |
| commit | 977c2b9d12419fba3bada1ebefcca15f051ca565 (patch) | |
| tree | 99703d541d0f9cbd7413b3fc3a6da5db25a5138d /addons/account/views/account_move_views.xml | |
| parent | c8910e20f633b6bccc5aeb122144c1a08aaf41da (diff) | |
[FIX] various: remove duplicate fields in tree views
Remove duplicate fields in tree views / kanban (outside of templates).
A field should not be present twice in a tree view. If one of the nodes has
custom attributes then behavior of other nodes is somehow unpredictable.
Having field present only once gives a more coherent behavior. Xpaths
could also lead to weird results if fields are present several times as
developers generally do not expect fields to be present several times in a
view.
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
Diffstat (limited to 'addons/account/views/account_move_views.xml')
| -rw-r--r-- | addons/account/views/account_move_views.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index f16e766cf11..92d8578c576 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -286,7 +286,8 @@ <field name="mode">primary</field> <field name="inherit_id" ref="account.view_move_line_tree"/> <field name="arch" type="xml"> - <field name="matching_number" position="after"> + <field name="move_id" position="replace"/> + <field name="matching_number" position="replace"> <field name="tax_line_id" string="Tax"/> <field name="tax_base_amount" sum="Total Base Amount"/> <field name="tax_audit"/> @@ -294,7 +295,6 @@ </field> <field name="date_maturity" position="replace"/> <field name="analytic_account_id" position="replace"/> - <field name="matching_number" position="replace"/> <field name="debit" position="replace"/> <field name="credit" position="replace"/> </field> |
