From f8880dac683784af4a533593aadc5c18fd4f8688 Mon Sep 17 00:00:00 2001 From: syera bonneaux Date: Mon, 5 Dec 2022 09:59:19 +0100 Subject: [PATCH] [MIG] base_export_manager : Migration to 16.0 --- base_export_manager/models/ir_exports_line.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base_export_manager/models/ir_exports_line.py b/base_export_manager/models/ir_exports_line.py index 2bf5a29efd..e3ca87b67f 100644 --- a/base_export_manager/models/ir_exports_line.py +++ b/base_export_manager/models/ir_exports_line.py @@ -142,7 +142,8 @@ def _inverse_name(self): if any(parts): # invalidate_cache -> in order to get actual value of field 'label' # in function '_check_name' - self.env.invalidate_all() + one.invalidate_recordset(["label"]) + one._check_name() @api.constrains("field1_id", "field2_id", "field3_id", "field4_id") def _check_name(self):