set force move date

This commit is contained in:
Raman Marikanti 2026-01-08 17:37:18 +05:30
parent ab4bc377e4
commit 2fb074ec19
1 changed files with 1 additions and 1 deletions

View File

@ -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)