Skip to content

Commit

Permalink
[FIX] account_payment_pro_receiptbook: remove type in sequence filter
Browse files Browse the repository at this point in the history
  • Loading branch information
cav-adhoc committed Aug 5, 2024
1 parent 8434518 commit 1a29b81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_payment_pro_receiptbook/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ def _search(self, domain, offset=0, limit=None, order=None, access_rights_uid=No
return super()._search(domain, offset=offset, limit=limit, order=order, access_rights_uid=access_rights_uid)

def _compute_made_sequence_hole(self):
receiptbook_recs = self.filtered(lambda x: x.receiptbook_id and x.journal_id.type in ('bank', 'cash'))
receiptbook_recs = self.filtered(lambda x: x.receiptbook_id)
receiptbook_recs.made_sequence_hole = False
super(AccountMove, self - receiptbook_recs)._compute_made_sequence_hole()

0 comments on commit 1a29b81

Please sign in to comment.