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.

1

Will all modules in Odoo 9 use the new API?

api
By
Kelly Stuart
on 11/6/14, 1:28 AM 6,894 views

I've notice in Odoo 8 that some modules already use the new API in places, while other modules still use only the version 7 API. Looking ahead, I'm wondering if version 7 API will even be able to run under Odoo 9. Or will all custom code need to be converted to the newer version of the API?

4

Bole

--Bole--
2385
| 5 4 6
Zagreb | Karlovac, Croatia
--Bole--

there is only 10 kind of people the ones that understand binary ... and others

Bole
On 11/6/14, 2:55 AM

Well.. we talk about new (v8) and old(v7) api... 
Good notice in v8 both apis are supported, wich makes porting modules from v7 to newer version much easier and faster...
Also.. it makes v8 much slower ... the reason for that is : orm has to check every method if it is old or new style api, and if it is wirtten in old style it rewrites the method to new api and then it executes it.... 

Having all that in mind i can be pretty sure that v9 will not have old style api support 
( and why should it have? by the time of release of stable v9, all developers will already be pretty familiar with new api, most custom modules will be ported to new api, so no need for old style support any more) 

Wich will result in increased overall speed (no more style checks in executing the api methods) and code consitency
 

This is only the way i look at the future of odoo... would also like to read what others think :) 

 

Thank you for the prompt reply, Bole. It will be good to have extra speed. I love to see how much progress is made. It is hard work to keep up with it all... But well worth it!

Kelly Stuart
on 11/6/14, 4:09 AM
1

Ray Carnes

--Ray Carnes--
15717
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

Ray Carnes
On 3/3/15, 5:44 PM

Odoo announced that the 'new' API would be the ONLY API that was supported at v9 with the statement "Backward compatibility will be removed in version 9. All future modules must be developed using the new API" in the document at https://www.odoo.com/blog/odoo-news-5/post/odoo-8-release-notes-186

And they're now slowly reverting that statement. It will not be removed in V9 and might even still be there at V10! See https://twitter.com/therp_stefan/status/606750366840061952 for example.

Yenthe
on 6/5/15, 7:55 AM

I think that it would be better no backward compatibility, above all for the new Odoo developers like me. All existing modules should be ported to the new API, and it wouldn't be neccesary to study the old framework. I only hope that all modules included in Odoo 9 Community edition will be ported to the new API, please!!!.

Eduardo BP
on 6/14/15, 9:45 PM

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

2 follower(s)

Stats

Asked: 11/6/14, 1:28 AM
Seen: 6894 times
Last updated: 4/29/15, 7:22 AM