IRC logs of #tryton for Monday, 2021-01-18

chat.freenode.net #tryton log beginning Mon Jan 18 12:00:01 AM CET 2021
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:09
-!- srgdts_(~srgdts@unaffiliated/srgdts) has joined #tryton02:08
-!- manuelmrtz(~manuelmrt@24.138.196.136) has joined #tryton02:30
LordVancedk, yes it is used for a - possible- part of the order name06:06
LordVanso that is fine then06:06
LordVanand i have quite custom reports anyway06:06
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton06:12
-!- thaneor(~ldlc6@r167-61-85-41.dialup.adsl.anteldata.net.uy) has joined #tryton06:16
LordVanmorning06:27
LordVani have a weird issue06:27
LordVani got my sale template with a for each="sale in records" .... /for06:27
LordVanand that works06:27
LordVanbut when I add a for each="line in sale.lines" .. /for06:27
LordVanright after the other for06:27
LordVan(and the closing right at the end)06:28
LordVanI get AssertionError: No common ancestor found for opening and closing tag06:29
LordVaneven without any other changes06:29
LordVan<for each="sale in records"><for each="line in sale.lines">06:29
LordVan</for></for>06:29
LordVanif i copy paste06:29
LordVani am confused as to why.. any ideas?06:30
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton06:44
-!- Timitos(~kpreisler@2001:a61:578:ee01:762b:62ff:fe84:ed7e) has joined #tryton07:05
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton07:51
-!- rpit(~rpit@p200300c88f4cbb00cea2955fb3b32f1a.dip0.t-ipconnect.de) has joined #tryton08:03
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:34
pokoliLordVan: the error is because you have an open tag which is not closed.08:42
LordVanbut i closed both for ?08:44
LordVanso i do not understand why i get that error08:44
-!- Parviz(5f522825@95.82.40.37) has joined #tryton09:03
-!- Parviz80(5f523791@95.82.55.145) has joined #tryton09:10
-!- Parviz(5f523821@95.82.56.33) has joined #tryton09:17
pokoliLordVan: normaly is because there is another open tag which is not closed in order09:23
pokoliLordVan: you should check your template because the error is there for sure09:23
LordVanall i did was add taht 2nd for look to the template09:25
LordVani left it as-is from before09:25
LordVanso everything else is working09:25
LordVanand it works if i remove that again09:25
-!- Parviz(5f523821@95.82.56.33) has left #tryton09:28
-!- Parviz(5f523821@95.82.56.33) has joined #tryton09:30
-!- Parviz(5f523821@95.82.56.33) has left #tryton09:48
-!- jowan(5f523821@95.82.56.33) has joined #tryton09:51
-!- jowan(5f523821@95.82.56.33) has left #tryton09:55
-!- Parviz(5f523821@95.82.56.33) has joined #tryton09:58
-!- Parviz_H(5f523821@95.82.56.33) has joined #tryton10:31
Parviz_HHi All...10:46
Parviz_HAfter install tryton on gentoo " /etc/trytond " and " trytond.conf " not created by install process. this is normal? or Must be manually create?10:46
-!- mariomop(~quassel@190.188.44.80) has joined #tryton10:54
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton12:59
-!- nailyk(~nailyk@carbonfusion/co-admin/nailyk) has joined #tryton12:59
-!- udono(~udono@091-057-210-188.ip-addr.inexio.net) has joined #tryton12:59
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton13:04
-!- lucascastro(~lucascast@177-185-139-41.dynamic.isotelco.net.br) has joined #tryton14:04
LordVanthis is weird ..15:00
LordVan<for each="sale in records"><for each="line in sale.lines">15:00
LordVan<line.description>15:00
LordVan</for></for>15:00
LordVandoes not work15:00
LordVan(that is all in the whole template)15:00
LordVanAssertionError: No common ancestor found for opening and closing tag15:00
LordVanagain15:00
LordVanI see no reason why this fails ?15:01
pokoliLordVan: i think you should add a new line between both for loops15:02
LordVanyeah i was just testing that15:02
LordVanwhitespace works too15:03
LordVanweird though15:03
LordVanthink this is a bug with genshi?15:05
cedkLordVan: no it is because Relatorio tries to interpret the statement encoded in the text15:08
cedkand also it removes lines composed by only statement15:08
LordVanis that intentional?15:09
cedkso putting multiple statement on a line will drop some15:09
LordVanbut15:09
cedkLordVan: not intentional but it is the solution15:09
LordVan<if test="r.to.contact_mechanisms"><r.to.name><for each="c in r.to.contact_mechanisms"> <c.type>: <c.value></for></if></for>15:09
LordVanworked fine15:09
cedkLordVan: I do not know what you are writing, because it is not ODT syntax15:09
LordVanthat is what happens when i copy paste from libreoffice15:10
LordVanto hexchat15:10
LordVaneach < ..> is a placeholder test ofc15:10
cedkLordVan: this means nothing as odt format is more complex15:10
LordVantrue but the template worked until I added the extra for each="line in sale.lines"15:11
LordVanso you are saying15:12
LordVanI should put only one for statement per line?15:12
LordVancedk, i pretty much copied stuff from the standard sale template15:14
cedkit is the safest15:15
LordVanbut then I'D end up with a lot of empty lines in my finished document that I don'T need nor want .. hmm15:34
LordVanI will experiment a bit more15:34
LordVanthanks15:34
-!- thaneor1(~ldlc6@r167-61-52-193.dialup.adsl.anteldata.net.uy) has joined #tryton18:18
-!- thaneor(~acer8@r167-61-52-193.dialup.adsl.anteldata.net.uy) has joined #tryton19:40

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