From cd6cb3606fbf910e80c8ea54aced1bfd6793a814 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Thu, 30 Oct 2008 10:02:43 +0100 Subject: [PATCH] improvement bzr revid: fp@tinyerp.com-20081030090243-33fb3xpu6f1lzmo0 --- addons/account/account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index a7898ed25cc..048ecedbca1 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -42,7 +42,7 @@ class account_payment_term(osv.osv): _name = "account.payment.term" _description = "Payment Term" _columns = { - 'name': fields.char('Payment Term', size=32, translate=True), + 'name': fields.char('Payment Term', size=32, translate=True, required=True), 'active': fields.boolean('Active'), 'note': fields.text('Description', translate=True), 'line_ids': fields.one2many('account.payment.term.line', 'payment_id', 'Terms'), @@ -86,7 +86,7 @@ class account_payment_term_line(osv.osv): 'value': fields.selection([('procent','Percent'),('balance','Balance'),('fixed','Fixed Amount')], 'Value',required=True), 'value_amount': fields.float('Value Amount'), 'days': fields.integer('Number of Days',required=True, help="Number of days to add before computation of the day of month."), - 'days2': fields.integer('Day of the Month',required=True, help="Day of the month, set -1 for the last day of the current month. If it's positive, it gives the day of the next month."), + 'days2': fields.integer('Day of the Month',required=True, help="Day of the month, set -1 for the last day of the current month. If it's positive, it gives the day of the next month. Set 0 for net days (otherwise it's based on the end of the month)."), 'payment_id': fields.many2one('account.payment.term','Payment Term', required=True, select=True), } _defaults = {