From f6985ca21cecfb73d55f5cb40f03215bcdd5c66e Mon Sep 17 00:00:00 2001 From: Martin Geubelle Date: Mon, 10 Jul 2017 11:18:43 +0200 Subject: [PATCH] [FIX] purchase: correctly link purchase order and invoice When creating an invoice from the purchase order, the later one wasn't correctly linked anymore (and the invoice couldn't be found through the stat button). The link is actually done with an onchange at the invoice creation. The problem here was that the readonly attribute was set on the fields description but it was not overriden in the view. The onchange was taken into account in previous versions but with the new views, the correct behaviour has been implemented: if a field is readonly, the onchange won't write on it. --- addons/purchase/views/account_invoice_views.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/purchase/views/account_invoice_views.xml b/addons/purchase/views/account_invoice_views.xml index 7f4fc3bf4e0..a85974931f4 100644 --- a/addons/purchase/views/account_invoice_views.xml +++ b/addons/purchase/views/account_invoice_views.xml @@ -63,8 +63,8 @@ options="{'no_create': True}"/> - - + +