irc.libera.chat #tryton log beginning Fri Oct 15 12:00:01 AM CEST 2021 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:53 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 23:53 | |
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton | 04:52 | |
-!- springwurm(~springwur@5.104.149.54) has joined #tryton | 04:56 | |
-!- timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | 05:34 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 05:44 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 05:53 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 05:53 | |
-!- timitos(~kpreisler@134.3.92.37) has joined #tryton | 05:53 | |
-!- DomCa(~DomCa@ipb2197982.dynamic.kabel-deutschland.de) has joined #tryton | 06:40 | |
DomCa | Hi again.With your tips from yesterday I now got the template rendered with the conditions fine. | 06:41 |
---|---|---|
DomCa | Now I am curious. In the invoice.fodt the <replace text:p="set_lang(invoice.party.lang)"> is used. Could you shortly explain what is done there? | 06:42 |
DomCa | I would like to better understand the capabilities of relatorio. | 06:42 |
-!- rpit(~rpit@p200300c88f168d000ae81a7497341a2e.dip0.t-ipconnect.de) has joined #tryton | 07:09 | |
cedk | DomCa: this call set_lang which is a Tryton method to make the following content being translated in the party's language | 07:21 |
cedk | it uses the <replace text:p=""> to remove the empty line created by the directive | 07:22 |
DomCa | cedk: Ok. I imagined something like that. The <replace test:p""> is what got me confused, since I could run functions in simple placeholders by calling them. Thank you! | 07:23 |
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton | 07:54 | |
-!- DomCa(~DomCa@ipb2197982.dynamic.kabel-deutschland.de) has joined #tryton | 08:56 | |
mrichez | hi, could a ModelView be used to print a report ? I have wizard with a form and some fields on it to should be filled by user then i want to print those data's on a report (label) but i don't need to save data's | 09:25 |
pokoli | mrichez: reports are based on ids, so you should have a way to browse such ids | 10:05 |
pokoli | mrichez: did you print the report from the wizard? | 10:05 |
cedk | mrichez: you set data in the wizard do_<state> method which will be available as data in Report.get_context | 10:23 |
cedk | so from there you can use the data to fill the context of the report | 10:23 |
mrichez | ok, yes i print from the wizard. Thanks cedk and pokoli! | 11:14 |
-!- springwurm(~springwur@5.104.149.54) has joined #tryton | 12:04 | |
mrichez | one more question about report, in xml <record model="ir.action.report"...> i need to change <field name="report">path_to_report ... from my wizard. Possible ? | 12:53 |
cedk | mrichez: you must create one action per template | 13:24 |
cedk | mrichez: and for example you can set a Transition tochoose theproper action | 13:25 |
mrichez | cedk: ok... got 10 templates.. | 13:26 |
mrichez | and it's only the report path that change | 13:27 |
cedk | mrichez: so 10 copy/paste | 13:33 |
mrichez | cedk :-) | 13:33 |
-!- timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | 15:57 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!