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 #tryton04:01
-!- udono(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton04:01
-!- MatrixBot6(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton04:01
-!- MatrixBot6(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton04:01
-!- Icke(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton05:01
-!- enick_317(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton05:01
-!- enick_243(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton05:01
-!- enick_78(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton05:01
-!- enick_745(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton05:01
-!- enick_431(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton05:01
-!- enick_740(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton05:01
-!- hirschbeutel(5f5ad17e@gateway/web/cgi-irc/kiwiirc.com/ip.95.90.209.126) has joined #tryton05:01
-!- hirschbeutel1(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton05:01
-!- hirschbeutel1(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton06:01
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton06:01
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton06:01
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton06:01
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton06:01
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton06:01
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton06:01
-!- udono1(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton06:01
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton07:01
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton07:01
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton07:01
-!- rpit(~rpit@p5B22B44D.dip0.t-ipconnect.de) has joined #tryton08:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:01
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton08:01
-!- hirschbeutel55(5f5ad17e@gateway/web/cgi-irc/kiwiirc.com/ip.95.90.209.126) has joined #tryton08:01
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton08:01
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton08:01
-!- hirschbeutel55(5f5ad17e@gateway/web/cgi-irc/kiwiirc.com/ip.95.90.209.126) has joined #tryton08:01
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton08:01
-!- mrichez(~smuxi@2a02:2788:54:1b6:b299:bbf3:b6df:ab67) has joined #tryton09:01
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton09:01
-!- udono(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton09:01
-!- udono1(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton10:01
-!- nicoe(~nicoe@2a02:2788:54:1b6:7e2a:31ff:fe5e:b25d) has joined #tryton10:01
-!- thaneor1(~lenovo3@179.26.139.141) has joined #tryton10:01
-!- mariomop(~quassel@host164.201-253-199.telecom.net.ar) has joined #tryton11:01
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton11:01
-!- csotelo(~csotelo@2800:200:f410:adb:2d8a:7caa:d18d:8442) has joined #tryton12:01
andrespolitigood morning13:01
andrespolitiis there any example of how to use the args field of the cron task?13:01
-!- udono(~udono@188.210.61.125) has joined #tryton13:01
pokoliandrespoliti: I do not think there is any example on oficial module13:01
pokoliandrespoliti: but the values of args will be passed to the cron function as arguments13:01
andrespolitishould it be a dictionary?13:01
pokoliandrespoliti: no, as far as I see on the code it only accepts positional arguments14:01
pokolisee: http://hg.tryton.org/trytond/file/e6e553bfde14/trytond/ir/cron.py#l15014:01
andrespolitiyes, i saw that but i'm not sure how to form the string14:01
andrespolitifor example i'm trying to call the post method of invoice14:01
andrespolitiand i tried [1] and it says object of type int has no length14:01
andrespoliti([1],) says 'int' object has no state14:01
andrespoliti([Pool().get('account.invoice')(1)],) says malformed string14:01
pokoliandrespoliti: you should create a new method to do the search14:01
pokoliandrespoliti: as the post object expects account.invoice instances14:01
pokoliandrespoliti: what are you trying to achieve?14:01
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 action14:01
pokoliandrespoliti: you can use notification_email, a link and a custom route to process the action button14:01
pokoliandrespoliti: or the bus system in 5.0 to send notifications directly to the clients14:01
andrespolitiokey14:01
andrespolitii'll check into those14:01
andrespolitithanks14:01
-!- rpit(~rpit@p200300C88F2690006C9BB0571D5CCF69.dip0.t-ipconnect.de) has joined #tryton16:01
-!- rpit(~rpit@p5B22B44D.dip0.t-ipconnect.de) has joined #tryton17:01
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has left #tryton18:01
-!- rpit(~rpit@p200300C88F26900035FB67C9E15879E1.dip0.t-ipconnect.de) has joined #tryton19:01
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton22:01
-!- thaneor(~lenovo3@179.26.131.123) has joined #tryton23:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:01

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