Skip to Content
Menu
This question has been flagged
2 Replies
646 Views

We have a clearing account we no longer use, and a credit card we no longer use, and when I try to archive their journals in Accounting, I get this error: "This journal is associated with a payment method. You cannot archive it"

I went through all the payment methods in Odoo and these journals are no longer being used for anything anywhere as far as I can tell, and they have 0 balances. Is there a trick to archive journals? I don't want to litter the reports with unused accounts.

Avatar
Discard
Best Answer

This message is triggered when Odoo searches account.payment.method.line records.

These records represent the Payment Methods defined on the Incoming Payments and Outgoing Payments tabs on the Journal.

You need to delete all Payment Methods from your Journal before you can archive the Journal.


To discover this yourself:

1) Search the source code for the error message:

https://github.com/search?q=repo%3Aodoo%2Fodoo+path%3Aaddons%2Faccount%2Fmodels+action_archive&type=code


2) Search the Fields Menu, filtered by the account.journal Model to find which fields relate to this model


3. Verify on the Form View of the account.journal model where these records can be managed.


Avatar
Discard
Best Answer

You can’t archive a journal linked to a payment method in Odoo. Try this:

  1. Remove the link – Go to Accounting > Configuration > Payment Methods and unlink the journal.
  2. Check active payments – Make sure no payments are tied to it.
  3. Set to "Disabled" – If you can’t archive, mark it inactive to hide it from reports.

If it still won’t archive, Odoo might not allow it directly.

Avatar
Discard