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)