Does anyone have an idea how to use an Odoo 8 method in Odoo 7 class / method ?
I have to use a specific method developed in Odoo 8 (New API) module in my traditional (Odoo 7) addon. How does it possible?
We have a work around for this. Define v7 & v8 compatible modules as follows,
And call the method like as follows to get result from both v7 & v8 ..
v7result = self.pool.get('hr.employee.rejoin')._validate_values(cr,uid,vals,context)
v8result = self._validate_values(values)
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 11/2/15, 6:50 AM|
|Seen: 416 times|
|Last updated: 11/2/15, 8:27 AM|