[ADD] add_pricelist_price: add book price to sale and invoice lines#1165
Draft
isgos-odoo wants to merge 1 commit intoodoo:19.0from
Draft
[ADD] add_pricelist_price: add book price to sale and invoice lines#1165isgos-odoo wants to merge 1 commit intoodoo:19.0from
isgos-odoo wants to merge 1 commit intoodoo:19.0from
Conversation
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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.