diff options
| author | Goffin Simon <sig@odoo.com> | 2019-09-04 13:09:54 +0000 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2019-09-05 09:35:39 +0000 |
| commit | b4a1b87fb669ac2fceeda909f36363c0c76308a3 (patch) | |
| tree | 9f8db43f9b7f58dd500c7310a68e18662d1b583f /doc/reference/javascript_reference.rst | |
| parent | a3f2c82789520af5a58aa4193d462f4acf8ba529 (diff) | |
[FIX] mrp: domain on field final_lot_id in mrp.production.work.order.form
Steps to reproduce the bug:
Let's consider two storable products P1 and P2 where P1 is tracked by serial number
- Create a BOM B for P1 where P2 is a component
- Create a serial numberv SN for P1 with no quantity
- Create a MO M1 for P1 and click on button "Produce"
- In the view MRP Product Produce, SN is selectable in the field lot_id
- Now change B and set a routing on it
- Create a new MO M2 for P1 and click on produce
- At least one WO has been created, click on the first one
Bug:
- SN is not selectable in the field final_lot_id
The domain set on the field final_lot_id:
"['|', '&', ('product_id', '=', product_id), ('product_id.tracking', '!=', 'serial'), ('use_next_on_work_order_id', '=', id)]"
didn't allow to chose SN.
With this fix, it's now possible to chose SN on the first WO created for M2
opw:2059745
closes odoo/odoo#36425
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
