Odoo Help

Welcome!

This community 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.

1

How to add scheduled actions in OpenERP ?

By
Raminder Pal Singh
on 6/6/13, 5:20 AM 2,357 views

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?

6

Sandeep

--Sandeep--
6083
| 6 5 8
Delhi, India
--Sandeep--
Python OpenERP Developer http://in.linkedin.com/pub/sandeep-rana/3b/a16/786/
Sandeep
On 6/6/13, 9:31 AM

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

Raminder Pal Singh
on 6/6/13, 10:43 AM

Hi, what do you mean with "then add this function in your schedule action with model" ?
Thanks

Versão Integral, Anabela Damas
on 6/24/13, 9:00 AM

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?

evon_dun
on 7/8/13, 8:14 AM

Is there a way to set the schedule for this function by code? Perhaps as xml file?

René Schuster
on 1/8/14, 4:50 AM

Rene, you should use a new question, but yes: Contract expiration reminder 1 weeks -1

Pau Ubach
on 10/15/14, 2:19 AM

Sorry, can't copy xml here.

Pau Ubach
on 10/15/14, 2:19 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/6/13, 5:20 AM
Seen: 2357 times
Last updated: 3/16/15, 8:10 AM