From c99e1facf92ba419ae7c761acbe10bc1078ebdaa Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Tue, 15 Jan 2019 10:26:55 +0000 Subject: [PATCH] [FIX] purchase: in a x2m fields in tree must be in form too On the PO form view, change the order_lines inline view: - the tree becomes not editable - allowed modes are tree,form Add a new order line, the form view of order_lines opens up Modify some stuff, then save and new Before this commit, it crashed because some fields were expected in the tree view that were not defaulted in the form view by the JS framework. After this commit, this flow doesn't crash because we make sure every field in the tree view is present in the form view OPW 1917111 closes odoo/odoo#30219 --- addons/purchase/views/purchase_views.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/purchase/views/purchase_views.xml b/addons/purchase/views/purchase_views.xml index f215b2852ca..2dcff5b68b0 100644 --- a/addons/purchase/views/purchase_views.xml +++ b/addons/purchase/views/purchase_views.xml @@ -244,6 +244,7 @@ + @@ -253,6 +254,7 @@ +