hi
someone can help me about houw to resolve
: TypeError: Model 'account.invoice' does not exist in registry. - - -
this appens when i add this class to my module:
[code]
[/code]
thanks
i use odoo v12 community
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
hi
someone can help me about houw to resolve
: TypeError: Model 'account.invoice' does not exist in registry. - - -
this appens when i add this class to my module:
[code]
[/code]
thanks
i use odoo v12 community
Hello Jonathankabre,
Make sure you have added 'account' module in depends.
Hi,
While inheriting the default class in your custom module, you should not use _name , use _inherit instead.
Since you have already used it in your code , remove _name = "account.invoice" and try again.
And make sure that in your manifest file in custom module you have added the account module in depends.
Please check the documentation here for inheriting, https://www.odoo.com/documentation/12.0/howtos/backend.html#inheritance
Hope it helps,
Thanks
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Nov 19
|
9310 | ||
|
1
May 24
|
2895 | ||
|
3
Dec 22
|
3499 | ||
|
3
Aug 22
|
12283 | ||
|
1
Dec 19
|
7148 |