Good morning M@ced:
i was about configured another trigger to send me email after 1 hour to see the result quickly and don’t waiting those 10 days , so during the creating of the record of “notification email” i have choice two keyword (one Action form and the other relate form)[i do no if it’s okay to choice those two keywords when i choice the model ?]
about `Recipients:`(i have putted `Party(party)`)
about `Recipients Fallback User` (i have putted `Administrator`)
Minimum Delay: 01:00
the condition And(Equal(Get(Eval('self', {}), 'state', ''), 'waiting'), Greater(Get(Eval('self', {}), 'age', 0), 1, True))
After saving become--------->
And(Equal(Get(Eval("self", {}), "state", ""), "waiting"))
and finally i was about going to the menu scheduler/Actions/method "run on time trigger "
to guarentee that the trigger work normally and the action will be passed and send me an email after one hour to remind me so i have put on "nextcall" the next hour and
when i click on “Run once” it gives me an error:
Traceback (most recent call last):
File "/trytond/wsgi.py", line 117, in dispatch_request
return endpoint(request, **request.view_args)
File "/trytond/protocols/dispatcher.py", line 47, in rpc
return methods.get(request.rpc_method, _dispatch)(
File "/trytond/wsgi.py", line 84, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 156, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 181, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/trytond/model/descriptors.py", line 33, in newfunc
return self.func(owner, *args, **kwargs)
File "/trytond/model/modelview.py", line 774, in wrapper
return func(cls, records, *args, **kwargs)
File "/trytond/modules/company/ir.py", line 107, in run_once
super(Cron, cls).run_once([cron])
File "/trytond/model/descriptors.py", line 33, in newfunc
return self.func(owner, *args, **kwargs)
File "/trytond/model/modelview.py", line 774, in wrapper
return func(cls, records, *args, **kwargs)
File "/trytond/ir/cron.py", line 141, in run_once
getattr(Model, method)()
File "/trytond/ir/trigger.py", line 297, in trigger_time
trigger.trigger_action(records)
File "/trytond/ir/trigger.py", line 209, in trigger_action
ids = [r.id for r in Model.browse(ids) if self.eval(r)]
File "/trytond/ir/trigger.py", line 209, in <listcomp>
ids = [r.id for r in Model.browse(ids) if self.eval(r)]
File "/trytond/ir/trigger.py", line 188, in eval
return bool(PYSONDecoder(env).decode(self.condition))
File "/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
File "/trytond/pyson.py", line 122, in _object_hook
return klass.eval(dct, self.__context)
File "/trytond/pyson.py", line 358, in eval
dct = Greater._convert(dct)
File "/trytond/pyson.py", line 351, in _convert
dct[i] = float(stmt)
TypeError: float() argument must be a string or a number, not 'datetime.timedelta'
is their another step i forgot it, and this error can affect the notification email and will not be sent in the correct time!?