set force move date
This commit is contained in:
parent
ab4bc377e4
commit
2fb074ec19
|
|
@ -43,7 +43,7 @@ class StockQuant(models.Model):
|
||||||
# Create an empty quant or write on a similar one.
|
# Create an empty quant or write on a similar one.
|
||||||
product = self.env['product.product'].browse(vals['product_id'])
|
product = self.env['product.product'].browse(vals['product_id'])
|
||||||
location = self.env['stock.location'].browse(vals['location_id'])
|
location = self.env['stock.location'].browse(vals['location_id'])
|
||||||
lot_id = self.env['stock.production.lot'].browse(vals.get('lot_id'))
|
lot_id = self.env['stock.lot'].browse(vals.get('lot_id'))
|
||||||
package_id = self.env['stock.quant.package'].browse(vals.get('package_id'))
|
package_id = self.env['stock.quant.package'].browse(vals.get('package_id'))
|
||||||
owner_id = self.env['res.partner'].browse(vals.get('owner_id'))
|
owner_id = self.env['res.partner'].browse(vals.get('owner_id'))
|
||||||
quant = self._gather(product, location, lot_id=lot_id, package_id=package_id, owner_id=owner_id, strict=True)
|
quant = self._gather(product, location, lot_id=lot_id, package_id=package_id, owner_id=owner_id, strict=True)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue