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.