Djamel Touati dc733ce3cd [FIX] purchase_stock: set the supplier with their qty in orderpoint
Steps to reproduce the bug:
- Create a storable product:
    - Unit of Measure: KG
    - Purchase UoM: Tonne
    - Vendor: “Azure Interior” Quantity: 6T
    - Recording rule: Min quantity= 500
        - Trigger: Manual
        - Route: Buy

- Go to the replenishment page:
    - Click on the “i” icon
    - On the Azure Interior line, click on “Set as supplier”

Problem:
The quantity to order is not updated to 6000 kg because in the
"action_set_supplier" function, we compare the quantity of the supplier
information with the quantity of the orderpoint without converting the
values to the same UoM. So:
500 < 6 → False
Therefore, the quantity is not updated.

Opw-3705090

closes odoo/odoo#153300

X-original-commit: 9c0550a223b155e4e0859f87d94c1229b53c824a
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
Signed-off-by: Djamel Touati (otd) <otd@odoo.com>
2024-02-09 10:21:51 +00:00
2023-11-02 21:02:44 +00:00
2024-02-08 16:57:42 +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%