please remove unecessary
if context == None:
context = {}
When the context is just use as argument of a function this check is useless
like there
def do_draft(self, cr, uid, ids, context):
245 + if context == None:
246 + context = {}
247 + res = super(project_tasks, self).do_draft(cr, uid, ids, context)
248 + tasks = self.browse(cr, uid, ids, context=context)
249 + self._history(cr, uid, tasks, _('Draft'), context=context)
250 + return res
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-707984-jam/+merge/65309
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-707984-jam.
_______________________________________________
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