diff options
| author | Adrien Widart <awt@odoo.com> | 2021-05-21 13:11:52 +0000 |
|---|---|---|
| committer | Adrien Widart <awt@odoo.com> | 2021-05-26 13:36:42 +0000 |
| commit | aff3a2e06801dfb7a58df5180fb4ab5487b27f02 (patch) | |
| tree | 341d2c21c7ba92f25009b37f6d6580bbbeab66f2 /addons/point_of_sale/static/src/js/Screens/PaymentScreen/PaymentScreen.js | |
| parent | ff58fb0fb588092f1d02500cd000d20a3f8b67b7 (diff) | |
[FIX] mrp: use correct UoM for each component in MO
In a Manufacturing Order, the components' quantities are rounded using
the rounding precision of the produced product's UoM. This leads to
incorrect values.
To reproduce the error:
1. In Settings, enable "Units of Measure"
2. In UoM, edit Units:
- Rounding Precision: 1
3. Create two products P_finished and P_compo
- P_compo's Product Type: Consumable
- P_compo's UoM: L
- P_finished's UoM: Units
4. Create a Bill of Materials
- Product: P_finished
- 1 Component:
- Product: P_compo
- Quantity: 0.2
- UoM: L
5. Create a Manufacturing Order:
- Product: P_finished
6. Confirm, Mark as Done
Error: Qty to consumes became 0 and consumed qty is 0. Both values
should be 0.2L, but they have been rounded using the rounding precision
of Units
OPW-2529462
closes odoo/odoo#71146
Signed-off-by: Steve Van Essche <svs-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/point_of_sale/static/src/js/Screens/PaymentScreen/PaymentScreen.js')
0 files changed, 0 insertions, 0 deletions
