Odoo Help

2 Answers
sameer alhwety
12/31/14, 4:16 AM

from openerp.osv import fields, osv, orm

class AccountInvoice(osv.osv):

    _inherit = 'account.invoice'
    _columns = {
        'date_livraison': fields.date('Date Livraison'),

1 Comment
Yassine TEIMI
12/31/14, 5:12 AM

Yes, that's right, I used to inherit with "orm.Model", when adding fields, it's considered among the best practices of inheritance, why it didn't work here ?

Aitor Bouzas
12/30/14, 12:53 PM

Hi Yassine,

I can see in your code that instead of "_columns" it says "_colmuns"... Could this be your problem?

Yassine TEIMI
12/31/14, 5:09 AM

Hi Aitor, No it's just here, it's right on the source code.

Yassine TEIMI
12/31/14, 5:13 AM

In fact, I should inherit with "osv.osv" check my comment for sameer.

Ask a Question
Keep Informed
1 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