Odoo Help

0

0
6 Answers
3
Avatar

Yogesh

--Yogesh--

1059
| 5 3 10
Delhi, Índia
--Yogesh--

Nothing to say .... :)

Yogesh
05/06/14 01:28

It is not working because you are doing it worng. You do not have value of ids while running cron job so you need to assign it False. Change your method defination like

 

def compute_lead_type(self, cr, uid, ids = False, name, args, context=None):    
         search_ids = self.pool.get('object.name').search(cr, uid, []) 
         for ids in search_ids:     
              #  write your logic here      

return True

        

 

 

and it will start working. sometimes if it doesn't start. go to scheduler menu click on edit button of scheduler and save it again. it will start working :)

1
Dwight Butler
03/10/14 08:51

I too am having the same problem with scheduled actions not working in version 8, with both time zones set to UTC.

1
Richard
03/06/14 11:19

Which version are you using? I am also having difficulty with all scheduled actions in any version after v7.

0
Dairidi
24/04/15 08:55

You can also write ids=None and it will work

0

I think you need to pass "ids" argument's value from cron record. Because from your code's first line,

for record in self.browse(cr, uid, ids, context=context):

If program doesn't find ids then it will skip that loop. That's why your program doesn't working !

Still let me know anything is still confusing.

Ask a Question
Writer
Keep Informed
3 follower(s)
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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now