Skip to content

Commit 6f099a4

Browse files
committed
[FIX] edi_oca: compute inverse properly
1 parent 12fd3c5 commit 6f099a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

edi_oca/models/edi_exchange_type.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def _inverse_deprecated_rules_model_manual_btn(self):
323323
"Rule for %s btn updated from deprecated `model_manual_btn`",
324324
model.model,
325325
)
326-
rule.kind = "form_btn" if self.model_manual_btn else "custom"
326+
rule.kind = "form_btn" if rec.model_manual_btn else "custom"
327327

328328
def _get_rule_by_model(self, model):
329329
return self.rule_ids.filtered(lambda x: x.model_id == model)

0 commit comments

Comments
 (0)