rename invoice src_dest_country_code

This commit is contained in:
luc-demeyer
2017-08-29 18:32:48 +02:00
parent 5f44338f13
commit f94a47a614
2 changed files with 5 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ class AccountInvoice(models.Model):
src_dest_country_id = fields.Many2one(
'res.country', string='Origin/Destination Country',
ondelete='restrict')
src_dest_country_code = fields.Char(
company_country_code = fields.Char(
related='company_id.country_id.code', readonly=True)
src_dest_region_id = fields.Many2one(
'intrastat.region', string='Origin/Destination Region',

View File

@@ -18,9 +18,9 @@
attrs="{'invisible': [('intrastat', '!=', 'extended')]}"
widget="selection"/>
<field name="src_dest_country_id" string="Destination Country"/>
<field name="src_dest_country_code" invisible="1"/>
<field name="company_country_code" invisible="1"/>
<field name="src_dest_region_id" string="Origin/Destination Region"
attrs="{'invisible': [('src_dest_country_code', 'not in', ['BE'])]}"/>
attrs="{'invisible': [('company_country_code', 'not in', ['BE'])]}"/>
</xpath>
<xpath expr="//field[@name='invoice_line']//field[@name='account_id']" position="after">
<field name="hs_code_id"/>
@@ -44,9 +44,9 @@
attrs="{'invisible': [('intrastat', '!=', 'extended')]}"
widget="selection"/>
<field name="src_dest_country_id" string="Origin/Destination Country"/>
<field name="src_dest_country_code" invisible="1"/>
<field name="company_country_code" invisible="1"/>
<field name="src_dest_region_id" string="Origin/Destination Region"
attrs="{'invisible': [('src_dest_country_code', 'not in', ['BE'])]}"/>
attrs="{'invisible': [('company_country_code', 'not in', ['BE'])]}"/>
</xpath>
<xpath expr="//field[@name='invoice_line']//field[@name='account_id']" position="after">
<field name="hs_code_id"/>