Commit bd727ab6 by Damien Moulard

add field for last product added date

parent b9bdac40
...@@ -14,6 +14,7 @@ class productShelfs(models.Model): ...@@ -14,6 +14,7 @@ class productShelfs(models.Model):
last_inventory_id = fields.Integer(string="Last inventory ID", default=0) last_inventory_id = fields.Integer(string="Last inventory ID", default=0)
last_inv_delta_percentage = fields.Float(string="Last Inventory Quantity Delta Percentage", digits=(10,2)) last_inv_delta_percentage = fields.Float(string="Last Inventory Quantity Delta Percentage", digits=(10,2))
last_inv_losses_percentage = fields.Float(string="Last Inventory Losses Percentage", digits=(10,2)) last_inv_losses_percentage = fields.Float(string="Last Inventory Losses Percentage", digits=(10,2))
date_last_product_added = fields.Date(string="Date of last product added to shelf", default="0001-01-01")
_sql_constraints = [ _sql_constraints = [
('unique_name', 'unique(name)', 'Name must be unique !'), ('unique_name', 'unique(name)', 'Name must be unique !'),
('unique_order', 'unique(sort_order)', 'Num must be unique !') ('unique_order', 'unique(sort_order)', 'Num must be unique !')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment