Community mailing list archives

community@mail.odoo.com

Re: Any way to run server command

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

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.

Regards,


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: Jos.DeGraeve@apertoso.be - apertoso

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

Dears,


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 ?



Regards,

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe