Skip to content

Wrong Journal Selected in Multi‑Company Customer Invoices (Odoo 17 + OM Modules) #184

@E4eqRL0yw0yajQJ433QL

Description

@E4eqRL0yw0yajQJ433QL

Issue:
Wrong Journal Selected in Multi‑Company Customer Invoices (Odoo 17 + OM Modules)

Environment

  • Odoo version: 17.0‑20251208 (Community Edition)
  • Module: om_account_accountant v17.0.2.0.2
  • Setup: Multi‑company (Holding Company + Operating Company)
  • User: User with full access rights, including access to both companies

✅ Expected Behavior
When creating a customer invoice in the Operating Company:

  • The system should automatically select the Operating Company’s sales journal.
  • The invoice should use the numbering sequence of that journal.
  • Invoices (both draft and posted invoices) should appear in the invoice dashboard of the operating company

❌ Actual Behavior
The system defaults to the Holding Company’s journal instead.
Numbering starts at “1” (from the Holding Company’s sequence).
(Draft) invoices do not appear in the invoice dashboard of the operating company, whilst they dó show in the list of (draft) journal entries.
Note: This only seems to affect customer invoices; Supplier invoices are unaffected — they correctly use the Operating Company’s journal.

🔎 Steps to Reproduce
Configure two companies: Holding Company + Operating Company.
Ensure each company has its own sales journal with its own numbering sequence.
Switch to the Operating Company.
Create a new customer invoice.
Observe that the journal defaults to the Holding Company’s journal and numbering sequence.

📌 Workarounds

  • Manually changing the journal to the Operating Company during invoice creation fixes the issue.
  • Deactivating the Holding Company’s journal in configuration also forces correct behavior.

🧩 Notes
This issue did not occur in Odoo 16 — migration to Odoo 17 introduced the problem.
Only customer invoices are affected; supplier invoices behave correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions