Odoo Help

sameer alhwety
On 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'),

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 ?

Yassine TEIMI
on 12/31/14, 5:12 AM
Aitor Bouzas
On 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?

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

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

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

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

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Odoo Training Center

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

Test it now

Question tools

1 follower(s)


Asked: 12/30/14, 9:43 AM
Seen: 1599 times
Last updated: 3/16/15, 8:10 AM