From c6acfdf4df018587a16ad0dacb5d55c7ba04e66b Mon Sep 17 00:00:00 2001 From: Camila Date: Mon, 5 Aug 2024 10:39:41 -0300 Subject: [PATCH] [FIX] account_payment_pro_receiptbook: remove type in sequence filter --- account_payment_pro_receiptbook/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_payment_pro_receiptbook/models/account_move.py b/account_payment_pro_receiptbook/models/account_move.py index 7334f77ba..0bf51219e 100644 --- a/account_payment_pro_receiptbook/models/account_move.py +++ b/account_payment_pro_receiptbook/models/account_move.py @@ -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()