IRC logs of #tryton for Friday, 2020-03-13 #tryton log beginning Fri 13 Mar 2020 12:00:01 AM CET
-!- thaneor( has joined #tryton00:03
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:03
-!- springwurm(~Springwur@ has joined #tryton06:03
-!- rpit( has joined #tryton08:03
-!- mrichez( 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/ has joined #tryton10:03
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton10:03
-!- mariomop(~quassel@ has joined #tryton11:03
-!- thaneor1( has joined #tryton12:03
-!- springwurm(~Springwur@ has joined #tryton13:03
-!- g5pw(~g5pw@mittelab/sudo/g5pw) has joined #tryton14:03
-!- sebste( 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:
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 ""?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('', '')} (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': ''} 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 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
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('') for most of the common modules18:03
pokolisebste: but for customer shipments you should use Eval('')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 2.16.0 by Marius Gedminas - find it at!