Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2040 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit

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.

Related Posts Odpovědi Zobrazení Aktivita
0
lis 22
1957
1
bře 16
5665
1
zář 25
200
1
zář 25
646
0
zář 25
72