partner_invoicing_mode
Provides the base infrastructure for managing partner-specific invoicing modes and automated invoice creation in Odoo.
Key Features
- res.partner: Adds an invoice mode selector, a per-order invoicing toggle, and next invoice date tracking on customer records.
- sale.order: Mirrors the customer's invoicing mode, provides a stored per-order invoicing flag, and lets users adjust it directly on sales.
- sale.order: Generates invoices for eligible orders through queued jobs, grouping by company, invoicing partner, and payment term in addition to the standard keys.
- sale.order: Forces newly created invoices to use the generation date and triggers each partner's next-invoice update hook after invoicing.
- automation: Provides an inactive daily scheduled action that calls the standard invoice generator for background processing.
- queue.job: Introduces a dedicated invoice validation channel and adapts related actions to open a list view when multiple invoices are linked.
- account.move: Posts invoices via sudoed action_post when validation jobs run so queued tasks can confirm them.
- res.company: Stores the last standard invoicing execution datetime, exposed in settings for administrators.