File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1- # Copyright Jacques-Etienne Baudoux 2016 Camptocamp
1+ # Copyright 2016 Jacques-Etienne Baudoux (BCIM) <je@bcim.be>
22# Copyright Iryna Vyshnevska 2020 Camptocamp
33# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
44
@@ -19,6 +19,7 @@ def button_fillwithstock(self):
1919 "active_model" : "stock.quant" ,
2020 "planned" : True ,
2121 }
22+ # FIXME: this action should not bypass the call to action_assign !!!
2223 move_wizard = (
2324 self .env ["wiz.stock.move.location" ]
2425 .with_context (** context )
@@ -28,6 +29,7 @@ def button_fillwithstock(self):
2829 "origin_location_id" : self .location_id .id ,
2930 "picking_type_id" : self .picking_type_id .id ,
3031 "picking_id" : self .id ,
32+ "apply_putaway_strategy" : True ,
3133 }
3234 )
3335 )
Original file line number Diff line number Diff line change 99- Nice to have: add a magic button on locations that with context
1010 creates a new picking of that type with the origin location already
1111 filled in.
12+
13+ Note from Jacques-Etienne Baudoux (BCIM)
14+ - The fill with stock action on stock.picking should not create manually the
15+ move lines but instead call ` action_assign() ` . There are many modules hooking
16+ ` action_assign ` that are not called due to this.
You can’t perform that action at this time.
0 commit comments