mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
Remove <field name="property_account_position_id"> from warning banner because other modules inherit the partner form view and put fields after property_account_position_id (example : OCA module intrastat_product) and we don't want those fields to be displayed in the warning banner!
34 lines
1.2 KiB
XML
34 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<!--
|
|
Copyright 2022 Akretion France (http://www.akretion.com/)
|
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
-->
|
|
<odoo>
|
|
|
|
<record id="view_partner_property_form" model="ir.ui.view">
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="account.view_partner_property_form" />
|
|
<field
|
|
name="groups_id"
|
|
eval="[(4, ref('account.group_account_invoice')), (4, ref('account.group_account_readonly'))]"
|
|
/>
|
|
<field name="arch" type="xml">
|
|
<div role="alert" position="after">
|
|
<div
|
|
class="alert alert-warning"
|
|
role="alert"
|
|
attrs="{'invisible': [('show_warning_vat_required', '=', False)]}"
|
|
>
|
|
<b
|
|
>Missing VAT number</b>: this partner has a fiscal position that requires to know the VAT number of the partner.
|
|
</div>
|
|
</div>
|
|
<group name="fiscal_information" position="inside">
|
|
<field name="show_warning_vat_required" invisible="1" />
|
|
</group>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|