In this chapter 4:
When I attempt to create a new table in the database after I run the server and connected to a database to check if the table exists or not I get this error Did not find any relation named "estate_property".
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
In this chapter 4:
When I attempt to create a new table in the database after I run the server and connected to a database to check if the table exists or not I get this error Did not find any relation named "estate_property".
I solve problem
When I create a new model class
from odoo import fields, models
class TestModel(models.Model):
_name = "test.model"
_description = "Test Model"
now I created a new table name is test_model but when I open the terminal and write the following
$ psql -d rd-demo rd-demo=# SELECT COUNT(*) FROM estate_property;
error message: Did not find any relation named "estate_property". because my tabel name is test_model not estate_propertyrd-demo=# SELECT COUNT(*) FROM test_model;this's work with me because database name is correct.
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
0
juil. 25
|
2385 | |||
|
2
nov. 24
|
8759 | |||
|
2
oct. 24
|
5133 | |||
|
2
août 24
|
2810 | |||
|
3
juil. 24
|
9396 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Hi,
The link seems broken, could you provide with the new link please?
The link works fine with me, you can visit Odoo developer documentation -> Getting Started -> Chapter 4: Models And Basic Fields