diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2018-10-02 11:39:10 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim-odoo@users.noreply.github.com> | 2018-10-02 12:55:36 +0200 |
| commit | cdf201a1dcef94d9eae706a487fa91645d50d11b (patch) | |
| tree | e49fd93ab8b9548dae5c12728f2b7f1e79904c08 /addons/web/static/src/js/views | |
| parent | 532d82a7a9952c5ee843f91e63aae1ca986c6c9d (diff) | |
[FIX] stock: decrease initial demand quantity
- Open a picking (example WH/IN/00002)
- Unlock
- Edit Initial Demand (from 35 to 4 for example)
- Click on Save
An error occurs: 'Record does not exist or has been deleted.'
When saving, the following values are sent to the server (example):
`{'move_ids_without_package': [
[1, 31, {'product_uom_qty': 4, 'date_expected': '2018-10-02 08:27:14'}]
],
'move_line_ids_without_package': [
[1, 26, {'package_id': False, 'result_package_id': False, 'owner_id': False, 'lot_id': False}]
]}`
The field `move_ids_without_package` contains the new quantity. However,
decreasing the quantity will remove the reservation and therefore unlink
the move lines.
https://github.com/odoo/odoo/blob/718b0f8b63261e1312b5626d48de050b21a9dccf/addons/stock/models/stock_move_line.py#L349
This means that the field `move_line_ids_without_package` refers to IDs
which have been deleted when writing on `move_ids_without_package`.
We can make the field read-only if it is not displayed.
opw-1889802
Diffstat (limited to 'addons/web/static/src/js/views')
0 files changed, 0 insertions, 0 deletions
