sale_stock_picking_invoicing
Extends stock picking invoicing for sales so pickings generate invoices consistent with sale order policies and data.
Key Features
- res.company: Adds a sale invoicing policy setting to choose whether invoices originate from sale orders or stock pickings.
- res.config.settings: Exposes the sale invoicing policy on the sales configuration page for easy company-level setup.
- sale.order: Restricts invoice creation on sale orders to service lines when the company policy requires invoicing from stock pickings and informs users otherwise.
- sale.order.line: Flags procurements to be invoiced on delivery when the stock picking invoicing policy is enabled.
- stock.move: Applies the sale line unit price to generated invoices and marks newly created pickings to be invoiced under the stock picking policy.
- stock.picking: Uses the sale order’s invoice partner when creating invoices from deliveries.
- stock.invoice.onshipping: Rebuilds picking invoices using sale order data, keeping sections, notes, down payments, and line sequencing aligned with the original sale.