IRC logs of #tryton for Tuesday, 2019-01-29

chat.freenode.net #tryton log beginning Tue Jan 29 00:00:01 CET 2019
-!- yangoon(~mathiasb@i59F52B65.versanet.de) has joined #tryton03:20
-!- udono(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton03:25
-!- MatrixBot6(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton03:38
-!- MatrixBot6(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton03:41
-!- Icke(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton04:07
-!- enick_317(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton04:09
-!- enick_243(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton04:12
-!- enick_78(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton04:14
-!- enick_745(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton04:18
-!- enick_431(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton04:21
-!- enick_740(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton04:22
-!- hirschbeutel(5f5ad17e@gateway/web/cgi-irc/kiwiirc.com/ip.95.90.209.126) has joined #tryton04:51
-!- hirschbeutel1(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton04:53
-!- hirschbeutel1(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton05:02
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton05:10
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton05:11
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton05:13
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton05:16
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton05:17
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton05:23
-!- udono1(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton05:56
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton06:44
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton06:46
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton06:49
-!- rpit(~rpit@p5B22B44D.dip0.t-ipconnect.de) has joined #tryton07:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton07:06
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton07:33
-!- hirschbeutel55(5f5ad17e@gateway/web/cgi-irc/kiwiirc.com/ip.95.90.209.126) has joined #tryton07:34
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton07:42
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton07:43
-!- hirschbeutel55(5f5ad17e@gateway/web/cgi-irc/kiwiirc.com/ip.95.90.209.126) has joined #tryton07:47
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton07:50
-!- mrichez(~smuxi@2a02:2788:54:1b6:b299:bbf3:b6df:ab67) has joined #tryton08:07
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:46
-!- udono(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton08:59
-!- udono1(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton09:37
-!- nicoe(~nicoe@2a02:2788:54:1b6:7e2a:31ff:fe5e:b25d) has joined #tryton09:42
-!- thaneor1(~lenovo3@179.26.139.141) has joined #tryton09:59
-!- mariomop(~quassel@host164.201-253-199.telecom.net.ar) has joined #tryton10:35
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton10:47
-!- csotelo(~csotelo@2800:200:f410:adb:2d8a:7caa:d18d:8442) has joined #tryton11:52
andrespolitigood morning12:26
andrespolitiis there any example of how to use the args field of the cron task?12:26
-!- udono(~udono@188.210.61.125) has joined #tryton12:42
pokoliandrespoliti: I do not think there is any example on oficial module12:59
pokoliandrespoliti: but the values of args will be passed to the cron function as arguments12:59
andrespolitishould it be a dictionary?12:59
pokoliandrespoliti: no, as far as I see on the code it only accepts positional arguments13:00
pokolisee: http://hg.tryton.org/trytond/file/e6e553bfde14/trytond/ir/cron.py#l15013:00
andrespolitiyes, i saw that but i'm not sure how to form the string13:05
andrespolitifor example i'm trying to call the post method of invoice13:05
andrespolitiand i tried [1] and it says object of type int has no length13:06
andrespoliti([1],) says 'int' object has no state13:06
andrespoliti([Pool().get('account.invoice')(1)],) says malformed string13:07
pokoliandrespoliti: you should create a new method to do the search13:12
pokoliandrespoliti: as the post object expects account.invoice instances13:13
pokoliandrespoliti: what are you trying to achieve?13:13
andrespolitithis is just an example, but i want to make a similar model like cron, but for sending notifications with a possible action button, so when the user receives the notification they can press the button and do the action13:14
pokoliandrespoliti: you can use notification_email, a link and a custom route to process the action button13:15
pokoliandrespoliti: or the bus system in 5.0 to send notifications directly to the clients13:15
andrespolitiokey13:17
andrespolitii'll check into those13:17
andrespolitithanks13:17
-!- rpit(~rpit@p200300C88F2690006C9BB0571D5CCF69.dip0.t-ipconnect.de) has joined #tryton15:01
-!- rpit(~rpit@p5B22B44D.dip0.t-ipconnect.de) has joined #tryton16:13
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has left #tryton17:49
-!- rpit(~rpit@p200300C88F26900035FB67C9E15879E1.dip0.t-ipconnect.de) has joined #tryton18:18
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton21:01
-!- thaneor(~lenovo3@179.26.131.123) has joined #tryton22:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:30

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!