From fc348de003baf5040715145bf16ed9d4918b33e7 Mon Sep 17 00:00:00 2001 From: mir-odoo Date: Tue, 22 Dec 2020 13:22:36 +0000 Subject: [PATCH] [IMP] various: Do not allow create/open on country_id Purpose of the task, is to prevent users from inadvertently creation/opening countries from country_id fields. Countries should be managed from their dedicated menu item. so in this commit, we have set both no_open and no_create to True so user should not update and create a country from the many2X fields. closes odoo/odoo#63773 Taskid: 2241677 Related: odoo/enterprise#15464 Signed-off-by: Yannick Tivisse (yti) --- addons/account/views/account_account_tag_views.xml | 2 +- addons/account/views/partner_view.xml | 2 +- addons/base_address_city/views/res_city_view.xml | 2 +- addons/crm/views/crm_lead_views.xml | 4 ++-- addons/crm/wizard/crm_lead_to_opportunity_mass_views.xml | 2 +- addons/crm/wizard/crm_lead_to_opportunity_views.xml | 2 +- addons/crm_iap_lead_website/views/crm_reveal_views.xml | 2 +- addons/delivery/views/delivery_view.xml | 2 +- addons/im_livechat/views/im_livechat_channel_views.xml | 2 +- addons/link_tracker/views/link_tracker_views.xml | 2 +- addons/mass_mailing/views/mailing_contact_views.xml | 2 +- addons/payment/views/payment_views.xml | 2 +- odoo/addons/base/views/res_company_views.xml | 2 +- odoo/addons/base/views/res_country_views.xml | 4 ++-- 14 files changed, 16 insertions(+), 16 deletions(-) diff --git a/addons/account/views/account_account_tag_views.xml b/addons/account/views/account_account_tag_views.xml index a459284ea77..732de46759c 100644 --- a/addons/account/views/account_account_tag_views.xml +++ b/addons/account/views/account_account_tag_views.xml @@ -14,7 +14,7 @@ - + diff --git a/addons/account/views/partner_view.xml b/addons/account/views/partner_view.xml index b232c4e96bf..4f9b6c9e1e6 100644 --- a/addons/account/views/partner_view.xml +++ b/addons/account/views/partner_view.xml @@ -20,7 +20,7 @@ - +