diff --git a/NEWS.rst b/NEWS.rst index 59fb76c1251e25b32140539d833ebff751f5f619_TkVXUy5yc3Q=..3f5effb61ade1f5d4176ec35346e63ca8a433b3c_TkVXUy5yc3Q= 100644 --- 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 index 59fb76c1251e25b32140539d833ebff751f5f619_X19tYW5pZmVzdF9fLnB5..3f5effb61ade1f5d4176ec35346e63ca8a433b3c_X19tYW5pZmVzdF9fLnB5 100644 --- 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 index 59fb76c1251e25b32140539d833ebff751f5f619_bW9kZWxzL2FsdGVybmF0ZV9sZWRnZXJfbW92ZS5weQ==..3f5effb61ade1f5d4176ec35346e63ca8a433b3c_bW9kZWxzL2FsdGVybmF0ZV9sZWRnZXJfbW92ZS5weQ== 100644 --- a/models/alternate_ledger_move.py +++ b/models/alternate_ledger_move.py @@ -735,6 +735,6 @@ 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: @@ -739,8 +739,6 @@ 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")