I want to allocate 1.5 paid leaves to every employee at the start of every month. How do i create scheduled action for that. what do i fill in technical data?
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
This question has been flagged
you can create a function in your related model
suppose your model is "my.model"
def my_schedule(self,cr,uid,context):
// either give the code for your calculation for paid here or
// call to your calculation function from here
return True
then add this function in your schedule action with model my.model
give specific time etc
you will run according your given time
Thanks
Sandeep
thanks sandeep
Hi, what do you mean with "then add this function in your schedule action with model" ?
Thanks
I also created a function and created a scheduled action for it, but it doesn't work. What is the reason, am I missing something?
Is there a way to set the schedule for this function by code? Perhaps as xml file?
Rene, you should use a new question, but yes: Contract expiration reminder 1 weeks -1
Sorry, can't copy xml here.