From fb22a4db2a75ae59156ba70ba5ee5e8ca2fc0281 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Mon, 10 Sep 2018 09:57:39 +0200 Subject: [PATCH] [FIX] sale: analytic account in confirmed state - Activate analytic accounting - Create a SO, validate - Edit, and in the tab 'Additional Information' set an 'Analytic Account' - Save The analytic account is not saved. The domain applied on the field is: `attrs="{'readonly': ['|',('analytic_account_id','!=',False),('invoice_count','!=',0),('state','=','sale')]}"` This means that once the account is set, the field becomes read-only. However, a read-only field is by default not sent to the server. opw-1882448 --- addons/sale/views/sale_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/views/sale_views.xml b/addons/sale/views/sale_views.xml index bf790cf050b..2d19e21b9c6 100644 --- a/addons/sale/views/sale_views.xml +++ b/addons/sale/views/sale_views.xml @@ -381,7 +381,7 @@ - +