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 #tryton23:35
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:37
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton05:59
-!- rpit(~rpit@p200300C88F4C2B0012585E561CBA5A6D.dip0.t-ipconnect.de) has joined #tryton07:03
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton07:25
-!- g5pw(~g5pw@mittelab/sudo/g5pw) has joined #tryton07:38
-!- Timitos(~kpreisler@2001:a61:426:7801:762b:62ff:fe84:ed7e) has joined #tryton07:56
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:48
-!- smorillo(05e17cc3@gateway/web/cgi-irc/kiwiirc.com/ip.5.225.124.195) has joined #tryton09:14
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton09:17
-!- mariomop(~quassel@190.193.24.15) has joined #tryton10:34
-!- thaneor1(~ldlc6@r179-25-54-222.dialup.adsl.anteldata.net.uy) has joined #tryton11:38
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton12:57
-!- g5pw(~g5pw@mittelab/sudo/g5pw) has joined #tryton13:08
-!- sebste(~sebste@x4db31653.dyn.telefonica.de) has joined #tryton15:31
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 from15:36
sebsteTryton - I checked by sending the arguments to a test script.15:36
cedksebste: the report action must be configured with the "email" field15:38
sebstecedk: Ok? Thanks. Any suggestions how I would do that?15:40
cedksebste: the field must be Python dict which can use PYSON expression15:47
cedksebste: you will need the email address as a field on model15:47
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=ced15:48
sebstecedk: I dont even know where ot put it / what record to edit :-(15:48
pokolisebste: on Adminsitration -> User Interface -> Actions -> Reports, you should search for your Report and set the email field15:52
sebstepokoli: Thanks, I found the email field in the report. So basically I need to put in something like "party.contact_mechanism.email"?15:56
Timitossebste: something like this: {'to': Eval('email')}. the email field must be on the model where you are generating the report16:00
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.16:15
sebsteEven when I put {'to': 'me@xample.com'} in the reports email field it does not get send to the commandline16:17
Timitoswhich report are you testing with?16:25
sebstesale with custom ODT Template.16:25
Timitosparty.email is not working as pyson does not support dot-notation16:38
Timitosyou should add a function field to determin the email address16:39
pokoliTimitos: IIRC we added support for dot-notation on pyson eval on latest versions16:39
Timitosoh. i missed that. thx16:40
pokoliTimitos: https://bugs.tryton.org/issue852816:40
pokoliIt's available since version 5.416:40
pokolisebste: which tryton version are you using?16:40
sebstepokoli: 5.2 - sorry had to go afk17:13
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.17:17
pokolisebste: on 5.4+ series you can use Eval('party.email') for most of the common modules17:22
pokolisebste: but for customer shipments you should use Eval('customer.email')17:22
pokolisebste: so there is no solution that work for all ases17:23
pokolisebste: but for me the way to go is the new feature that cedric proposed17:25
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.17:26
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 definition21:01

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