From 721e440d61224bb39ea2869200635d9c92964ea4 Mon Sep 17 00:00:00 2001 From: oco-odoo Date: Fri, 29 Sep 2023 09:27:54 +0200 Subject: [PATCH] [IMP] account: add `force_save="1"` to move_type For a better handling on onchanges. By default, `move_type` is readonly and is therefore not sent to the web client during an onchange. During onchanges, `new` is used to pass values into records. The `move_type` of the invoice was passed to that `new` thanks to an `default_move_type` passed in the window action. But, if the view was used outside of this action, without `default_move_type` the `move_type` wasn't correctly set and the invoice/move type wasn't correctly passed closes odoo/odoo#41723 Signed-off-by: Quentin De Paoli (qdp) --- addons/account/views/account_move_views.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index d5de7c70593..9c33e37ba27 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -831,7 +831,8 @@ - + +