Skip to content
Snippets Groups Projects
Commit 29cd0492 authored by Adrien Widart's avatar Adrien Widart
Browse files

[FIX] point_of_sale: consider scanned price as manual price


In a POS session, when using the scanner, if the seller changes the
customer, the prices may become incorrect

To reproduce the issue
1. Create a product P:
    - Sales Price: 38
    - Barcode: 2312345000002
    - Available in POS: True
2. Start a POS session (with debug Window)
3. Scan 2312345010001
    - This is product P with price $10
4. Set a Customer

Error: The price is now $38

Because the price has not been set manually, when changing the customer,
the pricelist is updated and so does the price.

When scanning a barcode that includes a price, the latter should be
considered as manually set.

OPW-2618934

closes odoo/odoo#76076

X-original-commit: e6672427
Signed-off-by: default avatarpimodoo <pimodoo@users.noreply.github.com>
Signed-off-by: default avatarAdrien Widart <adwid@users.noreply.github.com>
parent d1ccfdc4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment