From 6f099a4ee9cf1d8d36b4fc8717c8309218529833 Mon Sep 17 00:00:00 2001 From: Enric Tobella Date: Tue, 3 Dec 2024 21:58:26 +0100 Subject: [PATCH] [FIX] edi_oca: compute inverse properly --- edi_oca/models/edi_exchange_type.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edi_oca/models/edi_exchange_type.py b/edi_oca/models/edi_exchange_type.py index db09a74198..000bd7f407 100644 --- a/edi_oca/models/edi_exchange_type.py +++ b/edi_oca/models/edi_exchange_type.py @@ -323,7 +323,7 @@ def _inverse_deprecated_rules_model_manual_btn(self): "Rule for %s btn updated from deprecated `model_manual_btn`", model.model, ) - rule.kind = "form_btn" if self.model_manual_btn else "custom" + rule.kind = "form_btn" if rec.model_manual_btn else "custom" def _get_rule_by_model(self, model): return self.rule_ids.filtered(lambda x: x.model_id == model)