summaryrefslogtreecommitdiff
path: root/addons/purchase/views/purchase_views.xml
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2020-12-04 14:35:54 +0000
committerNicolas Lempereur <nle@odoo.com>2020-12-04 14:45:37 +0000
commit4628675caf37c1699d8c25fe2ff6ef8b7bbc72a0 (patch)
treeaf6327858f181fe3aad5083b748ac77a6857dc95 /addons/purchase/views/purchase_views.xml
parent82cad06e934de0cb559c15ddd7a687ab8a4432d4 (diff)
[FIX] purchase: x2m tree purchase.order subfield ok
In 376891294 the default purchase.order view tree was changed to have different view with dashboard. But the current view referenced: ('parent.state', 'not in', ('purchase', 'done')) which seems incorrect because an x2many view towards purchase.order could currently only be used for purchase.requisition (doesn't have purchase/done as state value) and stock.production.lot (doesn't have state field) or a customization that might not have state field. With this change, we copy what there was originally on this field. opw-2381767 closes #62903 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/purchase/views/purchase_views.xml')
-rw-r--r--addons/purchase/views/purchase_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/purchase/views/purchase_views.xml b/addons/purchase/views/purchase_views.xml
index 32ba9a7fb5e..e5376024682 100644
--- a/addons/purchase/views/purchase_views.xml
+++ b/addons/purchase/views/purchase_views.xml
@@ -529,7 +529,7 @@
<field name="amount_total" sum="Total amount" widget="monetary" optional="show"/>
<field name="currency_id" invisible="1"/>
<field name="state" optional="show"/>
- <field name="invoice_status" attrs="{'column_invisible': [('parent.state', 'not in', ('purchase', 'done'))]}"/>
+ <field name="invoice_status" optional="hide"/>
<field name="activity_exception_decoration" widget="activity_exception"/>
</tree>
</field>