summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addons/account_edi/views/account_move_views.xml2
-rw-r--r--addons/account_edi/views/account_payment_views.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/addons/account_edi/views/account_move_views.xml b/addons/account_edi/views/account_move_views.xml
index 1d56b61cae5..498c1a4d7ba 100644
--- a/addons/account_edi/views/account_move_views.xml
+++ b/addons/account_edi/views/account_move_views.xml
@@ -43,7 +43,7 @@
<field name="edi_state" attrs="{'invisible': ['|', ('edi_document_ids', '=', []), ('state', '=', 'draft')]}"/>
</xpath>
<xpath expr="//page[@id='other_tab']" position="after">
- <page id="edi_documents" string="EDI Documents" groups="base.group_no_one">
+ <page id="edi_documents" string="EDI Documents" groups="base.group_no_one" attrs="{'invisible': [('edi_document_ids', '=', [])]}">
<field name="edi_document_ids">
<tree create="false" delete="false" edit="false" decoration-danger="error">
<field name="name"/>
diff --git a/addons/account_edi/views/account_payment_views.xml b/addons/account_edi/views/account_payment_views.xml
index 41c323e2cf9..8f2983f019a 100644
--- a/addons/account_edi/views/account_payment_views.xml
+++ b/addons/account_edi/views/account_payment_views.xml
@@ -36,7 +36,7 @@
</xpath>
<xpath expr="//group[@name='group3']" position="after">
<group groups="base.group_no_one">
- <field name="edi_document_ids" string="EDI Documents">
+ <field name="edi_document_ids" string="EDI Documents" attrs="{'invisible': [('edi_document_ids', '=', [])]}">
<tree create="false" delete="false" edit="false" decoration-danger="error">
<field name="name"/>
<field name="edi_format_name"/>