Turkesh Patel (openERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-1000776-tpa into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1000776 in OpenERP Addons: "can't delete payment term"
  https://bugs.launchpad.net/openobject-addons/+bug/1000776

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1000776-tpa/+merge/106314

[FIX] account: set ondelete='cascade' on payment_id for allow to delete payment 
term.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1000776-tpa/+merge/106314
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-1000776-tpa.
=== modified file 'account/account.py'
--- account/account.py	2012-08-08 14:08:46 +0000
+++ account/account.py	2012-08-23 08:49:26 +0000
@@ -109,7 +109,7 @@
         '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',

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to