Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3159 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 2 25
870
3
thg 11 24
29963
1
thg 12 21
2730
0
thg 12 21
2307
0
thg 12 18
3719