From 83b089d4ac02863affb2c789b0d1a533e3965510 Mon Sep 17 00:00:00 2001 From: "Florian(flg)" Date: Wed, 18 Oct 2023 10:07:52 +0200 Subject: [PATCH] [FIX] account: Change default readonly of invoice_user_id to False A previous commit(ea8acc17b40b02f5a2e140be73ab77a32d299eed) added a compute on invoice_user_id fields to guess the Sale Person. The problem is that by adding the compute on the field, the readonly default value changes for True. It causes that user can't change the sale person anymore. no task id closes odoo/odoo#139035 X-original-commit: af5e3eedf90d64462afc625b30dec742361389f5 Signed-off-by: John Laterre (jol) Signed-off-by: Florian Gilbert (flg) --- addons/account/models/account_move.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index d28bc36c2f5..f23fc7491b0 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -510,6 +510,7 @@ class AccountMove(models.Model): tracking=True, compute='_compute_invoice_default_sale_person', store=True, + readonly=False, ) # Technical field used to fit the generic behavior in mail templates. user_id = fields.Many2one(string='User', related='invoice_user_id')