diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2018-06-08 12:13:45 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim-odoo@users.noreply.github.com> | 2018-06-11 10:02:09 +0200 |
| commit | 61c9921596662a2cbc15a154a91dd2f52c9854fd (patch) | |
| tree | a0ec6ce58eacfa6bc7f9f0db14f5822292971bbd /setup/package.dfsrc | |
| parent | 9422b3272ecad5ed71e14722ae8e822223a9a128 (diff) | |
[FIX] mrp_repair: return move with owner
- Create Product A with 5 Unit(s) on hand
- Created SO for 5 Units(s) A, validate SO and picking
- Return of the same quantity, but assign an owner
- Created RMA for 5 Units(s)
A warning generated: 'A is not available in sufficient quantity in ...'.
By assigning an owner on the return, the product is not considered
available. However, this makes sense since we are not owner of the
product, so it should not be valued.
Ideally, we would need a field `owner_id` on the RMA. Since it is not
available, we use `partner_id`. the logic is the following:
- try to reserve with owner_id = partner_id
- if the available qty is not sufficient, try without owner
When the stock moves are created, we apply the same logic to know
whether we need to create the move with an owner. Note that this is not
really sufficient. Ideally, we should reserve the quantity to repair
when we check if the quantity available is sufficient.
opw-1854346
Diffstat (limited to 'setup/package.dfsrc')
0 files changed, 0 insertions, 0 deletions
