update
This commit is contained in:
parent
55253a5afc
commit
2005a8b511
12
get_tables.py
Normal file
12
get_tables.py
Normal 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
0
upgrade_module.py → module_utils.py
Normal file → Executable file
Loading…
Reference in New Issue
Block a user