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.
I need to use this code in a HR salary rule but it won't let me use python functions inside the rule:
from datetime import datetime date_format = "%Y/%m/%d" d1 = datetime.strptime(date_from, date_format) d2 = datetime.strptime(date_to, date_format) result = d2 - d1
I get: "Error Wrong python code defined for salary rule"
How can I import python functions inside the salary rule?
I have researched different forums with no success. Thank you for your prompt response.
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: 4/18/13, 5:34 PM|
|Seen: 1984 times|
|Last updated: 12/1/15, 4:36 AM|