Remove duplicate country field definition in tariff code

The CountryMatchMixin already defines a country and an organization field.
This commit is contained in:
Cédric Krier
2024-08-04 17:08:56 +02:00
parent bee1f094bc
commit 78a2fd0de2
3 changed files with 5 additions and 6 deletions
-2
View File
@@ -47,8 +47,6 @@ class TariffCode(DeactivableMixin, CountryMatchMixin, ModelSQL, ModelView):
code = fields.Char('Code', required=True,
help='The code from Harmonized System of Nomenclature.')
description = fields.Char('Description', translate=True)
country = fields.Many2One('country.country', 'Country')
# TODO country group
start_month = fields.Many2One('ir.calendar.month', "Start Month",
states={
'required': Eval('end_month') | Eval('start_day'),
+2 -2
View File
@@ -8,9 +8,9 @@ this repository contains the full copyright notices and license terms. -->
<field name="type"/>
<label name="country"/>
<field name="country"/>
<field name="country" colspan="3"/>
<label name="organization"/>
<field name="organization"/>
<field name="organization" colspan="3"/>
<label name="start_date"/>
<field name="start_date"/>
+3 -2
View File
@@ -10,9 +10,10 @@ this repository contains the full copyright notices and license terms. -->
<field name="description" colspan="3"/>
<label name="country"/>
<field name="country"/>
<field name="country" colspan="3"/>
<label name="organization"/>
<field name="organization"/>
<field name="organization" colspan="3"/>
<label id="from" string="From"/>
<group id="start" col="2">