Code review comment for lp:~savoirfairelinux-openerp/openerp-hr/experience

Revision history for this message
Joao Alfredo Gama Batista (joao-gama) wrote :

Hi El Hadji,

Thanks for your contribution. As for the review I have this 2 points that you can improve.

l.100.103.132: Even in 6.1 the osv is considered deprecated (osv.osv actually points to orm.Model) so for the import is better to use "from openerp.osv import orm, fields" and for the models it's better to inherit from orm.Model istead of osv.osv.

l.129.137: In 6.1 we don't need to instantiate the model after defining it.

review: Needs Fixing

« Back to merge proposal