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

Is it possible for an Odoo instance to run PHP scripts on the website?
Is there any documentation?

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

You could use the subprocess library to run external commands like a PHP script: https://docs.python.org/3/library/subprocess.html

There are plenty of tutorials on how to execute PHP scripts with the use of Python. Please note that you should use this with caution, since subprocess can be prone to injections, which allows it to run unsafe commands and compromise the system.

I hope this helps!

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

Hi Josep,
For your information, the Odoo framework primarily uses Python as its programming language, and the web framework is based on a combination of Python and JavaScript. Odoo does not natively support PHP for its web functionality.


Hope it helps

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks. Anyway, I'd like to know if this would be possible and if someone has experience of it.

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 25
1451
1
thg 5 25
900
2
thg 5 25
1546
1
thg 7 24
3201
0
thg 8 24
341