[REF] l10n_de: move l10n_de_stnr and l10n_de_widnr from l10n_de_pos_cert module

These fields are more relevant in the German localization rather than the German POS localization

closes odoo/odoo#72590

Related: odoo/enterprise#19183
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
This commit is contained in:
Jacky (trj)
2021-06-24 07:46:54 +00:00
parent 6ef20b309f
commit bdd0491fb2
2 changed files with 6 additions and 6 deletions
+2 -1
View File
@@ -7,4 +7,5 @@ from odoo import models, fields
class ResCompany(models.Model):
_inherit = 'res.company'
l10n_de_nat_tax_nb = fields.Char(string="National Tax ID") # This is not the vat
l10n_de_stnr = fields.Char(string="St.-Nr.", help="Steuernummer. Scheme: ??FF0BBBUUUUP, e.g.: 2893081508152 https://de.wikipedia.org/wiki/Steuernummer")
l10n_de_widnr = fields.Char(string="W-IdNr.", help="Wirtschafts-Identifikationsnummer.")
+4 -5
View File
@@ -5,11 +5,10 @@
<field name="model">res.company</field>
<field name="inherit_id" ref="base.view_company_form"/>
<field name="arch" type="xml">
<data>
<xpath expr="//field[@name='vat']" position="after">
<field name="l10n_de_nat_tax_nb" attrs="{'invisible':[('country_code', '!=', 'DE')]}"/>
</xpath>
</data>
<field name="vat" position="after">
<field name="l10n_de_stnr" attrs="{'invisible':[('country_code', '!=', 'DE')]}"/>
<field name="l10n_de_widnr" attrs="{'invisible':[('country_code', '!=', 'DE')]}"/>
</field>
</field>
</record>
</odoo>