Commit Graph

9 Commits

Author SHA1 Message Date
Holger Brunn
565122302b Apply dotfiles 2022-10-21 11:36:21 +02:00
Pedro M. Baeza
4875fd46eb [FIX] mrp_subcontracting: Don't perform subcontracting on 0 quantity
If there are several lines in the picking, and some of them are not
received, you've got an error due to the unconditional processing of
all lines.

Now we prevent those that are not received in the loop.

Closes #640
2021-05-20 18:31:31 +02:00
tslai
81206b2684 [FIX] Skip processed MO when validating receipt 2020-11-26 10:34:37 +08:00
tslai
83670d36f3 [IMP] Simplify logic 2020-09-17 17:01:19 +08:00
tslai
5329008246 [FIX] Overwrite active_id context in create() 2020-09-16 15:21:41 +08:00
Pedro M. Baeza
45a66e4b90 [FIX] mrp_subcontracting: Avoid singleton error fetching production order
On v12 and with chained moves coming from sales, procurement, etc, move_orig_ids
contains that full chain, so we get a singleton error.

But as we want the subcontracting production, using mapped, we get that single
record, so we apply this solution everywhere where it's needed.
2020-08-04 14:43:48 +02:00
Pedro M. Baeza
f32ce8ba46 [MIG] mrp_subcontracting: Adapt to v12 + make tests to pass 2020-05-10 17:56:24 +02:00
Alexandre Diaz
0426acf030 [MIG] mrp_subcontracting: Adapt to OCA guidelines + initial work 2020-05-10 17:56:24 +02:00
Odoo
f3a0fc97fc [ADD] mrp_subcontracting: Copied from 13.0 2020-05-10 17:56:24 +02:00