partner_invoicing_mode_at_shipping
This module automates generating and validating customer invoices at the moment goods are delivered according to each partner’s shipping invoicing preferences.
Key Features
- res.partner: Adds an 'At Shipping' invoicing mode and a one-invoice-per-shipping option with constraints to block incompatible combinations and propagate the setting to commercial entities.
- sale.order: Stores the partner’s one-invoice-per-shipping preference on orders and queues background validation for invoices produced by shipping runs while updating partner invoicing schedules.
- stock.picking: When outgoing deliveries are completed it schedules invoice creation that respects partner grouping rules and auto-posts invoices for partners using the 'At Shipping' mode.
- queue.job: Defines a dedicated queue channel and job registration so invoicing-at-shipping tasks execute asynchronously.
- technical: Provides a pre-init hook that injects the one-invoice-per-shipping field into existing databases during installation or migration.