summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Pinna Puissant <jpp@odoo.com>2020-11-09 13:58:54 +0000
committerJorge Pinna Puissant <jpp@odoo.com>2020-11-09 13:58:54 +0000
commit478ebc74554f6609a1414726ee1f35fe5dcd6a81 (patch)
tree1c00d6b832e743a057a80505d714294ec52774f1
parentcdafba2fdbfc8ddd13cda180b287d3128fe00ae6 (diff)
[FIX] account_edi: add list of edi documents
This commit will add a new group in the payment view with the list of the edi documents for this payment. The group will only be visible in debug mode. This is done to help the debugging and the error finding when there is a problem with an edi document. Related to 2e01da4713f9ee68813b248a8b88f367785fc937 closes odoo/odoo#61543 Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
-rw-r--r--addons/account_edi/views/account_payment_views.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/addons/account_edi/views/account_payment_views.xml b/addons/account_edi/views/account_payment_views.xml
index 355001eb02e..41c323e2cf9 100644
--- a/addons/account_edi/views/account_payment_views.xml
+++ b/addons/account_edi/views/account_payment_views.xml
@@ -34,6 +34,18 @@
<field name="edi_state" invisible="1" />
<field name="edi_state" attrs="{'invisible': ['|', ('edi_document_ids', '=', []), ('state', '=', 'draft')]}"/>
</xpath>
+ <xpath expr="//group[@name='group3']" position="after">
+ <group groups="base.group_no_one">
+ <field name="edi_document_ids" string="EDI Documents">
+ <tree create="false" delete="false" edit="false" decoration-danger="error">
+ <field name="name"/>
+ <field name="edi_format_name"/>
+ <field name="state"/>
+ <field name="error" invisible="1"/>
+ </tree>
+ </field>
+ </group>
+ </xpath>
</field>
</record>
</data>