This commit is contained in:
KaySar12 2025-04-03 10:19:58 +07:00
parent 55253a5afc
commit 2005a8b511
2 changed files with 12 additions and 0 deletions

12
get_tables.py Normal file
View File

@ -0,0 +1,12 @@
import odoorpc
# Connect to Odoo server
odoo = odoorpc.ODOO("workspace.local", port=8069)
odoo.login("ambio", "admin", "admin")
# Query ir.model to get all model names (tables)
models = odoo.env["ir.model"].search_read([], ["model"])
# Extract and print model names (table names)
table_names = [model["model"] for model in models]
print(table_names)

0
upgrade_module.py → module_utils.py Normal file → Executable file
View File