summaryrefslogtreecommitdiff
path: root/addons/l10n_ar/views
diff options
context:
space:
mode:
authorwan <wan@odoo.com>2019-12-19 09:55:37 +0000
committerwan <wan@odoo.com>2019-12-19 10:11:18 +0000
commit00a341f467eb31b774d1defbef3f4b2a4b5dc9cb (patch)
treeb3045d321c82017ba1b472252cc4c1702277e70a /addons/l10n_ar/views
parent21c653ecda3c118c100f2d9dc15484c284bbc6ff (diff)
[FIX] l10n_ar: missing field for dynamic domain
The domain introduced in 1881999b893ef3003367c2db2fcffb9d6390597b needs the field company_partner to be in the view closes odoo/odoo#42171 X-original-commit: c6bdb22901dbd223fecabce78e6a41427a165040 Signed-off-by: wan <william-andre@users.noreply.github.com>
Diffstat (limited to 'addons/l10n_ar/views')
-rw-r--r--addons/l10n_ar/views/account_journal_view.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/l10n_ar/views/account_journal_view.xml b/addons/l10n_ar/views/account_journal_view.xml
index e9d2b773d58..3fab8f329d5 100644
--- a/addons/l10n_ar/views/account_journal_view.xml
+++ b/addons/l10n_ar/views/account_journal_view.xml
@@ -25,6 +25,7 @@
<attribute name="attrs">{'invisible': [('l10n_latam_use_documents', '=', True), ('l10n_latam_country_code', '=', 'AR')]}</attribute>
</xpath>
<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')]}"/>
<field name="l10n_ar_afip_pos_number" 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')]}"/>
<field name="l10n_ar_afip_pos_partner_id" 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')]}"/>