Files
odoo_source/doc/cla/corporate/biktrix.md
T
William Henrotinandatremblay-biktrix 5e682c71ec [FIX] stock_landed_costs: traceback division by 0 when no quantity
Issue:
When computing the landed cost for a transfer with quantity 0, the validation of the LC wasn't working since there was a quantity 0

Steps to reproduce :
Create a PO for some items
Confirm, validate the delivery
Edit and unlock the delivery, set one quantity to 0, save
Create a landed cost for that transfer
Compute it
Validate -> Traceback

Why is that a bug:
There should not be a traceback, this is caused by trying to validate a landed cost for a product where there is no quantity, if there is no quantity, it should be part of the landed cost computation

Background:
Following the fix recently applied in 14.0 and replicating for 13.0.

opw-2599799

closes odoo/odoo#78067

X-original-commit: f7b61bff319bf316228500e00785c8c44a30fc4b
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
Co-authored-by: atremblay-biktrix <69811674+atremblay-biktrix@users.noreply.github.com>
2021-10-08 16:09:31 +00:00

456 B

Canada, 2021-09-03

Biktrix Electric Bikes agrees to the terms of the Odoo Corporate Contributor License Agreement v1.0.

I declare that I am authorized and able to make this agreement and sign this declaration.

Signed,

Andrew Tremblay 69811674+atremblay-biktrix@users.noreply.github.com https://github.com/atremblay-biktrix

List of contributors:

Andrew Tremblay 69811674+atremblay-biktrix@users.noreply.github.com https://github.com/atremblay-biktrix