diff --git a/edi/models/edi_exchange_record.py b/edi/models/edi_exchange_record.py index 6f007199f3..0bdcb5b32d 100644 --- a/edi/models/edi_exchange_record.py +++ b/edi/models/edi_exchange_record.py @@ -214,7 +214,7 @@ def create(self, vals): return super().create(vals) def _get_identifier(self): - return self.env["ir.sequence"].next_by_code("edi.exchange") or "New" + return self.env["ir.sequence"].next_by_code("edi.exchange") or "New" @api.constrains("backend_id", "type_id") def _constrain_backend(self):