mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
fixup! [MIG] repair_refurbish (mrp_repair_refurbish): Migration to 12.0
This commit is contained in:
committed by
ahenriquez
parent
ab00f5a162
commit
065b331eaf
@@ -7,9 +7,10 @@ class StockMove(models.Model):
|
||||
|
||||
_inherit = 'stock.move'
|
||||
|
||||
@api.model
|
||||
def create(self, vals):
|
||||
@api.model_create_multi
|
||||
def create(self, vals_list):
|
||||
if 'force_refurbish_location_dest_id' in self.env.context:
|
||||
vals['location_dest_id'] = self.env.context[
|
||||
'force_refurbish_location_dest_id']
|
||||
return super().create(vals)
|
||||
for vals in vals_list:
|
||||
vals['location_dest_id'] = self.env.context[
|
||||
'force_refurbish_location_dest_id']
|
||||
return super().create(vals_list)
|
||||
|
||||
Reference in New Issue
Block a user