summaryrefslogtreecommitdiff
path: root/addons/mail/static/src
diff options
context:
space:
mode:
authorAdrien Widart <awt@odoo.com>2021-03-05 16:27:47 +0000
committerAdrien Widart <awt@odoo.com>2021-03-08 07:46:53 +0000
commit377f70ada0ec720aca055986ff19b8bbff84e33d (patch)
tree8b87067936284d31d4db3b9dfe954488e5f76876 /addons/mail/static/src
parent7e7d8731aa5679123100311b573a65ae23f3db99 (diff)
[FIX] sale_stock_margin: compute product uom qty
When confirming a SO, if a line uses a different UoM than the default UoM of the line product, the computed cost will be updated to the product unit cost. To reproduce the error: 1. In Settings, enable: - Units of Measure - Margins 2. Create a product P - Sales Price: $100 - No customer taxes - Cost: $50 - UoM: Units 3. Create a SO - Add P - Set the line UoM to 'Dozens' 4. Display the order line field "Cost" - [Note] As you can see, since UoM is 'Dozens': - Unit Price: $1200 - Cost: $600 5. Confirm the SO Error: Line cost becomes $50 (the cost of one P-product). Since the UoM of the line is 'Dozens', Cost should be $600 (as before confirming the SO). As a result, this error creates incorrect data in the margins (95.83% instead of 50%). OPW-2444335 closes odoo/odoo#67397 Signed-off-by: Adrien Widart <adwid@users.noreply.github.com>
Diffstat (limited to 'addons/mail/static/src')
0 files changed, 0 insertions, 0 deletions