account_fiscal_position_vat_check: remove field from warning banner

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!
This commit is contained in:
Alexis de Lattre
2022-09-07 21:02:09 +02:00
parent 7089d20cb7
commit 8efcaa7c9b

View File

@@ -20,11 +20,8 @@
role="alert"
attrs="{'invisible': [('show_warning_vat_required', '=', False)]}"
>
<b>Missing VAT number</b>: this partner has the fiscal position <em
><field
name="property_account_position_id"
readonly="1"
/></em> that require to know the VAT number of the partner.
<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">