mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
This module checks that the customer has a VAT number on invoice validation if it has a fiscal position flagged "Customer must have VAT".
38 lines
1.1 KiB
XML
38 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
Copyright (C) 2013 Akretion (http://www.akretion.com/)
|
|
@author Alexis de Lattre <alexis.delattre@akretion.com>
|
|
The licence is in the file __openerp__.py
|
|
-->
|
|
|
|
<openerp>
|
|
<data>
|
|
|
|
|
|
<record id="view_account_position_form" model="ir.ui.view">
|
|
<field name="name">customer.must.have.vat.fiscal_position_form</field>
|
|
<field name="model">account.fiscal.position</field>
|
|
<field name="inherit_id" ref="account.view_account_position_form" />
|
|
<field name="arch" type="xml">
|
|
<field name="active" position="after">
|
|
<field name="customer_must_have_vat" />
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<record id="view_account_position_tree" model="ir.ui.view">
|
|
<field name="name">customer.must.have.vat.fiscal_position_tree</field>
|
|
<field name="model">account.fiscal.position</field>
|
|
<field name="inherit_id" ref="account.view_account_position_tree" />
|
|
<field name="arch" type="xml">
|
|
<field name="name" position="after">
|
|
<field name="customer_must_have_vat" />
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|