Community mailing list archives

Re: Should Odoo keep the old API for v10?

cesar luis
- 05/03/2016 10:58:58
Hi All,

i voted for remove,,,

2016-05-03 9:17 GMT-05:00 Joël Grand-Guillaume <>:
Dear Community, Dear Fabien,

We have just stated about this topic among us and the OCA board:

"Recommand everyone to vote in favor to drop the old API in version 10"

Various reasons for this, but mostly:

 * All our code base is already migrated since version 8.0 !
 * Cleaner code base
 * One way to do things is better
 * Already announced since >2 years, reasonnable time according to us to drop it

Best regards,


On Tue, May 3, 2016 at 2:11 PM, Stephen Raj <> wrote:
Hi Fabien,

Thanks for polling the community on this, I think it's a very nice gesture to include the public opinion on this matter.

  1. I would suggest you to remove the old API entirely in v10.
  2. Upgrade python 3.x to increase performance.


Stephen Raj D

​Team Lead[Python]

Bosco Soft Technologies Pvt Ltd
Skype: stephen.erpconsultant

On Tue, May 3, 2016 at 4:57 PM, Mohamed Magdy <> wrote:
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

Post to:


Thanking you,
Stephen Raj D,
Ph: 8870312211,

Post to:



Joël Grand-Guillaume
Division Manager
Business Solutions

+41 21 619 10 28

Post to:

Cesar Luis M.