summaryrefslogtreecommitdiff
path: root/addons/calendar/data/mail_data.xml
diff options
context:
space:
mode:
authorArnold Moyaux <arm@odoo.com>2019-04-10 15:02:27 +0000
committerArnold Moyaux <arm@odoo.com>2019-04-11 07:24:49 +0000
commit027ff77a9e113bc0aa097b3ee1f7a75fccd570c3 (patch)
tree098a8d95b1712059da437bd78f9c15ea6b1d2caa /addons/calendar/data/mail_data.xml
parentd5d93474de7f7f9b0875b533772d3a64047124cb (diff)
[FIX] stock, mrp: scheduler assign finished move
Usecase to reproduce - Create a BoM with finished product A and Comp C - Create a RR on product A with min qty 10 - Product A is tracked by serial number and have route manufacture - Run the scheduler twice. The finished tabs in the manufacturing order created from the order point contains 10 move lines with 1 qty reserved and 0 quantity done. The first run created the MO. The second run, assign the finished moves and thus created the move lines for finished product A. However those move line are not used by mrp because the workorder and the produce wizard will only create new lines instead of using existing lines with reservation. Also action_assign on MO only trigger _action_assign on raw moves. This commit add a hook on scheduler in order to modify the domain that will be used in order to search moves to assign. Use the hook in order to avoid move with the production_id many2one set. closes odoo/odoo#32597 Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Diffstat (limited to 'addons/calendar/data/mail_data.xml')
0 files changed, 0 insertions, 0 deletions