IRC logs of #tryton for Wednesday, 2017-11-29

chat.freenode.net #tryton log beginning Wed Nov 29 00:00:01 CET 2017
2017-11-29 00:38 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-11-29 01:41 -!- NeonKing(~Neonking@176.179.38.86) has joined #tryton
2017-11-29 01:44 -!- smarro(~sebastian@181.16.34.86) has joined #tryton
2017-11-29 03:15 -!- cdchapman(~perturbed@67-2-42-198.slkc.qwest.net) has joined #tryton
2017-11-29 03:24 -!- thaneor1(~ldlc6@r179-25-82-170.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-11-29 07:07 -!- cdchapman(~perturbed@73.98.169.190) has joined #tryton
2017-11-29 08:27 -!- rpit(~rpit@p200300C88BD1190056EE75FFFE0DD3C7.dip0.t-ipconnect.de) has joined #tryton
2017-11-29 08:29 -!- hedererjs(~hedererjs@dig50-1-78-222-206-45.fbx.proxad.net) has joined #tryton
2017-11-29 08:37 -!- cdchapman(~perturbed@73.98.169.248) has joined #tryton
2017-11-29 08:45 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2017-11-29 08:56 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2017-11-29 09:04 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-11-29 09:07 -!- cdchapman(~perturbed@73.98.169.248) has joined #tryton
2017-11-29 09:23 -!- JanGB(~jan@dslb-088-073-237-234.088.073.pools.vodafone-ip.de) has joined #tryton
2017-11-29 10:30 -!- zmijunkie(~Adium@b2b-78-94-52-226.unitymedia.biz) has joined #tryton
2017-11-29 10:30 -!- cdchapman(~perturbed@73.98.169.139) has joined #tryton
2017-11-29 10:43 -!- csotelo(~csotelo@179.7.34.199) has joined #tryton
2017-11-29 10:53 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton
2017-11-29 11:21 -!- csotelo(~csotelo@179.7.34.199) has joined #tryton
2017-11-29 11:49 -!- smarro(~sebastian@181.16.34.86) has joined #tryton
2017-11-29 12:02 -!- mariomop(~quassel@181.92.171.185) has joined #tryton
2017-11-29 14:03 -!- andrespoliti(~andrespol@250-183-89-200.fibertel.com.ar) has joined #tryton
2017-11-29 14:04 <andrespoliti> hi, is there a way of making a progress bar that tracks progress of an operation that takes a long time in real time (not like the wizard progress bar that only fills when pressing next)
2017-11-29 14:19 -!- csotelo_at_work(~csotelo@179.43.97.56) has joined #tryton
2017-11-29 14:23 -!- smarro(~sebastian@181.16.34.86) has joined #tryton
2017-11-29 14:44 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton
2017-11-29 14:48 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-11-29 15:26 -!- thaneor(~ldlc6@179.26.226.131) has joined #tryton
2017-11-29 15:29 <pokoli> andrespoliti: no, this is not possible
2017-11-29 15:31 <pokoli> andrespoliti: for long runing task, we have celery_tryton which can be used to lunch async tasks
2017-11-29 15:31 <pokoli> andrespoliti: see https://discuss.tryton.org/t/real-time-notification/224
2017-11-29 15:31 <pokoli> andrespoliti: https://pypi.python.org/pypi/celery_tryton/0.3
2017-11-29 15:32 <pokoli> andrespoliti: and probably UX will be improved with real time notifications (first link)
2017-11-29 15:40 <andrespoliti> so your suggestion is instead of using a wizard with a progress bar, launch an async task with celery and use a popup notification when it finishes?
2017-11-29 15:42 <pokoli> andrespoliti: if the tasks is so much long yes
2017-11-29 15:43 <pokoli> andrespoliti: or create a record which tracks the states (and progress)
2017-11-29 16:17 -!- JanGB(~jan@nat3.hmt-leipzig.de) has joined #tryton
2017-11-29 16:32 -!- smarro(~sebastian@181.16.34.86) has joined #tryton
2017-11-29 17:04 <udono> Hi, I try to define a setter method for the party phone function field in an external module. But it seems that Tryton is not detecting the setter method at least on csv-import. When I delete and redefine the phone field in my external module Tryton detects the field in the csv-import list of fields: https://pastebin.com/Ykt2wvTH Is it the correct behavior that a setter of a function field can't be defined in an external module?
2017-11-29 17:05 -!- perilla(~perilla@181.188.201.91) has joined #tryton
2017-11-29 17:07 -!- JanGB(~jan@x2f7f9c4.dyn.telefonica.de) has joined #tryton
2017-11-29 17:09 -!- csotelo_at_work(~csotelo@179.43.97.56) has joined #tryton
2017-11-29 17:16 <pokoli> udono: you shuld not redefine the field, but use the __setup__ to set the seetter
2017-11-29 17:16 <pokoli> udono: I se you use cls.phone.setter, but you use the website field for other. Is this the issue?
2017-11-29 17:21 <udono> pokoli: the website field works good, but the phone doesn't work.
2017-11-29 17:22 <udono> pokoli: works good means: the website field is shown in the csv import list of fields of party model, but the phone field is not shown.
2017-11-29 17:24 <pokoli> udono: strange, I don't see any difference between both fields: http://hg.tryton.org/modules/party/file/3.8/party.py#l54
2017-11-29 17:25 <udono> pokoli: the difference is that I redefine the website field what is working.
2017-11-29 17:25 <udono> pokoli: redefinition works with the phone field, too. But defining a setter does not work
2017-11-29 17:27 <udono> pokoli: sorry for the complicated explanation…
2017-11-29 17:29 <udono> There is no difference when I define the setter before the super call of __setup__
2017-11-29 17:31 -!- csotelo_at_work_(~csotelo@181.176.191.186) has joined #tryton
2017-11-29 17:39 <pokoli> udono: let me give a quick test :)
2017-11-29 17:40 -!- udono1(~udono@107-057-210-188.ip-addr.inexio.net) has joined #tryton
2017-11-29 17:42 -!- udono(~udono@107-057-210-188.ip-addr.inexio.net) has joined #tryton
2017-11-29 17:45 <pokoli> udono: I think it's a bug on trytond
2017-11-29 17:46 <pokoli> udono: because readonly is only updated when setting setter on __init__ but not when directly modifing it
2017-11-29 17:50 <pokoli> udono: indeed setting cls.phone.readonly=False after the setter should fix it
2017-11-29 17:51 <pokoli> udono: that worked for me: https://pastebin.com/vMemHrLA
2017-11-29 17:52 <udono> pokoli: cool! Thank you a lot.
2017-11-29 17:55 -!- JanGB(~jan@x2f7f9c4.dyn.telefonica.de) has joined #tryton
2017-11-29 17:58 -!- JanGB1(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton
2017-11-29 18:21 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2017-11-29 18:33 -!- cdchapman(~perturbed@73.98.169.107) has joined #tryton
2017-11-29 19:29 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton
2017-11-29 20:13 -!- perilla(~perilla@181.188.201.91) has joined #tryton
2017-11-29 20:34 -!- cdchapman(~perturbed@73.98.169.223) has joined #tryton
2017-11-29 21:22 -!- zmijunkie(~Adium@i577AD390.versanet.de) has joined #tryton
2017-11-29 21:24 -!- zmijunkie(~Adium@200116b80a0b7700bdb926d492c5ae69.dip.versatel-1u1.de) has joined #tryton
2017-11-29 21:26 <andrespoliti> how do i define the celery configuration in trytond.conf
2017-11-29 22:01 -!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton
2017-11-29 22:54 -!- thaneor(~ldlc6@179.26.226.131) has joined #tryton
2017-11-29 23:17 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-11-29 23:43 -!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton

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