Ravi Gohil (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw-575766-rgo into
lp:openobject-addons/6.1.
Requested reviews:
Naresh(OpenERP) (nch-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-575766-rgo/+merge/110303
Hello,
This fix enables translation of the warning message popped up when we try to
delete an analytic account which has a project assigned.
Kindly review the fix.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-575766-rgo/+merge/110303
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.1-opw-575766-rgo.
=== modified file 'project/project.py'
--- project/project.py 2012-03-02 15:13:47 +0000
+++ project/project.py 2012-06-14 11:46:21 +0000
@@ -1139,12 +1139,12 @@
vals['child_ids'] = []
return super(account_analytic_account, self).create(cr, uid, vals, context=context)
- def unlink(self, cr, uid, ids, *args, **kwargs):
+ def unlink(self, cr, uid, ids, context=None):
project_obj = self.pool.get('project.project')
- analytic_ids = project_obj.search(cr, uid, [('analytic_account_id','in',ids)])
+ analytic_ids = project_obj.search(cr, uid, [('analytic_account_id','in',ids)], context=context)
if analytic_ids:
raise osv.except_osv(_('Warning !'), _('Please delete the project linked with this account first.'))
- return super(account_analytic_account, self).unlink(cr, uid, ids, *args, **kwargs)
+ return super(account_analytic_account, self).unlink(cr, uid, ids, context=context)
account_analytic_account()
_______________________________________________
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