Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2962 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
4
ก.พ. 25
699
3
พ.ย. 24
29468
1
ธ.ค. 21
2514
0
ธ.ค. 21
2070
0
ธ.ค. 18
3553