account_invoice_pricelist
Adds customer pricelist support to account invoices so pricing rules apply automatically.
Key Features
- account.move: Adds a stored customer pricelist field on sales invoices that defaults from the partner and can be adjusted while the invoice is draft.
- account.move: Automatically aligns the invoice currency with the pricelist currency and blocks validation when they mismatch on sales documents.
- account.move: Provides an update button that recomputes draft invoice line prices based on the currently selected pricelist.
- invoicing UI: Exposes pricelist selection on customer invoices, locks the currency field while a pricelist is set, and adds a pricelist group-by filter plus a receivables menu entry for pricelist management.
- account.move.line: Links each invoice line to the matched pricelist rule and computes unit prices using pricelist logic with product quantity, unit of measure, and invoice date.
- account.move.line: Derives line discounts from the applied pricelist rule while suppressing positive surcharges unless the base price is negative.
- installation: Speeds up deployment on existing databases by creating the pricelist column in advance to avoid heavy recomputations and constraint errors.