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

chat.freenode.net #tryton log beginning Wed Nov 29 00:00:01 CET 2017
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:38
-!- NeonKing(~Neonking@176.179.38.86) has joined #tryton01:41
-!- smarro(~sebastian@181.16.34.86) has joined #tryton01:44
-!- cdchapman(~perturbed@67-2-42-198.slkc.qwest.net) has joined #tryton03:15
-!- thaneor1(~ldlc6@r179-25-82-170.dialup.adsl.anteldata.net.uy) has joined #tryton03:24
-!- cdchapman(~perturbed@73.98.169.190) has joined #tryton07:07
-!- rpit(~rpit@p200300C88BD1190056EE75FFFE0DD3C7.dip0.t-ipconnect.de) has joined #tryton08:27
-!- hedererjs(~hedererjs@dig50-1-78-222-206-45.fbx.proxad.net) has joined #tryton08:29
-!- cdchapman(~perturbed@73.98.169.248) has joined #tryton08:37
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:45
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:56
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:04
-!- cdchapman(~perturbed@73.98.169.248) has joined #tryton09:07
-!- JanGB(~jan@dslb-088-073-237-234.088.073.pools.vodafone-ip.de) has joined #tryton09:23
-!- zmijunkie(~Adium@b2b-78-94-52-226.unitymedia.biz) has joined #tryton10:30
-!- cdchapman(~perturbed@73.98.169.139) has joined #tryton10:30
-!- csotelo(~csotelo@179.7.34.199) has joined #tryton10:43
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton10:53
-!- csotelo(~csotelo@179.7.34.199) has joined #tryton11:21
-!- smarro(~sebastian@181.16.34.86) has joined #tryton11:49
-!- mariomop(~quassel@181.92.171.185) has joined #tryton12:02
-!- andrespoliti(~andrespol@250-183-89-200.fibertel.com.ar) has joined #tryton14:03
andrespolitihi, 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)14:04
-!- csotelo_at_work(~csotelo@179.43.97.56) has joined #tryton14:19
-!- smarro(~sebastian@181.16.34.86) has joined #tryton14:23
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton14:44
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton14:48
-!- thaneor(~ldlc6@179.26.226.131) has joined #tryton15:26
pokoliandrespoliti: no, this is not possible15:29
pokoliandrespoliti: for long runing task, we have celery_tryton which can be used to lunch async tasks15:31
pokoliandrespoliti: see https://discuss.tryton.org/t/real-time-notification/22415:31
pokoliandrespoliti: https://pypi.python.org/pypi/celery_tryton/0.315:31
pokoliandrespoliti: and probably UX will  be improved with real time notifications (first link)15:32
andrespolitiso 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?15:40
pokoliandrespoliti: if the tasks is so much long yes15:42
pokoliandrespoliti: or create a record which tracks the states (and progress)15:43
-!- JanGB(~jan@nat3.hmt-leipzig.de) has joined #tryton16:17
-!- smarro(~sebastian@181.16.34.86) has joined #tryton16:32
udonoHi, 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?17:04
-!- perilla(~perilla@181.188.201.91) has joined #tryton17:05
-!- JanGB(~jan@x2f7f9c4.dyn.telefonica.de) has joined #tryton17:07
-!- csotelo_at_work(~csotelo@179.43.97.56) has joined #tryton17:09
pokoliudono: you shuld not redefine the field, but use the __setup__ to set the seetter17:16
pokoliudono: I se you use cls.phone.setter, but you use the website field for other. Is this the issue?17:16
udonopokoli: the website field works good, but the phone doesn't work.17:21
udonopokoli: 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.17:22
pokoliudono: strange, I don't see any difference between both fields: http://hg.tryton.org/modules/party/file/3.8/party.py#l5417:24
udonopokoli: the difference is that I redefine the website field what is working.17:25
udonopokoli: redefinition works with the phone field, too. But defining a setter does not work17:25
udonopokoli: sorry for the complicated explanation…17:27
udonoThere is no difference when I define the setter before the super call of __setup__17:29
-!- csotelo_at_work_(~csotelo@181.176.191.186) has joined #tryton17:31
pokoliudono: let me give a quick test :)17:39
-!- udono1(~udono@107-057-210-188.ip-addr.inexio.net) has joined #tryton17:40
-!- udono(~udono@107-057-210-188.ip-addr.inexio.net) has joined #tryton17:42
pokoliudono: I think it's a bug on trytond17:45
pokoliudono: because readonly is only updated when setting setter on __init__ but not when directly modifing it17:46
pokoliudono: indeed setting cls.phone.readonly=False after the setter should fix it17:50
pokoliudono: that worked for me: https://pastebin.com/vMemHrLA17:51
udonopokoli: cool! Thank you a lot.17:52
-!- JanGB(~jan@x2f7f9c4.dyn.telefonica.de) has joined #tryton17:55
-!- JanGB1(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton17:58
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton18:21
-!- cdchapman(~perturbed@73.98.169.107) has joined #tryton18:33
-!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton19:29
-!- perilla(~perilla@181.188.201.91) has joined #tryton20:13
-!- cdchapman(~perturbed@73.98.169.223) has joined #tryton20:34
-!- zmijunkie(~Adium@i577AD390.versanet.de) has joined #tryton21:22
-!- zmijunkie(~Adium@200116b80a0b7700bdb926d492c5ae69.dip.versatel-1u1.de) has joined #tryton21:24
andrespolitihow do i define the celery configuration in trytond.conf21:26
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton22:01
-!- thaneor(~ldlc6@179.26.226.131) has joined #tryton22:54
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:17
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton23:43

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!