Community mailing list archives

Re: Any way to run server command

Apertoso, Jos De Graeve
- 05/18/2015 08:08:12

The python code you enter in the "execute python code" dialog runs in a secured environment.  For what you need, you will have to write a small odoo module.

In your module, define a method that does what you want, and call that method from a server action.


Jos De Graeve - Apertoso business ICT

Guido Gezellelaan 16 - B-9800 Deinze - Belgium
Direct: +32 9 381 64 51
General:+32 9 381 64 50
Mobile: +32 475 54 68 80
mail/im/skype: - apertoso

2015-05-16 10:58 GMT+02:00 Mohamed M. Hagag <>:


I'm trying to execute a server command from Odoo using server actions > execute python code.

But I found that it's limited to the predefined variables only and I can not import or execute custom code.

Is there any way to run a server command as python code from Odoo ?


Post to: