chat.freenode.net #tryton log beginning Wed 20 Nov 2019 12:00:01 AM CET | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 00:02 | |
-!- yangoon1(~mathiasb@i59F4B003.versanet.de) has joined #tryton | 03:40 | |
-!- thaneor1(~lenovo3@179.26.22.52) has joined #tryton | 04:00 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 05:56 | |
-!- Timitos(~kpreisler@2001:a61:5a4:b101:762b:62ff:fe84:ed7e) has joined #tryton | 06:56 | |
-!- rpit(~rpit@p200300C88F32F600A22070230F535743.dip0.t-ipconnect.de) has joined #tryton | 07:17 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 07:22 | |
-!- rpit(~rpit@p4FFB778E.dip0.t-ipconnect.de) has joined #tryton | 07:56 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 07:57 | |
pokoli | andrespoliti: See https://discuss.tryton.org/t/export-more-than-1000-rows-via-the-client-export-data/1952/6 | 07:58 |
---|---|---|
-!- josesalvador(~josesalva@84.124.29.26.static.user.ono.com) has joined #tryton | 08:12 | |
cedk | pokoli: should not we put the live stream link on tsd2019 page? | 08:21 |
pokoli | cedk: https://codereview.tryton.org/276351020/ | 08:23 |
mrichez | pokoli: hi, the talks at the Spanish Days will be in english? | 08:29 |
pokoli | mrichez: no sorry, they will be in spanish | 08:29 |
mrichez | pokoli: ok, thanks.. | 08:31 |
pokoli | I've scheduled some tweets to publish the streaming link just before the tsd starts | 09:11 |
pokoli | do we have some odp template for foundation related presentations? | 09:12 |
pokoli | If not I will prepare one | 09:12 |
-!- nicoe(~nicoe@2a02:2788:54:5a3:7e2a:31ff:fe5e:b25d) has joined #tryton | 09:14 | |
-!- xcodinas(~xcodinas@134.ip-5-196-28.eu) has joined #tryton | 10:06 | |
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton | 10:06 | |
pokoli | I've created some notes for a Tryton functional overview: https://pastebin.com/qdXAdnPH | 10:32 |
pokoli | if somebody finds that I missed something it will be great to include it | 10:32 |
-!- mariomop(~quassel@181.228.29.59) has joined #tryton | 10:41 | |
-!- josesalvador(~josesalva@84.124.29.26.static.user.ono.com) has joined #tryton | 11:22 | |
-!- kobain(~kobain@unaffiliated/kobain) has joined #tryton | 11:48 | |
mrichez | hi, 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 |
pokoli | mrichez: your code it's correct | 12:53 |
pokoli | mrichez: the problem is that you are adding to a tuple which is not possible | 12:54 |
pokoli | mrichez: you should convert to list before adding | 12:55 |
mrichez | pokoli: hum, but error is not about tuple, but missing attribute ??? Should i've to call super() or just self._shipment_grouping_fields ? | 12:59 |
pokoli | mrichez: properties hide the internal errors, this is a python issue (has been discoused on the discuss forum) | 13:00 |
pokoli | mrichez: https://discuss.tryton.org/t/help-needed-in-report-property/1729/2?u=pokoli | 13:00 |
mrichez | pokoli: ok thanks! :-) | 13:02 |
mrichez | pokoli: still the same error " .... has no attribute" ... here's my new code: https://pastebin.com/k7mQ3f4E | 13:06 |
mrichez | pokoli: seems another python bug : https://bugs.python.org/issue14965 ??? | 13:09 |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 13:32 | |
-!- nicoe(~nicoe@2a02:2788:54:5a3:7e2a:31ff:fe5e:b25d) has joined #tryton | 13:35 | |
-!- hedererjs(~hedererjs@81.56.169.23) has joined #tryton | 14:20 | |
mrichez | still 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 #tryton | 14:51 | |
pokoli | mrichez: could you tree with https://pastebin.com/WewU3JdG | 14:53 |
mrichez | pokoli: working :-) | 14:58 |
pokoli | mrichez: the problem is that if there is an AttributeError inside the property python complaints about the propoerty attribute | 15:02 |
mrichez | pokoli: ok; but just also wondering why using this decorator @property and not just a function returning tuple ? | 15:04 |
pokoli | mrichez: code looks nicer without the function call | 15:06 |
mrichez | pokoli: ok :-) | 15:15 |
-!- josesalvador(~josesalva@170.253.46.251) has joined #tryton | 15:48 | |
-!- thaneor(~lenovo3@179.26.124.156) has joined #tryton | 16:04 | |
andrespoliti | how can i access the domain of a tree view? | 17:41 |
andrespoliti | i 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 ones | 17:42 |
pokoli | andrespoliti: wow, are you already implementing it? | 17:43 |
andrespoliti | pokoli: it's just a quick hack so our client can make a report before the end of the month hehe | 17:44 |
pokoli | andrespoliti: 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#l307 | 17:45 |
cedk | andrespoliti: why not just increase record limit and select all for the export? | 17:54 |
cedk | andrespoliti: this is the fastest way | 17:54 |
andrespoliti | because we have a client that generates a lot of move lines, and having a high record limit becomes very slow in some models | 17:59 |
cedk | andrespoliti: change just for the one case | 17:59 |
cedk | andrespoliti: it can be done on the ir.action.act_window even | 18:00 |
andrespoliti | if i set it high it takes hours to show the records in the screen, we need to export around 83000 records | 18:02 |
andrespoliti | with some heavy function fields | 18:03 |
andrespoliti | i think that long time is because of calculating the function fields, and then receiving and rendering all that data in the screen | 18:04 |
andrespoliti | it fills the ram very quickly and the client becomes unstable | 18:04 |
andrespoliti | in 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 easily | 18:08 |
andrespoliti | but there is no equivalent function in the gtk client | 18:08 |
cedk | andrespoliti: so export will be as long | 18:08 |
cedk | andrespoliti: CTRL+a | 18:10 |
cedk | anyway, having user to deal with 83k records sounds like a design problem | 18:12 |
cedk | just tested opening 100k translations record in tryton, it takes about 30 seconds but it is doable | 18:17 |
-!- smorillo(250f660a@gateway/web/cgi-irc/kiwiirc.com/ip.37.15.102.10) has joined #tryton | 22:06 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!