Hello,
I am trying to create new module from new API,I don't want to write cr ,uid, ids, or self._cr, self._uid and other things.
If there are method written in old API style and I want to call it from new API then how to call
Suppose I want to call duplicate_template method in project module
right now I need to call same as old style
new_project_template = self.pool.get('project.project').duplicate_template(self._cr, self._uid, [my_project_template.id], context = context)
but I want to call as a new API style
new_project_template = self.env['project.project'].duplicate_template(my_project_template.id])
OR
new_project_template = self.env['project.project'].duplicate_template(self._cr, self._uid, [my_project_template.id], context = context)
is it possible ?
Thank's for reply.
Missing api decorator for this function (project has not been converted in new api)...