Skip to content

Commit

Permalink
use search insead of match
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwul committed Dec 28, 2024
1 parent 0065425 commit 776ff58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions account_reconcile_model_oca/models/account_reconcile_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,12 +478,12 @@ def _get_partner_from_mapping(self, st_line):

for partner_mapping in self.partner_mapping_line_ids:
match_payment_ref = (
re.match(partner_mapping.payment_ref_regex, st_line.payment_ref)
re.search(partner_mapping.payment_ref_regex, st_line.payment_ref)
if partner_mapping.payment_ref_regex
else True
)
match_narration = (
re.match(
re.search(
partner_mapping.narration_regex,
tools.html2plaintext(st_line.narration or "").rstrip(),
)
Expand Down

0 comments on commit 776ff58

Please sign in to comment.