ello everyone,
I'm developing a personalized module that uses the table:
product.template
class productTestService(models.Model):
_name = 'product.template'
_inherit = 'product.template'
After I install the module I can no longer access any product previously registered, however if I drop the module I usually access the modules.
One detail, I insert a line when I install the module in the table product.template
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
The meaning of using inheritance here
https://www.odoo.com/documentation/11.0/howtos/backend.html#inheritance
While giving a name to model at the same time inheriting, it treats as a new table.
Please change the name of the model you created. whe, you say _name = 'product.template' , it means , you are overriding the model product.template.By convention when you create a model the nomenclature is 'module_name.model_name'.So , just change the ' _name' attribute.Sorry for my english my dear , i am doing my best.
Hello
Thank you for everyone! :) .
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
4
Oct 18
|
3509 | ||
|
2
Aug 18
|
2769 | ||
|
1
Jul 18
|
6274 | ||
|
2
Oct 17
|
6112 | ||
|
2
Jul 19
|
2244 |
Please change the name of the model you created. whe, you say _name = 'product.template' , it means , you are overriding the model product.template.By convention when you create a model the nomenclature is 'module_name.model_name'.So , just change the ' _name' attribute.Sorry for my english my dear , i am doing my best.