Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3185 Tampilan

https://stackoverflow.com/questions/67001462/how-to-access-custom-model-data-in-odoo-env-using-shell-command

Avatar
Buang
Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
4
Feb 25
887
3
Nov 24
29997
1
Des 21
2741
0
Des 21
2318
0
Des 18
3733