Community mailing list archives

Re: Should Odoo keep the old API for v10?

Mohamed Magdy
- 05/03/2016 07:22:15
Hi Fabien,

I also vote to remove the old APIs and to keep only the new APIs.
But I also would love to see Odoo 10 uses Python 3.X as Python 2.7 is in its way to the end. It should help in making Odoo faster and more reliable.

On Tue, May 3, 2016 at 12:27 PM Torvald Baade Bringsvor <> wrote:
Voted to remove :-)

And kudos to Odoo for eating your own dogfood, i.e. using Odoo Survey for the query and not Survey Monkey or whatever....

-Torvald Bringsvor

Torvald Baade Bringsvor
Bringsvor Consulting AS - Odoo (formerly OpenERP) implementation partner

2016-05-03 12:12 GMT+02:00 Alexandre Fayolle <>:
On 03/05/2016 10:47, Fabien Pinckaers wrote:
> Hello,
> In Odoo 10, all official modules should be ported to the new API.
> So, we face the choice to remove the old API to clean the code and speed
> up the software, or keep it to help the community port old modules to v10.
> If we keep the old API:
>   * it's easier to port community modules to v10, if they are not ported
>     to the new API yet
> If we remove the old API:
>   * Odoo will run about 10% faster
>   * Tracebacks are cleaner for developers (ORM code is lighter too)

Additionnally, removing the old API means:

* lighter and cleaner code base -> less bugs, easier for newcomers to
get on board
* no more funky @api.v7 decorator and related unexpected behaviors
* no more funky @api.returns decorator and related unexpected behaviors
* no more painful stepping in the wrapper layers in pdb
* no more pain when overloading a computed field from an addon using the
v7 api
* no more pain when extending an onchange method defined using the v7 api
* get back the ability to use profiling tools to analyze performance

My choice is clear :-)

Alexandre Fayolle
Chef de Projet
Tel : +33 4 58 48 20 30

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex


Post to:

Best Regards,

Mohamed Magdy
Odoo Technical Team Leader
Mob 1: +201114347478
Mob 2: +201095179215