vevi-odoo 7e58f703f4 [FIX] stock: calculate sum of quantity mapped with quant
This traceback arises when the user tries to click on 'Lot/ serial Number' in
Create Move Line

To reproduce this issue:

1. Install 'stock'
2. Create a new record in Lot and Serial Number from 'products/Lot and Serial
   Numbers'
3. Now go to 'operations/Transfers/Deliveries'
4. Create a new record and select the above-created 'Lot and serials' product
5. Save the record and click 'Mark as Todo'
6. Click on the 'Detailed Operations'  button and add a line
7. Set the quantity
8. Again add a line click on new then select  Lot/serial Number

ValueError:
Expected singleton: stock.quant(5, 24)

when the user tries to  click on 'Lot/serial Number' in Create Move Line
a value error occurs because getting many values excepted single value

Which leads to the traceback from here
https://github.com/odoo/odoo/blob/230b680bf92583c9f5e4a3739be1d8602df44331/addons/stock/models/stock_quant.py#L905-L929

After applying this commit will resolve the issue of getting a sum of quantity
mapped with the quant

sentry-4715604118

closes odoo/odoo#146560

X-original-commit: c7612dfc4349bc9b21a48ca5192523f180f9b5e8
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2023-12-18 14:34:20 +00:00
2023-11-02 21:02:44 +00:00
2023-12-16 18:31:06 +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%