Odoo Help

0

problem with inherit "account.bank.statement.line" model?

By
slim
on 4/4/16, 9:14 AM 287 views

I am trying to inherit "account.bank.statement.line" model. For this i am writing a below code.

******************************************************************

class account_bank_statement_line(osv.osv):

    _inherit = 'account.bank.statement.line'

    _columns= {

        'rental_statement_id': fields.many2one('rental.vehicle.contract','Contract payment', ondelete='cascade'),

    }


***********************************************************************


and when i update my model i get this error : 


return self.models[model_name]

KeyError: 'account.bank.statement.line'

Do u have account module included in "depends" __openerp__.py?

tansadio
on 4/4/16, 11:40 AM
0
slim
On 4/4/16, 11:54 AM

i forget it, thank you

solved

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.

Register

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)

Stats

Asked: 4/4/16, 9:14 AM
Seen: 287 times
Last updated: 4/4/16, 11:57 AM