[FIX] stock: fix in_date default

coming from aa7061e9bcbf10fa9dbeac4402d704a260644b66

closes odoo/odoo#63387

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
This commit is contained in:
Rémy Voet (ryv)
2020-12-15 12:17:22 +00:00
parent 0286a46c96
commit 93ed6754a5
+1 -1
View File
@@ -92,7 +92,7 @@ class StockQuant(models.Model):
'Available Quantity',
help="On hand quantity which hasn't been reserved on a transfer, in the default unit of measure of the product",
compute='_compute_available_quantity')
in_date = fields.Datetime('Incoming Date', readonly=True, required=True, default=fields.Datetime.now())
in_date = fields.Datetime('Incoming Date', readonly=True, required=True, default=fields.Datetime.now)
tracking = fields.Selection(related='product_id.tracking', readonly=True)
on_hand = fields.Boolean('On Hand', store=False, search='_search_on_hand')