Fix duplicated transactions
All checks were successful
Update odoo 18 / update (push) Successful in 1m3s

This commit is contained in:
mgite 2024-11-18 19:35:51 +04:00
parent 7d111b55ce
commit 60ce38d367

View File

@ -112,6 +112,10 @@ class BankMovements(models.Model):
movement = json.loads(rec.json_data)
movement_id = movement['movementId']
if self.env['brosse.bank.transactions'].search([('movement_id', '=', movement_id)]):
continue
external_payment_id = movement['externalPaymentId']
debit_credit = movement['debitCredit']
value_date = movement['valueDate']