# HG changeset patch # User DIATTA Arona Ben Cherif dit Roon <aronabencherif.diatta@xcg.africa> # Date 1719418243 0 # Wed Jun 26 16:10:43 2024 +0000 # Branch 16.0 # Node ID 3f5effb61ade1f5d4176ec35346e63ca8a433b3c # Parent 59fb76c1251e25b32140539d833ebff751f5f619 Being able to choose all the accounting journals in the accounting documents form diff --git a/NEWS.rst b/NEWS.rst --- a/NEWS.rst +++ b/NEWS.rst @@ -2,6 +2,11 @@ ChangeLog ========= +16.0.1.2.0 +========== + +Being able to choose all the accounting journals in the accounting documents form. + 16.0.1.1.0 ========== diff --git a/__manifest__.py b/__manifest__.py --- a/__manifest__.py +++ b/__manifest__.py @@ -19,7 +19,7 @@ ############################################################################## { "name": "Alternate Ledger", - "version": "16.0.1.1.0", + "version": "16.0.1.2.0", "author": "XCG Consulting", "category": "Accounting", "summary": """Allow the creation of new accounting ledgers that store diff --git a/models/alternate_ledger_move.py b/models/alternate_ledger_move.py --- a/models/alternate_ledger_move.py +++ b/models/alternate_ledger_move.py @@ -735,12 +735,10 @@ and move.company_id.account_storno ) - @api.depends("company_id", "invoice_filter_type_domain") + @api.depends("company_id") def _compute_suitable_journal_ids(self): for m in self: - journal_type = m.invoice_filter_type_domain or "general" - company_id = m.company_id.id or self.env.company.id - domain = [("company_id", "=", company_id), ("type", "=", journal_type)] + domain = [("company_id", "=", m.company_id.id or self.env.company.id)] m.suitable_journal_ids = self.env["account.journal"].search(domain) @api.depends("posted_before", "state", "journal_id", "date")