Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
1820 Представления

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

Аватар
Отменить
Лучший ответ

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!

Аватар
Отменить
Лучший ответ

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

Аватар
Отменить
Автор

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

Related Posts Ответы Просмотры Активность
1
мая 25
608
2
мая 25
1185
0
нояб. 24
1007
1
июл. 24
2656
0
авг. 24
341