From 536480bca3b3de9e94a36b1b50aee7596e3a4eaa Mon Sep 17 00:00:00 2001 From: jordan <jordan@le-filament.com> Date: Wed, 14 Apr 2021 17:27:54 +0200 Subject: [PATCH] [fix] remove region_id --- models/res_partner.py | 4 ---- views/res_partner.xml | 6 ------ 2 files changed, 10 deletions(-) diff --git a/models/res_partner.py b/models/res_partner.py index 403f3bd..8749fae 100644 --- a/models/res_partner.py +++ b/models/res_partner.py @@ -24,10 +24,6 @@ class ModelName(models.Model): service = fields.Char( string='Service', required=False) - region_id = fields.Many2one( - comodel_name='res.country.state', - string='Région', - required=False) facebook = fields.Char( string='Facebook', diff --git a/views/res_partner.xml b/views/res_partner.xml index f844328..8724656 100644 --- a/views/res_partner.xml +++ b/views/res_partner.xml @@ -37,12 +37,6 @@ </group> </xpath> - <xpath expr="//field[@name='country_id']" position="after"> - <field name="region_id" placeholder="Région" class="o_address_country" options='{"no_open": True}' - attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}" - domain="[('country_id', '=', country_id)]"/> - </xpath> - <xpath expr="//field[@name='function']" position="attributes"> <attribute name="string">Fonction</attribute> <attribute name="attrs">{'invisible': [('company_type', '!=', 'person')]}</attribute> -- GitLab