Skip to Content
Menu
This question has been flagged
1 Reply
3184 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.

Avatar
Discard
Best Answer

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.

Avatar
Discard
Author

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

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

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