IRC logs of #tryton for Friday, 2021-10-15

irc.libera.chat #tryton log beginning Fri Oct 15 12:00:01 AM CEST 2021
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:53
-!- ChanServ changed mode/#tryton -> +o cedk 23:53
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton04:52
-!- springwurm(~springwur@5.104.149.54) has joined #tryton04:56
-!- timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton05:34
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton05:44
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton05:53
-!- ChanServ changed mode/#tryton -> +o cedk 05:53
-!- timitos(~kpreisler@134.3.92.37) has joined #tryton05:53
-!- DomCa(~DomCa@ipb2197982.dynamic.kabel-deutschland.de) has joined #tryton06:40
DomCaHi again.With your tips from yesterday I now got the template rendered with the conditions fine.06:41
DomCaNow 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
DomCaI would like to better understand the capabilities of relatorio.06:42
-!- rpit(~rpit@p200300c88f168d000ae81a7497341a2e.dip0.t-ipconnect.de) has joined #tryton07:09
cedkDomCa: this call set_lang which is a Tryton method to make the following content being translated in the party's language07:21
cedkit uses the <replace text:p=""> to remove the empty line created by the directive07:22
DomCacedk: 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 #tryton07:54
-!- DomCa(~DomCa@ipb2197982.dynamic.kabel-deutschland.de) has joined #tryton08:56
mrichezhi, 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's09:25
pokolimrichez: reports are based on ids, so you should have a way to browse such ids10:05
pokolimrichez: did you print the report from the wizard?10:05
cedkmrichez: you set data in the wizard do_<state> method which will be available as data in Report.get_context10:23
cedkso from there you can use the data to fill the context of the report10:23
mrichezok, yes i print from the wizard. Thanks cedk and pokoli!11:14
-!- springwurm(~springwur@5.104.149.54) has joined #tryton12:04
mrichezone 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
cedkmrichez: you must create one action per template13:24
cedkmrichez: and for example you can set a Transition tochoose theproper action13:25
mrichezcedk: ok... got 10 templates.. 13:26
mrichezand it's only the report path that change13:27
cedkmrichez: so 10 copy/paste13:33
mrichezcedk :-)13:33
-!- timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton15:57

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