[FIX] account_edi: Don't display edi_document_ids on view if nothing to show

closes odoo/odoo#62843

X-original-commit: f5de98a2ad67f6e507f81cff34ddf4f0dcae816a
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
This commit is contained in:
Laurent Smet
2020-12-03 17:06:32 +00:00
parent 3902fa5815
commit eb768edef7
2 changed files with 2 additions and 2 deletions
@@ -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"/>
@@ -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"/>