Nathan Marotte (nama) 875bcb1d66 [FIX] stock_landed_cost : 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 :
 1) Create a PO for some items
 2) Confirm, validate the delivery
 3) Edit and unlock the delivery, set one quantity to 0, save
 4) Create a landed cost for that transfer
 5) Compute it
 6) 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

opw-2599799

closes odoo/odoo#75565

X-original-commit: 800433bde03a36ead40a78bc6d53cbb95c24f97b
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Signed-off-by: Nathan Marotte <nmarotte@users.noreply.github.com>
2021-08-27 09:33:58 +00:00
2021-08-16 15:19:30 +00:00
…
…
…
…

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%