Merge lp:~toolpart/openobject-addons/payment_term_line_ondelete into lp:openobject-addons/6.0

Proposed by ViktorNagy
Status: Needs review
Proposed branch: lp:~toolpart/openobject-addons/payment_term_line_ondelete
Merge into: lp:openobject-addons/6.0
Diff against target: 12 lines (+1/-1)
1 file modified
account/account.py (+1/-1)
To merge this branch: bzr merge lp:~toolpart/openobject-addons/payment_term_line_ondelete
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+81863@code.launchpad.net

Description of the change

There was a missing ondelete parameter on payment.term.line.

To post a comment you must log in.

Unmerged revisions

4913. By ViktorNagy

Added ondelete=cascades argument to payment term lines.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/account.py'
2--- account/account.py 2011-10-24 12:22:19 +0000
3+++ account/account.py 2011-11-10 14:55:29 +0000
4@@ -106,7 +106,7 @@
5 'days': fields.integer('Number of Days', required=True, help="Number of days to add before computation of the day of month." \
6 "If Date=15/01, Number of Days=22, Day of Month=-1, then the due date is 28/02."),
7 '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)."),
8- 'payment_id': fields.many2one('account.payment.term', 'Payment Term', required=True, select=True),
9+ 'payment_id': fields.many2one('account.payment.term', 'Payment Term', required=True, select=True, ondelete="cascade"),
10 }
11 _defaults = {
12 'value': 'balance',