I am writing this code:
class my_class_a(models.Model):
[....]
class my_class_b(models.Model):
_inherit = "res.partner"
field_ids = fields.Many2Many(........)
class my_class_c(models.Model):
_inherit = "account.invoice"
field_myfield = fields.Char(....)
In this case, I am getting a "key error: account.invoice", but if put my_class_b in a separate module, everything works fine. Even get key error if y separate my_class_b in another file, and import it from __init__.py
Why is this for?
[....]
Are you sure that your module depends on 'account' module in the __openerp__.py manifest?
what is the use and what is the purpose behind this
what is the use and what is the purpose behind this
There is a typo in the example. The last class is class_c
Nicolas. This was the cause. Thanks! If you want to convert as an answer in order for me to vote it
Atte: