Fix duplicated transactions
All checks were successful
Update odoo 18 / update (push) Successful in 1m3s
All checks were successful
Update odoo 18 / update (push) Successful in 1m3s
This commit is contained in:
parent
7d111b55ce
commit
60ce38d367
@ -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']
|
||||
|
||||
Loading…
Reference in New Issue
Block a user