From 7dc16e99f2a3657be87c64f7e8fc0102ac3f4eb9 Mon Sep 17 00:00:00 2001 From: Numerigraphe - Lionel Sausin Date: Thu, 21 Oct 2010 10:08:37 +0200 Subject: [PATCH] [IMP] product_expiry: proper help texts lp bug: https://launchpad.net/bugs/664344 fixed bzr revid: ls@numerigraphe.fr-20101021080837-o81w2malpyr2v1l3 --- addons/product_expiry/product_expiry.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/addons/product_expiry/product_expiry.py b/addons/product_expiry/product_expiry.py index fbfa7dc1610..0efbc7c3fe3 100644 --- a/addons/product_expiry/product_expiry.py +++ b/addons/product_expiry/product_expiry.py @@ -50,14 +50,14 @@ class stock_production_lot(osv.osv): help='The date the lot starts deteriorating without becoming dangerous.'), 'removal_date': fields.datetime('Removal Date', help='The date 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 an alert should be notified about the production lot."), } # Assign dates according to products data def create(self, cr, uid, vals, context=None): newid = super(stock_production_lot, self).create(cr, uid, vals, context=context) obj = self.browse(cr, uid, newid, context=context) 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): towrite.append(f) 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.'), 'removal_time': fields.integer('Product Removal Time', 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() # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: -