Skip to Content
Menu
This question has been flagged
2 Replies
2265 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'

Avatar
Discard

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

Author Best Answer

i forget it, thank you

solved

Avatar
Discard