[FIX] account: set ondelete='cascade' on payment_id for allow to delete payment term.

bzr revid: tpa@tinyerp.com-20120518063348-1lm9oyy0kw5pkwdy
This commit is contained in:
Turkesh Patel (Open ERP) 2012-05-18 12:03:48 +05:30
parent bd0bc7d4c5
commit 4661fb71d2
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class account_payment_term_line(osv.osv):
'days': fields.integer('Number of Days', required=True, help="Number of days to add before computation of the day of month." \
"If Date=15/01, Number of Days=22, Day of Month=-1, then the due date is 28/02."),
'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 beginning of the month)."),
'payment_id': fields.many2one('account.payment.term', 'Payment Term', required=True, select=True),
'payment_id': fields.many2one('account.payment.term', 'Payment Term', required=True, select=True, ondelete='cascade'),
}
_defaults = {
'value': 'balance',