Merge lp:~openerp-dev/openobject-addons/trunk-bug-891580-mdi into lp:openobject-addons

Proposed by DJ Patel (OpenERP)
Status: Rejected
Rejected by: Fabien (Open ERP)
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-891580-mdi
Merge into: lp:openobject-addons
Diff against target: 25 lines (+8/-0)
1 file modified
account/partner.py (+8/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-891580-mdi
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+82639@code.launchpad.net

Description of the change

Hello Sir,

I have fix the issue: https://bugs.launchpad.net/openobject-addons/+bug/891580 "Cannot remove account linked to a deleted partner".

Thanks and Regards,

Divyesh Makwana(MDI)

To post a comment you must log in.
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

this should be fixed in the kernel, for every property fields.

Unmerged revisions

5744. By DJ Patel (OpenERP)

[FIX] account : Cannot remove account linked to a deleted partner

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/partner.py'
2--- account/partner.py 2011-08-24 21:19:43 +0000
3+++ account/partner.py 2011-11-18 06:18:25 +0000
4@@ -96,6 +96,13 @@
5 _inherit = 'res.partner'
6 _description = 'Partner'
7
8+ def unlink(self, cr, uid, ids, context=None):
9+ ir_property_obj = self.pool.get('ir.property')
10+ value = 'res.partner,' + str(ids[0])
11+ unlink_ids = ir_property_obj.search(cr, uid, [('res_id','=',value)], context=context)
12+ ir_property_obj.unlink(cr, uid, unlink_ids, context=context)
13+ return super(res_partner, self).unlink(cr, uid, ids, context=context)
14+
15 def _credit_debit_get(self, cr, uid, ids, field_names, arg, context=None):
16 query = self.pool.get('account.move.line')._query_get(cr, uid, context=context)
17 cr.execute("""SELECT l.partner_id, a.type, SUM(l.debit-l.credit)
18@@ -188,6 +195,7 @@
19 'last_reconciliation_date': fields.datetime('Latest Reconciliation Date', help='Date on which the partner accounting entries were reconciled last time')
20 }
21
22+
23 res_partner()
24
25 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

Subscribers

People subscribed via source and target branches

to all changes: