[6.0][sale] warning out of stock product screws the product_change event
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Invalid
|
High
|
Unassigned |
Bug Description
Hello,
on latest trunk version.
Take fresh database with demo data and sale module installed.
Associate a sale tax to the "PC1" product.
Then create a new sale order where you will sale 1000 PC1.
You'll get a warning like "warning PC1 is out of stock"
This is cool to warn the user,
but the way this is implemented in v6 (with raise it seems) currently shortcuts all the product_id_change event and screw the assignation of the other fields such as UOM, taxes etc... In that case your PC1 line won't receive any sale tax which is a severe bug (indeed, despite we don't have the product in stock we might still register a proper order for it of course).
Please look how I implemented that in v5 with a warning message instead that do not screw the normal product_id_change variable assignation:
http://
Hope this helps
Changed in openobject-addons: | |
importance: | Undecided → High |
milestone: | none → 6.0 |
Hello Raphaël,
I configured Product PC1 with sale tax 'Tax 1'.
I tried to generate the error, but did not receive it.
Would you please try again?
Thanks.