Odoo Help


New custom module, use old api or new one?

Alexei R. Acosta
on 10/29/14, 4:20 PM 1,423 views

Let's say I'm going to create a new custom module for odoo v8. I need to finish it in 2 months. I would like write its code using the new api, but I haven't studied it yet. What should I do? since old api is still functional in odoo v8.

Any advise will be wellcome. Regards.


Stephen Mack

--Stephen Mack--

| 8 8 9
Santiago, Chile
--Stephen Mack--

Some people call me a karma whore, I only ask for 10 points if you like my answer and 15 if I happen to get it correct.

Stephen Mack
On 10/29/14, 4:29 PM

This is completely a personal choice.  

  1. Write it in the old api and it can be run on v7 as well.  
  2. Write it in the new API and it will probably work with the Master (v9) branch.  
  3. Or you can write it mixing the APIs as they are inter-operable, This means you could start slow learning the new API and if you run out of time switch to the old api to finish (your module would only work in v8 of course).

Complete a personal choice.

Yeah, you are right. Well, I think I'm going to use the old api. I'm short of time. Thanks for your answer.

Alexei R. Acosta
on 10/29/14, 5:05 PM


Stephen Mack
on 10/29/14, 5:38 PM

A small side note: The chance is likely that the old API is not going to be supported from Odoo 9.0 and upwards. For future reference it might be good to focus on the new API more. Apart from that argument, it is also a more pythonic approach and therefore in my humble opinion better :)

21south, Ludo - 21South
on 10/30/14, 5:44 AM

That is very true, if only he was not on a tight 2 month deadline for module delivery. Cheers.

Stephen Mack
on 10/30/14, 8:04 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 10/29/14, 4:20 PM
Seen: 1423 times
Last updated: 3/16/15, 8:10 AM