IRC logs of #tryton for Friday, 2018-06-22

chat.freenode.net #tryton log beginning Fri Jun 22 00:00:01 CEST 2018
-!- udono1(~udono@121-058-210-188.ip-addr.inexio.net) has joined #tryton01:06
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:06
-!- Tesla42(~stefan@2001:638:911:10b:134:109:196:3) has joined #tryton02:06
-!- VlijmenFileer-se(~VlijmenFi@199.195.193.181) has joined #tryton02:06
-!- kmm(~kmm@142.196.170.87) has joined #tryton04:06
-!- cryptic(~cryptic@142.196.170.87) has joined #tryton04:06
-!- cryptic_(~cryptic@142.196.170.87) has joined #tryton04:06
-!- yangoon(~mathiasb@i59F4A11B.versanet.de) has joined #tryton04:06
-!- cryptic(~cryptic@142.196.170.87) has joined #tryton04:06
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton07:06
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton07:06
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton08:06
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:06
-!- jmpoure(~jmpoure@63.109.206.77.rev.sfr.net) has joined #tryton08:06
-!- rpit(~ralf@p200300C88F352A001CB049140027CE21.dip0.t-ipconnect.de) has joined #tryton08:06
-!- udono(~udono@121-058-210-188.ip-addr.inexio.net) has joined #tryton09:06
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:06
-!- Lordvan_(~LordVan@gentoo/developer/LordVan) has joined #tryton09:06
-!- LV(~LordVan@gentoo/developer/LordVan) has joined #tryton10:06
-!- nicoe(~nicoe@2a02:578:858c:500:ee55:f9ff:fe7b:f7ac) has joined #tryton10:06
-!- Lordvan_(~LordVan@gentoo/developer/LordVan) has joined #tryton11:06
sisalphello, when starting trytond-cron on a 4.8, I get a traceback: https://pastebin.com/pGxKRUFN11:06
sisalpanybody had the same ? Can it be matter of postgres version (9.3) ? psycopg2 is psycopg2==2.7.511:06
pokolisisalp: can not reproduce on 4.9, but from the traceback it seems that you do not have any activated module on the database11:06
cedksisalp: looks like no module is found12:06
sisalppokoli: cedk: indeed the database has just been created by trytond-admin and is waiting its first connection12:06
sisalppokoli: cedk: do you mean that cron will be effective at next restart if someone has installed something  in between. It would be ok, just a traceback for new databases.12:06
cedksisalp: no, I mean that no python modules are found12:06
-!- LV(~LordVan@gentoo/developer/LordVan) has joined #tryton12:06
-!- orphean(~Orphean@31.192.224.224) has joined #tryton12:06
-!- Lordvan_(~LordVan@gentoo/developer/LordVan) has joined #tryton12:06
-!- Tesla42(~stefan@helme-3.informatik.tu-chemnitz.de) has joined #tryton12:06
-!- mariomop(~quassel@181.110.48.233) has joined #tryton13:06
sisalpcedk: is the $TRYTONPASSFILE variable for tryton-admin still supported ?13:06
pokolisisalp: yes it is13:06
pokolisisalp: I use it on my development machine :)13:06
sisalppokoli: thank you, looking elsewhere then ;-)14:06
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton14:06
sisalppokoli: looks like trytond-admin is waiting for an email address14:06
pokolisisalp: yes, this is a new feature of 4.8 and it can be specified by flag on trytond-admin14:06
sisalppokoli: what is the use of this email address ?14:06
pokolisisalp: trytond-admin -h should list this flag14:06
pokolisisalp: is the email of the admin user, which can be used to restore the password14:06
sisalppokoli: it does, but it is optionnal14:06
sisalppokoli: when I add an email toto@tata, it is ok, when I don't it prompts to get one.14:06
sisalppokoli: so how to not set an email ?14:06
pokolisisalp: you can not... An email should be set for new databases14:06
sisalppokoli: ok, so, I will forge a fix to set a broken address or something like this.14:06
pokolisisalp: who is the admin user of your database?14:06
pokolisisalp: you? or your customer?14:06
pokolisisalp: in both cases it should have a valid email address so better to set it14:06
sisalppokoli: Is it possible that a test db keeps its admin mail when it is transfered to a production server ? If so, I would be in trouble.14:06
pokolisisalp: yes, the email is keep, but no email will be sent on test environment if no smtp server is configured14:06
sisalppokoli: The typical case is the other side, from test to production, and I won't bet on smtp availability to enforce security.14:06
sisalppokoli: why do we need it ?14:06
pokolisisalp: indeed you can configure a fake smpt server for testing environemnts. Something like: https://github.com/mailhog/MailHog14:06
pokolisisalp: it will be used for password recovery and to send the cron issues (as normally administrator is set as request user)14:06
sisalppokoli: cron issues was my initial guess, so I didn't use it since I monitor the log. password recovery is another story.14:06
pokolisisalp: feel free to use a fake email or a generic email, but it will be good to set this with the email of the administrator: That's why we try to enforce it14:06
sisalppokoli: I guess it was disccuss at the time it was done, if I'm the only one I will forge my server. Seems to me as a bad practice and security concern, in particular at empty database creation step.14:06
cedksisalp: what is the security concern?14:06
cedksisalp: also if you realy do not want to put an email, you can just set it to ''14:06
cedkex: --email ""14:06
sisalpcedk: if I understand correctly, when a database backup is moved between two authorities, someone has the possibility to reset a password because his mail was declared at database initialisation.14:06
sisalpcedk: --email "" is perfect for me. It makes this address optional.14:06
pokolisisalp: he has the possiblity to reset it's own password14:06
cedksisalp: no, the email does not give the right to reset the password, it is to receive the email14:06
cedksisalp: only an admin group user or via command line, a password can be reset14:06
sisalpcedk: perfect14:06
sisalpcedk: so how is this email used for password recovery ?14:06
pokolisisalp: https://bugs.tryton.org/issue703714:06
cedksisalp: for admin user, it is usually from command line: trytond-admin with the option --reset-password14:06
cedksisalp: this allows the operator to reset a password without knowning it14:06
cedksisalp: it should be useful for hoster like you because the reset password uses best practice14:06
cedkex: reset password is valid only once and for a short period14:06
cedknot only once but until it is changed14:06
sisalpcedk: seems ok. I used to patch on postgresql, for example at restore step, before I start the trytond server, it is quite similar.15:06
sisalppokoli: thank you for the link to the issue, but the link to discuss.tryton.org fails15:06
cedksisalp: it works for m16:06
sisalpcedk: works from another place. it is ok.16:06
cedksisalp: is it an internal network issue or more general?17:06
sisalpprobably on my side17:06
-!- andrespoliti(~andrespol@181.93.54.196) has joined #tryton17:06
andrespolitihi, i'm in trytond 4.0.15 and account_invoice 4.0.6 How can i restrict a group of users of pressing the pay button of invoice? I inserted an xml record of type ir.model.button for the pay button, and then assigned permissions to a test group, but when i log into a member of test group, i can't press pay17:06
-!- LV(~LordVan@gentoo/developer/LordVan) has joined #tryton17:06
cedkandrespoliti: what is happening?17:06
andrespoliticedk: the permissions for the button appear not to be working17:06
cedkandrespoliti: what is happening?17:06
andrespoliticedk: for the button pay of model invoice, i assigned permissions for the groups Administration and test_buttons17:06
andrespoliticedk: when i login with admin, i can press the pay button, but when i login with a member of test_buttons, i can't17:06
cedkandrespoliti: why can't you, what is happening?17:06
andrespoliticedk: the button is greyed out17:06
cedkandrespoliti: did you refresh the cache?17:06
andrespolitiyou mean by restarting the client?17:06
cedkandrespoliti: everything17:06
andrespolitiyes, same thing17:06
andrespolitithe test_buttons group also has read and write permissions for invoice17:06
andrespoliticedk: actually, it has read, write, create and delete, and i can create an invoice, but i still can't press any buttons17:06
andrespoliticedk: was it correct to add via xml the definition of the button?17:06
cedkandrespoliti: in 4.0 pay button has hardcoded readonly17:06
andrespolitifor all except admin?17:06
andrespoliticedk: and how is it hardcoded?18:06
-!- mariomop_(~quassel@host242.190-138-229.telecom.net.ar) has joined #tryton18:06
cedkandrespoliti: http://hg.tryton.org/modules/account_invoice/file/4.0/invoice.py#l25918:06
andrespoliticedk: okey, thanks18:06
-!- orphean(~Orphean@31.192.224.224) has joined #tryton19:06
-!- rpit(~ralf@p4FD19118.dip0.t-ipconnect.de) has joined #tryton21:06
-!- Tesla42(~stefan@anon-49-189.vpn.ipredator.se) has joined #tryton21:06
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton22:06
-!- Tesla42(~stefan@anon-49-164.vpn.ipredator.se) has joined #tryton22:06
-!- sim6_(~sim6@185.107.106.105) has joined #tryton23:06
-!- sim6__(~sim6@185.107.106.105) has joined #tryton23:06
sim6_hello23:06
sim6_demo4.8.tryton.org isn't working :(23:06
cedksim6_: looks like someone has exhausted all available connections23:06
-!- Tesla42(~stefan@anon-49-223.vpn.ipredator.se) has joined #tryton23:06
sim6_cedk: thanks for taking care of that23:06

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