Skip to content
Permalink
Browse files

fixup [IMP] product_expiry: add field expiration_date

  • Loading branch information...
svs-odoo committed Oct 9, 2019
1 parent 0c77f23 commit 20ec57c356849df207436eabf98493c97b1dbe61
@@ -10,7 +10,7 @@ class ProductTemplate(models.Model):
use_expiration_date = fields.Boolean(string='Expiration Date',
help='When this box is ticked, you have the possibility to specify dates to manage'
' product expiration, on the product and on the corresponding lot/serial numbers')
life_time = fields.Integer(string='Expiration Time',
expiration_time = fields.Integer(string='Expiration Time',
help='Number of days after the receipt of the products (from the vendor'
' or in stock after production) after which the goods may become dangerous'
' and must not be consumed. It will be computed on the lot/serial number.')
@@ -9,7 +9,7 @@ class StockProductionLot(models.Model):

use_expiration_date = fields.Boolean(
string='Use Expiration Date', related='product_id.use_expiration_date')
life_date = fields.Datetime(string='Expiration Date',
expiration_date = fields.Datetime(string='Expiration Date',
help='This is the date on which the goods with this Serial Number may become dangerous and must not be consumed.')
use_date = fields.Datetime(string='Best before Date',
help='This is the date on which the goods with this Serial Number start deteriorating, without being dangerous yet.')

0 comments on commit 20ec57c

Please sign in to comment.
You can’t perform that action at this time.