Skip to content

Commit

Permalink
edi: fix exchange ordering
Browse files Browse the repository at this point in the history
In case exchange_on is the same, use ID to get the latest on top.
  • Loading branch information
simahawk committed Aug 25, 2023
1 parent c9970f0 commit 3895a26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edi_oca/models/edi_exchange_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class EDIExchangeRecord(models.Model):
_name = "edi.exchange.record"
_inherit = "mail.thread"
_description = "EDI exchange Record"
_order = "exchanged_on desc"
_order = "exchanged_on desc, id desc"
_rec_name = "identifier"

identifier = fields.Char(required=True, index=True, readonly=True)
Expand Down

0 comments on commit 3895a26

Please sign in to comment.