From 9d81cff6fdd14ee0207474779d5b0eac2f069000 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Mon, 31 Jul 2023 08:10:08 +0000 Subject: [PATCH] [REF] *: remove always_reload many2one option from archs This option is no longer necessary since [1] as the value is now reloaded by default. [1] odoo/odoo#114024 Part of task~3179751 closes odoo/odoo#130169 Related: odoo/enterprise#44838 Signed-off-by: Jorge Pinna Puissant (jpp) --- addons/account/views/account_move_views.xml | 2 +- addons/crm/views/crm_lead_views.xml | 4 ++-- addons/event/views/event_event_views.xml | 4 +--- addons/hr/views/hr_employee_public_views.xml | 2 +- addons/hr/views/hr_employee_views.xml | 2 +- addons/hr/views/res_users.xml | 2 +- addons/hr_holidays/views/hr_leave_allocation_views.xml | 2 +- addons/hr_recruitment/views/hr_job_views.xml | 2 +- addons/link_tracker/views/link_tracker_views.xml | 2 +- addons/mass_mailing/views/mailing_mailing_views.xml | 2 +- addons/sale/views/account_views.xml | 2 +- addons/sale/views/sale_order_views.xml | 5 +---- addons/sale_project/views/project_task_views.xml | 2 -- addons/website/views/website_pages_views.xml | 3 +-- addons/website_event/views/event_event_add.xml | 2 +- odoo/addons/base/wizard/base_partner_merge_views.xml | 3 +-- 16 files changed, 16 insertions(+), 25 deletions(-) diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index c532e3389a1..d745c4a98c1 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -796,7 +796,7 @@ 'res_partner_search_mode': (context.get('default_move_type', 'entry') in ('out_invoice', 'out_refund', 'out_receipt') and 'customer') or (context.get('default_move_type', 'entry') in ('in_invoice', 'in_refund', 'in_receipt') and 'supplier') or False, 'show_address': 1, 'default_is_company': True, 'show_vat': True}" domain="[('company_id', 'in', (False, company_id))]" - options='{"always_reload": True, "no_quick_create": True}' + options='{"no_quick_create": True}' attrs="{'invisible': [('move_type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt'))]}"/> - + @@ -315,7 +315,7 @@ - + diff --git a/addons/event/views/event_event_views.xml b/addons/event/views/event_event_views.xml index 3e4510f43fc..b89bc5218bd 100644 --- a/addons/event/views/event_event_views.xml +++ b/addons/event/views/event_event_views.xml @@ -52,9 +52,7 @@ - +