Odoo Help


2 Answers

Daniel Reis Portugal

--Daniel Reis--
| 8 9 11
Linda-a-Velha, Portugal
--Daniel Reis--

Author of the "Odoo Development Essentials" book.

Applications Manager at Securitas Portugal

Github: https://github.com/dreispt

Twitter; @reis_pt

Daniel Reis Portugal
2/27/14, 2:14 PM

As your code snippet shows, osv.osv is deprecated and it still works for backward compatibility.

You should use orm.Model instead.

1 Comment
Eric United States
2/27/14, 2:27 PM

Daniel is correct. I had OpenERP Technical training recently and the instructor said that the osv.osv is now deprecated and to use the orm.Model instead.

vimal j India
2/27/14, 6:45 AM

New openerp object inherits osv.osv as far as i know. We create new objects by inheriting osv.osv class e.g. class newclass(osv.osv):

where, newclass = derived class, osv.osv = base class

Med Said BARA Algeria
2/27/14, 4:15 PM

Yes Vimal what you say is correct, but osv.osv is now deprecated in the new openobject framework (and it is kept till now just for backward compatibiliy, and it will be surely obsolete in the futur).

vimal j India
2/28/14, 1:46 AM

Thank you for info Med

Ask a Question
Keep Informed
0 follower(s)
About This Community

This platform 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.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now