From 787daee41f4ccd3d02913f74fb20326d28f80e90 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Thu, 18 May 2017 09:54:00 +0200 Subject: [PATCH] [FIX] stock_account: inventory valuation: default value ... for 'compute_at_date' field (default 0, 'Current Inventory'). Before the new views, this value was selected by default by the FieldRadio, but it was a mere coincidence. Indeed, as the field had no default value, no value was specified in the default_get, and for no reason, the widget selected 0 as value. Anyway, as this behavior was wanted, we simply specify a default value in the action. --- addons/stock_account/wizard/wizard_valuation_history_views.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/stock_account/wizard/wizard_valuation_history_views.xml b/addons/stock_account/wizard/wizard_valuation_history_views.xml index 48e8162e793..abadf22cd07 100644 --- a/addons/stock_account/wizard/wizard_valuation_history_views.xml +++ b/addons/stock_account/wizard/wizard_valuation_history_views.xml @@ -25,6 +25,7 @@ form new + {'default_compute_at_date': 0}