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 #tryton | 23:35 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 00:37 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 05:59 | |
-!- rpit(~rpit@p200300C88F4C2B0012585E561CBA5A6D.dip0.t-ipconnect.de) has joined #tryton | 07:03 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 07:25 | |
-!- g5pw(~g5pw@mittelab/sudo/g5pw) has joined #tryton | 07:38 | |
-!- Timitos(~kpreisler@2001:a61:426:7801:762b:62ff:fe84:ed7e) has joined #tryton | 07:56 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 08:48 | |
-!- smorillo(05e17cc3@gateway/web/cgi-irc/kiwiirc.com/ip.5.225.124.195) has joined #tryton | 09:14 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton | 09:17 | |
-!- mariomop(~quassel@190.193.24.15) has joined #tryton | 10:34 | |
-!- thaneor1(~ldlc6@r179-25-54-222.dialup.adsl.anteldata.net.uy) has joined #tryton | 11:38 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 12:57 | |
-!- g5pw(~g5pw@mittelab/sudo/g5pw) has joined #tryton | 13:08 | |
-!- sebste(~sebste@x4db31653.dyn.telefonica.de) has joined #tryton | 15:31 | |
sebste | Good 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 from | 15:36 |
---|---|---|
sebste | Tryton - I checked by sending the arguments to a test script. | 15:36 |
cedk | sebste: the report action must be configured with the "email" field | 15:38 |
sebste | cedk: Ok? Thanks. Any suggestions how I would do that? | 15:40 |
cedk | sebste: the field must be Python dict which can use PYSON expression | 15:47 |
cedk | sebste: you will need the email address as a field on model | 15:47 |
cedk | but 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=ced | 15:48 |
sebste | cedk: I dont even know where ot put it / what record to edit :-( | 15:48 |
pokoli | sebste: on Adminsitration -> User Interface -> Actions -> Reports, you should search for your Report and set the email field | 15:52 |
sebste | pokoli: Thanks, I found the email field in the report. So basically I need to put in something like "party.contact_mechanism.email"? | 15:56 |
Timitos | sebste: something like this: {'to': Eval('email')}. the email field must be on the model where you are generating the report | 16:00 |
sebste | Timitos: 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 |
sebste | Even when I put {'to': 'me@xample.com'} in the reports email field it does not get send to the commandline | 16:17 |
Timitos | which report are you testing with? | 16:25 |
sebste | sale with custom ODT Template. | 16:25 |
Timitos | party.email is not working as pyson does not support dot-notation | 16:38 |
Timitos | you should add a function field to determin the email address | 16:39 |
pokoli | Timitos: IIRC we added support for dot-notation on pyson eval on latest versions | 16:39 |
Timitos | oh. i missed that. thx | 16:40 |
pokoli | Timitos: https://bugs.tryton.org/issue8528 | 16:40 |
pokoli | It's available since version 5.4 | 16:40 |
pokoli | sebste: which tryton version are you using? | 16:40 |
sebste | pokoli: 5.2 - sorry had to go afk | 17:13 |
sebste | so 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 |
pokoli | sebste: on 5.4+ series you can use Eval('party.email') for most of the common modules | 17:22 |
pokoli | sebste: but for customer shipments you should use Eval('customer.email') | 17:22 |
pokoli | sebste: so there is no solution that work for all ases | 17:23 |
pokoli | sebste: but for me the way to go is the new feature that cedric proposed | 17:25 |
sebste | pokoli: 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 |
pokoli | sebste: on 5.2 the only way is adding a functional field that returns the email of party and use this field on the Eval definition | 21:01 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!