Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1647 Vistas

A bank account was falsely linked to a supplier, so that all subsequent payments to/from that account are also linked to that (wrong) partner.
When trying to delete the bank account from the supplier I receive this error:

The operation cannot be completed: another model requires the record to be deleted. Archive it if possible.
Model: Journal Entry (account.move) 
Beperking: account_move_partner_bank_id_fkey


As far as I can see I have unreconciled all payments related to this partner; and reset all invoices to concepts. What other steps should I take? 

Avatar
Descartar
Mejor respuesta

Good morning, 


we have the same problem, both a customer and a supplier have the same bank account in Odoo. We would like to remove the bank account from the customer, then this message pops up.


Avatar
Descartar

To generalise this question, the offending entry exists in the res.partner.bank model. There seems to be no user interface for this model, so the proffered "Archive it if possible" is not an option without resorting to custom coding (at least in Odoo 14, but I don't think it changed since).

The problem frequently pops up with payments (either inbound or outbound) through clearing houses such as Mollie, Stripe or Tikkie. When a clearing house bank account gets associated with a specific supplier or customer, there appears to be no way to undo that.

If ever I come up with a proper solution, even if it's only achievable through scripting, I'll post it here. So far a solution has escaped me.

Publicaciones relacionadas Respuestas Vistas Actividad
0
nov 22
1711
1
mar 16
5434
2
ago 25
590
2
ago 25
271
4
ago 25
326