https://stackoverflow.com/questions/67001462/how-to-access-custom-model-data-in-odoo-env-using-shell-command
Dette spørgsmål er blevet anmeldt
Hi,
Use the steps below to retrieve custom model data using a shell command in the Odoo environment (env):
Enter the Odoo installation directory at the command prompt or terminal.
If necessary, turn on the virtual environment.
Run./odoo-bin shell -d database_name> to launch the Odoo shell, replacing database_name> with the database's name.
Use Python commands in the Odoo shell to communicate with the environment and retrieve the data from the custom model using Odoo ORM techniques.
You can leave the Odoo shell by typing exit() or Ctrl+D.
Regards
Kan du lide at diskutere? Læs ikke bare med, deltag aktivt i debatten!
Opret en konto i dag for at få glæde af eksklusive funktioner, og bliv en del af vores skønne fællesskab!
Tilmeld dig| Relaterede indlæg | Besvarelser | Visninger | Aktivitet | |
|---|---|---|---|---|
|
|
4
feb. 25
|
2144 | ||
|
|
3
nov. 24
|
32725 | ||
|
|
1
dec. 21
|
3903 | ||
|
|
0
dec. 21
|
3590 | ||
|
|
0
dec. 18
|
4821 |