b71501c7d0e17a51aaaa0db75f0525a321033b08
Steps to reproduce the bug: - Create a new transfer, e.g: internal transfer is fine - Click on add a product > select any product > Save & close - Click on the product that was just added - change the product1_uom_qty - Click on "Discard" button (Do not use the "Save & Close" nor the "Save & New"). - On the picking, click on save. Problem: A user error is triggered, because when creating the `stock.move`, we try to save the `product_qty` while it is a technical field: https://github.com/odoo/odoo/blob/ba3bb9b701a382c4052ddb57392baeee32625937/addons/stock/models/stock_move.py#L375 When we modify the `porudct_uom_qty`, a compute is triggered to calculate the `porudct_qty`: https://github.com/odoo/odoo/blob/ba3bb9b701a382c4052ddb57392baeee32625937/addons/stock/models/stock_move.py#L278-L279 But when we click on the discard, the changes are not cancelled, and as the kanban view does not have the information from the form view that the field `product_qty` is readonly, so the `product_qty` is sent in the vals to the server when we save the picking opw-2638906 closes odoo/odoo#94586 X-original-commit: 289d0d845df092eeae6ce0598ffef9158978ad30 Signed-off-by: Adrien Widart <awt@odoo.com> Signed-off-by: Djamel Touati (otd) <otd@odoo.com>
…
…
…
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
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%