Odoo Help

Welcome!

This community 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.

0

New custom module, use old api or new one?

By
Alexei R. Acosta
on 10/29/14, 4:20 PM 1,140 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.

1

Stephen Mack

--Stephen Mack--
5023
| 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

Suerte!

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 :)

Ludo - Neobis
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

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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