Skip to content

Conversation

@utpat-odoo
Copy link

@utpat-odoo utpat-odoo commented Dec 9, 2025

Purpose:
Client requires the ability to see the original pricelist on sale order lines and invoice order lines. This will used to compare between pricelist and any manually adjusted price on the lines.

Technical changes:

  1. Add a new field book_price on both sale.order.line and account.move.line models.
  2. Display the book_price field:
  • On the Sales Order form (order lines).
  • On the Account Move form (invoice lines).
  • In Account Move, the field is visible only when move.type is a Customer Invoice.
  1. Business Logic for book_price Calculation:
  • If no product is not exist then book_price should be 0.0.
  • If a product exists but is not included in the selected pricelist, book_price should be set to the product’s original sales price.
  • If the product exists in the selected pricelist, compute book_price based on the pricelist rule, using Selected pricelist, product, quantity

task-5382732

@robodoo
Copy link

robodoo commented Dec 9, 2025

Pull request status dashboard

@utpat-odoo utpat-odoo force-pushed the 19.0-sales-pricelist-utpat branch from 59a0a95 to d959920 Compare December 9, 2025 06:12
Purpose:
Client requires the ability to see the original pricelist on sale order lines
and invoice order lines. This will used to compare between pricelist
and any manually adjusted price on the lines.

Technical changes:
1. Add a new field book_price on both sale.order.line and
account.move.line models.
2. Display the book_price field:
- On the Sales Order form (order lines).
- On the Account Move form (invoice lines).
- In Account Move, the field is visible only when move.type is a
Customer Invoice.
3. Business Logic for book_price Calculation:
- If no product is not exist then book_price should be 0.0.
- If a product exists but is not included in the selected pricelist, book_price
should be set to the product’s original sales price.
- If the product exists in the selected pricelist, compute book_price based on
the pricelist rule, using Selected pricelist, product, quantity

task-5382732
@utpat-odoo utpat-odoo force-pushed the 19.0-sales-pricelist-utpat branch from d959920 to 71fa103 Compare December 9, 2025 06:51
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