Odoo Help


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

on 4/4/16, 9:14 AM 184 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?

on 4/4/16, 11:40 AM
On 4/4/16, 11:54 AM

i forget it, thank you


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

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

Question tools

1 follower(s)


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