[REF] base_vat: rearrange files
Also split views into two files, one for res.partner and one for res.company.
This commit is contained in:
committed by
Thibault Delavallée
parent
e23a879e57
commit
a7250766dc
@@ -1,5 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
import res_company
|
||||
import base_vat
|
||||
import models
|
||||
|
||||
@@ -20,7 +20,7 @@ There are two different levels of VAT number validation:
|
||||
rules for the country, usually a simple check digit. This is quick and
|
||||
always available, but allows numbers that are perhaps not truly allocated,
|
||||
or not valid anymore.
|
||||
|
||||
|
||||
* When the "VAT VIES Check" option is enabled (in the configuration of the user's
|
||||
Company), VAT numbers will be instead submitted to the online EU VIES
|
||||
database, which will truly verify that the number is valid and currently
|
||||
@@ -36,7 +36,10 @@ only the country code will be validated.
|
||||
""",
|
||||
'depends': ['account'],
|
||||
'website': 'https://www.odoo.com/page/accounting',
|
||||
'data': ['base_vat_view.xml'],
|
||||
'data': [
|
||||
'views/res_partner_views.xml',
|
||||
'views/res_company_views.xml',
|
||||
],
|
||||
'installable': True,
|
||||
'auto_install': False,
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
import res_company
|
||||
import res_partner
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="company_form_vat" model="ir.ui.view">
|
||||
<field name="name">res.company.form.vat.inherit</field>
|
||||
<field name="model">res.company</field>
|
||||
<field name="inherit_id" ref="base.view_company_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="currency_id" position="after">
|
||||
<field name="vat_check_vies" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
@@ -1,7 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="view_partner_form" model="ir.ui.view">
|
||||
<field name="name">res.partner.vat.inherit</field>
|
||||
<field name="model">res.partner</field>
|
||||
@@ -15,18 +14,6 @@
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="company_form_vat" model="ir.ui.view">
|
||||
<field name="name">res.company.form.vat.inherit</field>
|
||||
<field name="model">res.company</field>
|
||||
<field name="inherit_id" ref="base.view_company_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="currency_id" position="after">
|
||||
<field name="vat_check_vies" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
||||
Reference in New Issue
Block a user