IRC logs of #tryton for Friday, 2020-03-13

chat.freenode.net #tryton log beginning Fri 13 Mar 2020 12:00:01 AM CET
-!- thaneor(~ldlc6@r179-24-76-49.dialup.adsl.anteldata.net.uy) has joined #tryton00:03
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:03
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton06:03
-!- rpit(~rpit@p200300C88F4C2B0012585E561CBA5A6D.dip0.t-ipconnect.de) has joined #tryton08:03
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton08:03
-!- g5pw(~g5pw@mittelab/sudo/g5pw) has joined #tryton08:03
-!- Timitos(~kpreisler@2001:a61:426:7801:762b:62ff:fe84:ed7e) has joined #tryton08:03
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:03
-!- smorillo(05e17cc3@gateway/web/cgi-irc/kiwiirc.com/ip.5.225.124.195) has joined #tryton10:03
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton10:03
-!- mariomop(~quassel@190.193.24.15) has joined #tryton11:03
-!- thaneor1(~ldlc6@r179-25-54-222.dialup.adsl.anteldata.net.uy) has joined #tryton12:03
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton13:03
-!- g5pw(~g5pw@mittelab/sudo/g5pw) has joined #tryton14:03
-!- sebste(~sebste@x4db31653.dyn.telefonica.de) has joined #tryton16:03
sebsteGood afternoon! Got a quick question: In Tryton GTK Client 5.2, If I want to send a Document by Email, the {$to} Variable does not seem to be handed over to the Email client. Am I doing something wrong here? The Email Address is marked as "invoice" in the party and my commandline in the client is set to "kmail --composer ${to} --subject ${subject}  --attach ${attachment}" . Anything else I can check? The {$to} variable is simply not sent from16:03
sebsteTryton - I checked by sending the arguments to a test script.16:03
cedksebste: the report action must be configured with the "email" field16:03
sebstecedk: Ok? Thanks. Any suggestions how I would do that?16:03
cedksebste: the field must be Python dict which can use PYSON expression16:03
cedksebste: you will need the email address as a field on model16:03
cedkbut we know that it is not a good feature, there is a proposal for a better one: https://discuss.tryton.org/t/set-up-emails-and-easy-email-delivery/2116/7?u=ced16:03
sebstecedk: I dont even know where ot put it / what record to edit :-(16:03
pokolisebste: on Adminsitration -> User Interface -> Actions -> Reports, you should search for your Report and set the email field16:03
sebstepokoli: Thanks, I found the email field in the report. So basically I need to put in something like "party.contact_mechanism.email"?16:03
Timitossebste: something like this: {'to': Eval('email')}. the email field must be on the model where you are generating the report17:03
sebsteTimitos: Thank you! I put in {'to': Eval('party.email', '')} (it is a sale report.) That does not work, though. Is there a way to browse fields in tryton (I used the csv Export, but that only shows the transdlated labels and not the field names.17:03
sebsteEven when I put {'to': 'me@xample.com'} in the reports email field it does not get send to the commandline17:03
Timitoswhich report are you testing with?17:03
sebstesale with custom ODT Template.17:03
Timitosparty.email is not working as pyson does not support dot-notation17:03
Timitosyou should add a function field to determin the email address17:03
pokoliTimitos: IIRC we added support for dot-notation on pyson eval on latest versions17:03
Timitosoh. i missed that. thx17:03
pokoliTimitos: https://bugs.tryton.org/issue852817:03
pokoliIt's available since version 5.417:03
pokolisebste: which tryton version are you using?17:03
sebstepokoli: 5.2 - sorry had to go afk18:03
sebsteso is there a "standard" value for the field for - let's say an invoice report, from which I can do my adaptations for the other reports? From what I gathered they wor mostly similar, right? The other thing is, that even the plain text example suggested in thte tool tip does not seem to work.18:03
pokolisebste: on 5.4+ series you can use Eval('party.email') for most of the common modules18:03
pokolisebste: but for customer shipments you should use Eval('customer.email')18:03
pokolisebste: so there is no solution that work for all ases18:03
pokolisebste: but for me the way to go is the new feature that cedric proposed18:03
sebstepokoli: that means, that currently there is no way for me to get this working in 5.2, right? Even if I just put some text in (as in the tool tip example), it is not handed over to the commandline. So I suspect the problem is somewhere else.18:03
pokolisebste: on 5.2 the only way is adding a functional field that returns the email of party and use this field on the Eval definition22:03

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