Skip to content

[ADD] add_pricelist_price: add book price to sale and invoice lines#1165

Draft
isgos-odoo wants to merge 1 commit intoodoo:19.0from
odoo-dev:19.0-add-pricelist-price-isgos
Draft

[ADD] add_pricelist_price: add book price to sale and invoice lines#1165
isgos-odoo wants to merge 1 commit intoodoo:19.0from
odoo-dev:19.0-add-pricelist-price-isgos

Conversation

@isgos-odoo
Copy link

Business Context

Client requires the ability to see the original pricelist price ("Book Price") on sales order lines and invoice lines. This will be used to compare between pricelist ("Book Price") and any manually adjusted price on the lines.

Proposed Solution:

Add a new computed field on Sales Order Lines and Account Move Lines that will output the relevant pricelist price based on the currently selected pricelist, product and quantity.

On the Invoice Lines tree view - add the new "Book Price" field (only on customer invoices)

On the Sales Order lines tree view - add the new "Book Price" field.

Implemented a new module to compute and display the 'Book Price' (pricelist price)
on Sale Order and Account Move lines for comparison with the actual unit price.

Changes:
- Models: Added `book_price` computed field to `sale.order.line` to fetch price from the order's pricelist.
- Models: Added `book_price` computed field to `account.move.line` with fallback logic for related sale orders or partner pricelists.
- Views: Extended Sale Order form to display `book_price` after quantity.
- Views: Extended Invoice form to display `book_price` before unit price (for customer invoices only).
@robodoo
Copy link

robodoo commented Feb 13, 2026

Pull request status dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants