IRC logs of #tryton for Tuesday, 2019-12-17

chat.freenode.net #tryton log beginning Tue 17 Dec 2019 12:00:01 AM CET
-!- thaneor(~lenovo3@r167-56-50-232.dialup.adsl.anteldata.net.uy) has joined #tryton00:19
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:41
-!- yangoon(~mathiasb@238-152-142-46.pool.kielnet.net) has joined #tryton03:21
-!- scrapper(~scrapper@mx.develissimo.com) has joined #tryton05:17
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton06:03
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton06:59
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton07:25
-!- rpit(~rpit@p200300C88F32F600A22070230F535743.dip0.t-ipconnect.de) has joined #tryton07:52
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton08:09
-!- josesalvador(~josesalva@84.124.29.26.static.user.ono.com) has joined #tryton08:11
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:31
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton08:44
-!- jani-matti_(~quassel@93-90-53-6.welcomnet.fi) has joined #tryton09:04
-!- buxy_bak(~rhertzog@helios.freexian.com) has joined #tryton09:08
-!- paolo_(~paolo@unaffiliated/paolo) has joined #tryton09:09
-!- mniip(mniip@freenode/staff/mniip) has joined #tryton09:16
-!- thaneor(~lenovo3@r179-24-37-117.dialup.adsl.anteldata.net.uy) has joined #tryton09:17
-!- sisalp(~sisalpuse@51.sisalp.net) has joined #tryton09:18
-!- nicoe(~nicoe@2a02:2788:54:5a3:7e2a:31ff:fe5e:b25d) has joined #tryton09:40
-!- buxy_bak(~rhertzog@helios.freexian.com) has left #tryton09:42
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton10:07
mrichezhi, when a user log into tryton (5.2 - windows client) he get this error : 429 TOO MANY REQUESTS ( here's the full error message: https://pastebin.com/QEF0C9B2) then the client quit. I saw this subject on discuss: https://discuss.tryton.org/t/how-to-manage-this-error-fault-fault-429-too-many-requests/896 . But wondering why there's such error message instead of a clean warning "Too much erroneous attempts..." ?10:55
cedkmrichez: because it is low level protection10:57
cedkwe return the HTTP status corresponding to such problem10:58
mrichezcedk: because user doesn't know what to d and is calling us...10:58
cedknow maybe the client could display a better message10:58
mrichezcedk : and he doesn't know how long he must wait before to log on successfully10:59
cedkmrichez: but normally it should not happen except if user are forgetting their passwords or you are under brute force attack10:59
mrichezcedk: don't know how many attempts he did10:59
-!- mariomop(~quassel@181.228.29.59) has joined #tryton11:01
cedkmrichez: well it is the first thing to collect to see if it is unusual or not11:05
mrichezcedk: ok will investigate :-)11:06
mrichezcedk: often is just a problem of uppercase/lowercase so they try many attempts before to remark11:07
cedkmrichez: you should have the attempt recorded in the database11:07
mrichezcedk: ok will check11:07
mrichezcedk: in which table ?11:08
cedkmrichez: res_user_login_attempt11:09
mrichezcedk: ok 16 attempts .. :-) i understand11:10
cedkmrichez: the best is to get user open the URL with the database name as hashtag so his session will still be stored in the browser and he will not need to login11:15
mrichezcedk: we use gtk client11:16
cedkthen it is education: not type 16 times the same wrong password11:18
mrichezcedk: indeed :-)11:33
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton11:34
cedkmrichez: I think we could improve the UX by doing login asynchronous so the watch cursor will be displayed and the user may cancel the process (and close the application)11:49
mrichezcedk: and how can i let user login again ? clearing the table ?11:50
cedkI think it will reduce the case that user may think the application was not responding11:50
mrichezcedk: in our case, an error message is displayed (no delay)11:51
cedkmrichez: this is because he tried more than 5 times11:52
cedkmrichez: so you can clear the attempt table11:52
cedkotherwise hi account is blocked for the session timeout seconds11:53
mrichezcedk: ok.. will do that... may be the ux can switch to let user see the password  to check if it's correct ? or displaying an icon if uppercase is active ?11:53
cedk5 minutes by default11:53
cedkindeed we should have show password on the login like on password widget11:54
mrichezcedk: would be useful11:55
mrichezcedk: added https://bugs.tryton.org/issue893412:35
-!- nicoe(~nicoe@2a02:2788:54:5a3:7e2a:31ff:fe5e:b25d) has joined #tryton13:01
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton13:05
-!- amprxc(b97aa1f7@gateway/web/cgi-irc/kiwiirc.com/ip.185.122.161.247) has joined #tryton13:08
mrichezis there a way to unset a default value on copy ? I try to keep sale_date when copying a sale (but it is set to None by default)...13:15
pokolimrichez: normally supper calls use setdefault so if you have the 'sale_date' value set in the defaults parameter of copy it should not be overriden to default13:52
pokolimrichez: this is the case of the sale_date https://hg.tryton.org/modules/sale/file/8b5b19274cb4/sale.py#l66613:52
pokolimrichez: so setting the date you want on the defaults parameter of copy will preserve it13:52
pokolimrichez: you just need to override the function on your custom module and set the default value before calling super()13:53
mrichezpokoli: but i don't want to set sale_date to default... i want to keep original value...13:55
pokolimrichez: then you can set a function that returns the default value13:56
pokolis/default value/original value/13:57
pokolimrichez: https://docs.tryton.org/projects/server/en/latest/ref/models/models.html#trytond.model.ModelStorage.copy13:58
pokolimrichez: see https://hg.tryton.org/trytond/rev/aabb2b3e5096/#l7.33 for an example13:58
mrichezpokoli: when i will call super, even if i set a default value, it will be overwritten by the default value in the copy defined in sale ?14:00
pokolimrichez: no because setdefault function only overrides the value if not set14:00
mrichezpokoli: ok :-)14:00
mrichezpokoli: ok working . Thanks! :-) https://pastebin.com/FX04gJCU14:20
mrichezpokoli: wondering the behaviour if i duplicate multiple sales having different date, i thought all the duplicate sales would have the same first date, but each sale is duplicated with the correct date14:21
pokolimrichez: yes, that because the function is called for each record to set the values14:23
mrichezpokoli: as the parameter of the copy function is "sales", i thought it was all the selected records14:23
pokolimrichez: yes sales contain all the selected records, but the function is called for each record with data as the values of the original one14:24
cedkmrichez: by the way, I created https://bugs.tryton.org/issue8935 to display a nicer message on too many request14:24
mrichezpokoli: thanks for the explanations14:25
mrichezcedk: ok, will be better for the users14:26
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton14:31
-!- josesalvador(~josesalva@170.253.41.74) has joined #tryton14:50
mrichezhow to have a trace with tryton gtk client under windows 10... i've a problem with a @modelview.button_action , when i click on the button nothing happens ... it should display a report... it's working on linux15:29
mrichezjust saw discuss about that: https://discuss.tryton.org/t/logging-of-desktop-client-for-windows/207515:33
sisalpHello, On 5.4 I try to block sale document translation. Setting the flag on report form doesn't seem to do it. Fields of my command are still translated to customers language. Is it expected ?15:38
sisalpI mean unsetting the "translatable" flag.15:40
cedksisalp: the flag is only to generate or not the translation entries15:43
mrichezI made another test - button handle_shipment_exception... nothing happens... it seems Modelview.button_action is not working on latest gtk client for windows 64 bit (this version: http://www.b2ck.com/~ced/tryton-5.5.dev0.exe) Can anyone confirm ?15:45
cedksisalp: I think this flag should also disable the translation in Report15:45
cedksisalp: filled https://bugs.tryton.org/issue893715:50
sisalpcedk: thank you.15:55
sisalpI have another question : when I add a line to a draft sale order, the product description doesn't come to line description. Dio I miss something ?15:57
cedksisalp: no it is the expected behavior15:59
cedksisalp: if you want to display product description on the report just display it.15:59
cedkthere is no point to duplicate the data on the sale line15:59
sisalpcedk: I will modify the report and check16:04
sisalpcedk: works well indeed. Another point is about font. I thought about using Liberation sans narrow. It seems I don't have it and it is probably complex to add it. What is the situation ?16:18
cedksisalp: I do not understand16:22
sisalpcedk: When I edit my sale.fodt template, I choose Liberation sans narrow for a paragraph, and it is changed to Liberation sans in the final document.16:25
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton16:27
sisalpcedk: probably related to my libreoffice installation: on odf result, I keep my font, and I loose it the pdf translation. I will play on the size for now.16:31
cedksisalp: I guess the server which does the pdf conversion does not have the font16:32

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