跳至內容
選單
此問題已被標幟
1 回覆
3008 瀏覽次數

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

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
4
2月 25
720
3
11月 24
29513
1
12月 21
2543
0
12月 21
2089
0
12月 18
3564