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 #tryton01:11
-!- yangoon1(~mathiasb@i59F4B003.versanet.de) has joined #tryton04:11
-!- thaneor1(~lenovo3@179.26.22.52) has joined #tryton05:11
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton06:11
-!- Timitos(~kpreisler@2001:a61:5a4:b101:762b:62ff:fe84:ed7e) has joined #tryton07:11
-!- rpit(~rpit@p200300C88F32F600A22070230F535743.dip0.t-ipconnect.de) has joined #tryton08:11
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton08:11
-!- rpit(~rpit@p4FFB778E.dip0.t-ipconnect.de) has joined #tryton08:11
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:11
pokoliandrespoliti: See https://discuss.tryton.org/t/export-more-than-1000-rows-via-the-client-export-data/1952/608:11
-!- josesalvador(~josesalva@84.124.29.26.static.user.ono.com) has joined #tryton09:11
cedkpokoli: should not we put the live stream link on tsd2019 page?09:11
pokolicedk: https://codereview.tryton.org/276351020/09:11
mrichezpokoli: hi, the talks at the Spanish Days will be in english?09:11
pokolimrichez: no sorry, they will be in spanish09:11
mrichezpokoli: ok, thanks..09:11
pokoliI've scheduled some tweets to publish the streaming link just before the tsd starts10:11
pokolido we have some odp template for foundation related presentations?10:11
pokoliIf not I will prepare one10:11
-!- nicoe(~nicoe@2a02:2788:54:5a3:7e2a:31ff:fe5e:b25d) has joined #tryton10:11
-!- xcodinas(~xcodinas@134.ip-5-196-28.eu) has joined #tryton11:11
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton11:11
pokoliI've created some notes for a Tryton functional overview: https://pastebin.com/qdXAdnPH11:11
pokoliif somebody finds that I missed something it will be great to include it11:11
-!- mariomop(~quassel@181.228.29.59) has joined #tryton11:11
-!- josesalvador(~josesalva@84.124.29.26.static.user.ono.com) has joined #tryton12:11
-!- kobain(~kobain@unaffiliated/kobain) has joined #tryton12:11
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".13:11
pokolimrichez: your code it's correct13:11
pokolimrichez: the problem is that you are adding to a tuple which is not possible13:11
pokolimrichez: you should convert to list before adding13:11
mrichezpokoli: hum, but error is not about tuple, but missing attribute ??? Should i've to call super() or just self._shipment_grouping_fields ?13:11
pokolimrichez: properties hide the internal errors, this is a python issue (has been discoused on the discuss forum)14:11
pokolimrichez: https://discuss.tryton.org/t/help-needed-in-report-property/1729/2?u=pokoli14:11
mrichezpokoli: ok thanks! :-)14:11
mrichezpokoli: still the same error " .... has no attribute"  ... here's my new code: https://pastebin.com/k7mQ3f4E14:11
mrichezpokoli: seems another python bug : https://bugs.python.org/issue14965   ???14:11
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton14:11
-!- nicoe(~nicoe@2a02:2788:54:5a3:7e2a:31ff:fe5e:b25d) has joined #tryton14:11
-!- hedererjs(~hedererjs@81.56.169.23) has joined #tryton15:11
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()15:11
-!- josesalvador(~josesalva@170.253.46.251) has joined #tryton15:11
pokolimrichez: could you tree with https://pastebin.com/WewU3JdG15:11
mrichezpokoli: working :-)15:11
pokolimrichez: the problem is that if there is an AttributeError inside the property python complaints about the propoerty attribute16:11
mrichezpokoli: ok; but just also wondering why using this decorator @property and not just a function returning tuple ?16:11
pokolimrichez: code looks nicer without the function call16:11
mrichezpokoli: ok :-)16:11
-!- josesalvador(~josesalva@170.253.46.251) has joined #tryton16:11
-!- thaneor(~lenovo3@179.26.124.156) has joined #tryton17:11
andrespolitihow can i access the domain of a tree view?18:11
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 ones18:11
pokoliandrespoliti: wow, are you already implementing it?18:11
andrespolitipokoli: it's just a quick hack so our client can make a report before the end of the month hehe18:11
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#l30718:11
cedkandrespoliti: why not just increase record limit and select all for the export?18:11
cedkandrespoliti: this is the fastest way18:11
andrespolitibecause we have a client that generates a lot of move lines, and having a high record limit becomes very slow in some models18:11
cedkandrespoliti: change just for the one case18:11
cedkandrespoliti: it can be done on the ir.action.act_window even19:11
andrespolitiif i set it high it takes hours to show the records in the screen, we need to export around 83000 records19:11
andrespolitiwith some heavy function fields19:11
andrespolitii think that long time is because of calculating the function fields, and then receiving and rendering all that data in the screen19:11
andrespolitiit fills the ram very quickly and the client becomes unstable19:11
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 easily19:11
andrespolitibut there is no equivalent function in the gtk client19:11
cedkandrespoliti: so export will be as long19:11
cedkandrespoliti: CTRL+a19:11
cedkanyway, having user to deal with 83k records sounds like a design problem19:11
cedkjust tested opening 100k translations record in tryton, it takes about 30 seconds but it is doable19:11
-!- smorillo(250f660a@gateway/web/cgi-irc/kiwiirc.com/ip.37.15.102.10) has joined #tryton23:11

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