Skip to Content
Menu
This question has been flagged
3 Replies
4419 Views

I have four Journals  in total 3 of them is of miscellaneous type and one is bank type. when I am creating new Journal entry I can only see my "miscellaneous type" journal.  

My Question is how to enable the rest of the type journals (such is bank type)to be available in Journal entries. 

Thanks.

Avatar
Discard
Best Answer

Hello, 

We have a module that solves this problem. 

Here is the link: https://apps.odoo.com/apps/modules/18.0/rrm_all_journal 

Kind regards,

Avatar
Discard
Best Answer

Hi Salman,

Actually if you are creating the customer invoice, then you can see the sale type of journals. Same as vendor invoice, you can see the purchase type of the journals . And if you create a Journal entry directly form Journal Entries, it will take the miscellaneous type of Journal.   Bank and Cash Journals are used for the Payments and other functions. system identify and filter the Journal on usage smartly.

So from the coding side, if you want to add all the Journals in the Journal Entries you have to remove the domain from the journal_id field from account move, or changed the "suitable_journal_ids"  function "_compute_suitable_journal_ids" to remove the type checking tuple from it.

    @api.depends('company_id', 'invoice_filter_type_domain')
def _compute_suitable_journal_ids(self):
for m in self:
journal_type = m.invoice_filter_type_domain or []
company_id = m.company_id.id or self.env.company.id
domain = [('company_id', '=', company_id)]
m.suitable_journal_ids = self.env['account.journal'].search(domain)


R.E : Odoo 15 CE

Hope it will helps you.

Avatar
Discard
Author Best Answer

Thank you very much for your kind response. I appreciate it, since I do not have enough Odoo development experience so I do not know where exactly i have to make these changes ? if you have time please..

Thanks in advance

Avatar
Discard

Sure salman,
You need to inherit the account.move model and change the methods and add the code as i have explained in my answer.
You need to change the _compute_suitable_journal_ids method or you can remove the domain and add domain=[] in the journal_id py field.

If it helps you, please vote the answer.