Odoo Help

Welcome!

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.

0

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

By
slim
on 4/4/16, 9:14 AM 127 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

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)

Stats

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