[FIX, MERGE]: product_expiry: Fixed help texts
lp bug: https://launchpad.net/bugs/664344 fixed bzr revid: rpa@tinyerp.com-20101104095101-c5kf0gmfsgcewbh2
This commit is contained in:
commit
4805ba8743
|
@ -45,19 +45,19 @@ class stock_production_lot(osv.osv):
|
||||||
|
|
||||||
_columns = {
|
_columns = {
|
||||||
'life_date': fields.datetime('End of Life Date',
|
'life_date': fields.datetime('End of Life Date',
|
||||||
help='The date the lot may become dangerous and should not be consumed.'),
|
help='The date on which the lot may become dangerous and should not be consumed.'),
|
||||||
'use_date': fields.datetime('Best before Date',
|
'use_date': fields.datetime('Best before Date',
|
||||||
help='The date the lot starts deteriorating without becoming dangerous.'),
|
help='The date on which the lot starts deteriorating without becoming dangerous.'),
|
||||||
'removal_date': fields.datetime('Removal Date',
|
'removal_date': fields.datetime('Removal Date',
|
||||||
help='The date the lot should be removed.'),
|
help='The date on which the lot should be removed.'),
|
||||||
'alert_date': fields.datetime('Alert Date', help="The date signifying an alert to notify about the production lot."),
|
'alert_date': fields.datetime('Alert Date', help="The date on which an alert should be notified about the production lot."),
|
||||||
}
|
}
|
||||||
# Assign dates according to products data
|
# Assign dates according to products data
|
||||||
def create(self, cr, uid, vals, context=None):
|
def create(self, cr, uid, vals, context=None):
|
||||||
newid = super(stock_production_lot, self).create(cr, uid, vals, context=context)
|
newid = super(stock_production_lot, self).create(cr, uid, vals, context=context)
|
||||||
obj = self.browse(cr, uid, newid, context=context)
|
obj = self.browse(cr, uid, newid, context=context)
|
||||||
towrite = []
|
towrite = []
|
||||||
for f in ('life_date','use_date','removal_date','alert_date'):
|
for f in ('life_date', 'use_date', 'removal_date', 'alert_date'):
|
||||||
if not getattr(obj, f):
|
if not getattr(obj, f):
|
||||||
towrite.append(f)
|
towrite.append(f)
|
||||||
context = context or {}
|
context = context or {}
|
||||||
|
@ -82,8 +82,7 @@ class product_product(osv.osv):
|
||||||
help='The number of days before a production lot starts deteriorating without becoming dangerous.'),
|
help='The number of days before a production lot starts deteriorating without becoming dangerous.'),
|
||||||
'removal_time': fields.integer('Product Removal Time',
|
'removal_time': fields.integer('Product Removal Time',
|
||||||
help='The number of days before a production lot should be removed.'),
|
help='The number of days before a production lot should be removed.'),
|
||||||
'alert_time': fields.integer('Product Alert Time', help="The number of days after which, needs an alert to notify about the production lot."),
|
'alert_time': fields.integer('Product Alert Time', help="The number of days after which an alert should be notified about the production lot."),
|
||||||
}
|
}
|
||||||
product_product()
|
product_product()
|
||||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue