IRC logs of #tryton for Wednesday, 2019-11-20

chat.freenode.net #tryton log beginning Wed 20 Nov 2019 12:00:01 AM CET
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:02
-!- yangoon1(~mathiasb@i59F4B003.versanet.de) has joined #tryton03:40
-!- thaneor1(~lenovo3@179.26.22.52) has joined #tryton04:00
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton05:56
-!- Timitos(~kpreisler@2001:a61:5a4:b101:762b:62ff:fe84:ed7e) has joined #tryton06:56
-!- rpit(~rpit@p200300C88F32F600A22070230F535743.dip0.t-ipconnect.de) has joined #tryton07:17
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton07:22
-!- rpit(~rpit@p4FFB778E.dip0.t-ipconnect.de) has joined #tryton07:56
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton07:57
pokoliandrespoliti: See https://discuss.tryton.org/t/export-more-than-1000-rows-via-the-client-export-data/1952/607:58
-!- josesalvador(~josesalva@84.124.29.26.static.user.ono.com) has joined #tryton08:12
cedkpokoli: should not we put the live stream link on tsd2019 page?08:21
pokolicedk: https://codereview.tryton.org/276351020/08:23
mrichezpokoli: hi, the talks at the Spanish Days will be in english?08:29
pokolimrichez: no sorry, they will be in spanish08:29
mrichezpokoli: ok, thanks..08:31
pokoliI've scheduled some tweets to publish the streaming link just before the tsd starts09:11
pokolido we have some odp template for foundation related presentations?09:12
pokoliIf not I will prepare one09:12
-!- nicoe(~nicoe@2a02:2788:54:5a3:7e2a:31ff:fe5e:b25d) has joined #tryton09:14
-!- xcodinas(~xcodinas@134.ip-5-196-28.eu) has joined #tryton10:06
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton10:06
pokoliI've created some notes for a Tryton functional overview: https://pastebin.com/qdXAdnPH10:32
pokoliif somebody finds that I missed something it will be great to include it10:32
-!- mariomop(~quassel@181.228.29.59) has joined #tryton10:41
-!- josesalvador(~josesalva@84.124.29.26.static.user.ono.com) has joined #tryton11:22
-!- kobain(~kobain@unaffiliated/kobain) has joined #tryton11:48
mrichezhi, how to extend a @property ??? for instance here : http://hg.tryton.org/modules/sale_shipment_grouping/file/default/sale.py#l17 . I try this way : https://pastebin.com/TXDkbRb6    but getting error "model Sale.sale has no attribute _shipment_grouping_fields".12:48
pokolimrichez: your code it's correct12:53
pokolimrichez: the problem is that you are adding to a tuple which is not possible12:54
pokolimrichez: you should convert to list before adding12:55
mrichezpokoli: hum, but error is not about tuple, but missing attribute ??? Should i've to call super() or just self._shipment_grouping_fields ?12:59
pokolimrichez: properties hide the internal errors, this is a python issue (has been discoused on the discuss forum)13:00
pokolimrichez: https://discuss.tryton.org/t/help-needed-in-report-property/1729/2?u=pokoli13:00
mrichezpokoli: ok thanks! :-)13:02
mrichezpokoli: still the same error " .... has no attribute"  ... here's my new code: https://pastebin.com/k7mQ3f4E13:06
mrichezpokoli: seems another python bug : https://bugs.python.org/issue14965   ???13:09
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton13:32
-!- nicoe(~nicoe@2a02:2788:54:5a3:7e2a:31ff:fe5e:b25d) has joined #tryton13:35
-!- hedererjs(~hedererjs@81.56.169.23) has joined #tryton14:20
mrichezstill with problem of @property ... why using @property here : http://hg.tryton.org/modules/sale_shipment_grouping/file/default/sale.py#l17  as it seems complicated to extend with super()14:46
-!- josesalvador(~josesalva@170.253.46.251) has joined #tryton14:51
pokolimrichez: could you tree with https://pastebin.com/WewU3JdG14:53
mrichezpokoli: working :-)14:58
pokolimrichez: the problem is that if there is an AttributeError inside the property python complaints about the propoerty attribute15:02
mrichezpokoli: ok; but just also wondering why using this decorator @property and not just a function returning tuple ?15:04
pokolimrichez: code looks nicer without the function call15:06
mrichezpokoli: ok :-)15:15
-!- josesalvador(~josesalva@170.253.46.251) has joined #tryton15:48
-!- thaneor(~lenovo3@179.26.124.156) has joined #tryton16:04
andrespolitihow can i access the domain of a tree view?17:41
andrespolitii need to get the domain from within sig_save_as method from the file form.py so i can send it to the backend to print all found records instead of just the selected ones17:42
pokoliandrespoliti: wow, are you already implementing it?17:43
andrespolitipokoli: it's just a quick hack so our client can make a report before the end of the month hehe17:44
pokoliandrespoliti: IIRC on the screen you have the search_domain which should return the domain of the current screen: https://hg.tryton.org/tryton/file/989469835828/tryton/gui/window/view_form/screen/screen.py#l30717:45
cedkandrespoliti: why not just increase record limit and select all for the export?17:54
cedkandrespoliti: this is the fastest way17:54
andrespolitibecause we have a client that generates a lot of move lines, and having a high record limit becomes very slow in some models17:59
cedkandrespoliti: change just for the one case17:59
cedkandrespoliti: it can be done on the ir.action.act_window even18:00
andrespolitiif i set it high it takes hours to show the records in the screen, we need to export around 83000 records18:02
andrespolitiwith some heavy function fields18:03
andrespolitii think that long time is because of calculating the function fields, and then receiving and rendering all that data in the screen18:04
andrespolitiit fills the ram very quickly and the client becomes unstable18:04
andrespolitiin sao, clicking the checkbox in the column name row selects not only the records on the screen but all of them, so they can export it easily18:08
andrespolitibut there is no equivalent function in the gtk client18:08
cedkandrespoliti: so export will be as long18:08
cedkandrespoliti: CTRL+a18:10
cedkanyway, having user to deal with 83k records sounds like a design problem18:12
cedkjust tested opening 100k translations record in tryton, it takes about 30 seconds but it is doable18:17
-!- smorillo(250f660a@gateway/web/cgi-irc/kiwiirc.com/ip.37.15.102.10) has joined #tryton22:06

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