Merge lp:~openerp-dev/openobject-addons/trunk-bug-1000776-tpa into lp:openobject-addons

Proposed by Turkesh Patel (openERP)
Status: Merged
Merged at revision: 7364
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1000776-tpa
Merge into: lp:openobject-addons
Diff against target: 12 lines (+1/-1)
1 file modified
account/account.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1000776-tpa
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+106314@code.launchpad.net

Description of the change

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

To post a comment you must log in.
Revision history for this message
Turkesh Patel (openERP) (turkesh-tinyerp) wrote :

Hello,

 Merged with latest trunk.

Thanks,
Turkesh patel

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 2012-08-08 14:08:46 +0000
3+++ account/account.py 2012-08-23 08:49:26 +0000
4@@ -109,7 +109,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',

Subscribers

People subscribed via source and target branches

to all changes: