diff options
| author | Laurent Smet <las@odoo.com> | 2020-12-03 15:18:13 +0000 |
|---|---|---|
| committer | Laurent Smet <las@odoo.com> | 2020-12-03 15:18:13 +0000 |
| commit | f5de98a2ad67f6e507f81cff34ddf4f0dcae816a (patch) | |
| tree | ddc373652b45239fa7d357eb12cbb1f4dcdf20d8 /addons | |
| parent | 28bc59e794f15bf4f7de31e24f496e707ba639dc (diff) | |
[FIX] account_edi: Don't display edi_document_ids on view if nothing to show
closes odoo/odoo#62838
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/account_edi/views/account_move_views.xml | 2 | ||||
| -rw-r--r-- | addons/account_edi/views/account_payment_views.xml | 2 |
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"/> |
