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>
456 B
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