From 488a43b7170f94011e2f438805b27b5cca29adcd Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Thu, 9 Dec 2010 12:59:35 +0530 Subject: [PATCH] [FIX] account move line :Partner included in Bank Statement can be deleted lp bug: https://launchpad.net/bugs/685974 fixed bzr revid: mra@mra-laptop-20101209072935-cizg6tnfvmyegtvp --- addons/account/account_move_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 2987b3c69d6..2d9ac7d6b15 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -429,7 +429,7 @@ class account_move_line(osv.osv): 'period_id': fields.many2one('account.period', 'Period', required=True, select=2), 'journal_id': fields.many2one('account.journal', 'Journal', required=True, select=1), 'blocked': fields.boolean('Litigation', help="You can check this box to mark this journal item as a litigation with the associated partner"), - 'partner_id': fields.many2one('res.partner', 'Partner', select=1), + 'partner_id': fields.many2one('res.partner', 'Partner', select=1, ondelete='restrict'), 'date_maturity': fields.date('Due date', help="This field is used for payable and receivable journal entries. You can put the limit date for the payment of this line."), 'date': fields.related('move_id','date', string='Effective date', type='date', required=True, store = {