2018-01-16 06:58:15 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
2018-01-16 11:34:37 +01:00
|
|
|
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
|
2018-01-16 06:58:15 +01:00
|
|
|
|
2018-01-16 11:34:37 +01:00
|
|
|
from flectra import fields, models
|
2018-01-16 06:58:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
class ProductTemplate(models.Model):
|
|
|
|
_inherit = 'product.template'
|
|
|
|
|
|
|
|
life_time = fields.Integer(string='Product Life Time',
|
|
|
|
help='Number of days before the goods may become dangerous and must not be consumed. It will be computed on the lot/serial number.')
|
|
|
|
use_time = fields.Integer(string='Product Use Time',
|
|
|
|
help='Number of days before the goods starts deteriorating, without being dangerous yet. It will be computed on the lot/serial number.')
|
|
|
|
removal_time = fields.Integer(string='Product Removal Time',
|
|
|
|
help='Number of days before the goods should be removed from the stock. It will be computed on the lot/serial number.')
|
|
|
|
alert_time = fields.Integer(string='Product Alert Time',
|
|
|
|
help='Number of days before an alert should be raised on the lot/serial number.')
|