Commit 46f1b98
[FIX] stock_ux: remove non-functional scrap quantity guard
The action_validate() override on stock.scrap tried to prevent scrapping
more than the transfer quantity, but scrap moves are created with
picking_id set, so they count towards total_picking and the cap rises
with every scrap. It only blocked a single scrap larger than the total,
letting the cumulative case through. It also diverges from Odoo, which is
deliberately permissive here (the return wizard caps nothing). Removed the
override and its orphaned translation.
closes #998
Signed-off-by: Matias Velazquez <mav@adhoc.com.ar>1 parent 0e9da7f commit 46f1b98
4 files changed
Lines changed: 1 addition & 43 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | 494 | | |
503 | 495 | | |
504 | 496 | | |
| |||
745 | 737 | | |
746 | 738 | | |
747 | 739 | | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | 740 | | |
754 | 741 | | |
755 | 742 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
This file was deleted.
0 commit comments