diff options
| author | Josse Colpaert <jco@odoo.com> | 2018-03-14 14:11:25 +0100 |
|---|---|---|
| committer | Nicolas Martinelli <nim-odoo@users.noreply.github.com> | 2018-05-23 08:29:27 +0200 |
| commit | 8b328665f772909059c37f2a09b5dc1be1306848 (patch) | |
| tree | c01679e138b4ca2aaab17c7777370deb32cf2cbc /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | 3d7b238b8ee1139eeab0f6317f96dffc7dc0d423 (diff) | |
[FIX] mrp: workorders of sub-BOMs
- Create the following BOM structure:
```
Prod 1 (Manufacture)
|
--- Prod 2
Prod 3 (Kit)
|
--- Prod 4
Prod 5
```
- The BOMs for Prod 1 & 3 must have a routing set, to generate
workorders
- Create a MO for 1 unit of Prod 1, process to the end
2 units of Prod 1 are created instead of 1.
This is due to the WO for Prod 3 not having a `next_work_order_id`.
Therefore, `record_production` adds an extra quantity at:
```
production_move.quantity_done += self.qty_producing
```
To prevent this, we set as `next_work_order_id` of the BOM of Prod 3 the
WO of Prod 1.
Closes #19527
opw-1817398
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
