[FIX] l10n_ar: Dedicated Credit Note Sequence field was appering in

journals that were not of type sales and journals.

We update the hence of the view to take into account the original
invisible domain plus the domain we need for journals that use documents

closes odoo/odoo#48526

X-original-commit: 085fd43fd0b8a13dd713fbb4e34126ebe63ea504
Signed-off-by: Josse Colpaert <jco@openerp.com>
This commit is contained in:
Katherine Zaoral
2020-03-27 15:27:31 +00:00
committed by Josse Colpaert
parent 82828b802c
commit efcdc274ff
@@ -15,6 +15,9 @@
</tree>
</field>
</xpath>
<field name="refund_sequence" position="attributes">
<attribute name="attrs">{'invisible': ['|', ('type', 'not in', ['sale', 'purchase']), ('l10n_latam_use_documents', '=', True), ('l10n_latam_country_code', '=', 'AR')]}</attribute>
</field>
<field name="l10n_latam_use_documents" position="after">
<field name="company_partner" invisible="1"/>
<field name="l10n_ar_afip_pos_system" attrs="{'invisible':['|', '|', ('l10n_latam_country_code', '!=', 'AR'), ('l10n_latam_use_documents', '=', False), ('type', '!=', 'sale')], 'required':[('l10n_latam_country_code', '=', 'AR'), ('l10n_latam_use_documents', '=', True), ('type', '=', 'sale')]}"/>