Odoo Help

1

0
1 Answer
0
Avatar

Zbik

--Zbik--
10903
| 7 6 9
Łódź, Poland
--Zbik--


Zbik
5/22/19, 10:08 AM

The solution that I see is to check (in cron function) the calling method, for example this way:

import inspect

if inspect.stack()[6][3] == 'method_direct_trigger':
...is manualy
else:
...is automatically

Method  'method_direct_trigger' is called when cron action is manually. Index 6 = frame 6 on stock.


Ask a Question
Writer
Keep Informed
1 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