Community mailing list archives

community@mail.odoo.com

Re: Version 8, 9, ...

by
Nhomar Hernandez
- 03/09/2015 14:01:26

2015-03-09 9:35 GMT-06:00 ICT Intranusa <ict@intranusa.com>:

Idealy, to keep backward compabilty, we take both function in v7, so the old version still can be used,

     void openrp(Parent p)
     void openerp(Parent p, String s)


We have a second option.

If you inherit a class:

void openrp(Parent P)

Add a test.

check if it change and return what I need..

When you try your module in the new version you will receive an error.

Error - whatever.-

List the errors and plan the migration.

But yes, there is a lot of situation where have hwat you mentioned should be cool!

Regards.


--
--------------------
Saludos Cordiales
 
--
Nhomar Hernandez
http://about.me/nhomar