Skip to content
Snippets Groups Projects
Commit ad346eec authored by Laurent Smet's avatar Laurent Smet
Browse files

[FIX] account_edi: Prevent opening the EDI documents in any case


Also, remove the duplicated 'edi_document_ids' field inside the view.
'edi_document_ids' is now in debug mode for payments.

closes odoo/odoo#75529

Signed-off-by: default avatarFlorian Gilbert <FlorianGilbert@users.noreply.github.com>
parent dadaccbe
No related branches found
No related tags found
No related merge requests found
......@@ -38,12 +38,14 @@
</div>
</xpath>
<xpath expr="//div[@name='journal_div']" position="after">
<field name="edi_document_ids" invisible="1" />
<field name="edi_state" attrs="{'invisible': ['|', ('edi_state', '=', False), ('state', '=', 'draft')]}"/>
</xpath>
<xpath expr="//page[@id='other_tab']" position="after">
<page id="edi_documents" string="EDI Documents" groups="base.group_no_one" attrs="{'invisible': [('edi_document_ids', '=', [])]}">
<field name="edi_document_ids">
<page id="edi_documents"
string="EDI Documents"
groups="base.group_no_one"
attrs="{'invisible': [('edi_document_ids', '=', [])]}">
<field name="edi_document_ids" options="{'no_open': '1'}">
<tree create="false" delete="false" edit="false" decoration-danger="error">
<field name="name"/>
<field name="edi_format_name"/>
......
......@@ -30,12 +30,15 @@
</div>
</xpath>
<xpath expr="//field[@name='journal_id']" position="after">
<field name="edi_document_ids" invisible="1" />
<field name="edi_state" attrs="{'invisible': ['|', ('edi_state', '=', False), ('state', '=', 'draft')]}"/>
</xpath>
<xpath expr="//group[@name='group3']" position="after">
<group groups="base.group_no_one">
<field name="edi_document_ids" string="EDI Documents" attrs="{'invisible': [('edi_document_ids', '=', [])]}">
<field name="edi_document_ids"
string="EDI Documents"
groups="base.group_no_one"
options="{'no_open': '1'}"
attrs="{'invisible': [('edi_document_ids', '=', [])]}">
<tree create="false" delete="false" edit="false" decoration-danger="error">
<field name="name"/>
<field name="edi_format_name"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment