Odoo Help


This community 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.


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

on 4/4/16, 9:14 AM 115 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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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