diff --git a/models/res_partner.py b/models/res_partner.py index 403f3bd2f400edc0057db257ac7b478686563e1c..8749faea4b0cceeb239496ea030dcc130df790c6 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 f844328bade7ea7948313ae0d7b28eb40a7e4adf..8724656afcbc3d2d1a061ad8bec4a506c4e90a55 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>