Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Hi, I'm doing nice with OpenERP, but some help is always appreciated :)
When I want to call some Python funstions within the application (not via code, I know that), what's the right syntax?
For example, if I want to manually set up some workflow, in segment Python Action i should write some Python code. This is easy with some simplier code lines, but I have troubles calling some other Python functions, like:
see link: http://screencast.com/t/dY3Db0ppsf
Error I'm getting is "SyntaxError: invalid syntax".
Can someone give me a hint?
Thanks in advance!
Better way of using python actions is to call a method from the object..
Check account_invoice workflow, action open (validating the invoice triggers 4 methods)...
If you need to modify something .. you have 2 choices..
1. override existing method
2. add new method to specific action...
You can also use python syntax ( check account_invoice action proforma )
where it youst writes new value for state
if more help or explanation needed.. feel free to ask : )
may the source be with you!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 11/10/14, 4:40 AM|
|Seen: 701 times|
|Last updated: 3/16/15, 8:10 AM|