improvement
authorFabien Pinckaers <fp@tinyerp.com>
Thu, 30 Oct 2008 09:02:43 +0000 (10:02 +0100)
committerFabien Pinckaers <fp@tinyerp.com>
Thu, 30 Oct 2008 09:02:43 +0000 (10:02 +0100)
bzr revid: fp@tinyerp.com-20081030090243-33fb3xpu6f1lzmo0

addons/account/account.py

index a7898ed..048eced 100644 (file)
@@ -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 = {