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 #tryton00:01
-!- srgdts_(~srgdts@unaffiliated/srgdts) has joined #tryton03:01
-!- manuelmrtz(~manuelmrt@24.138.196.136) has joined #tryton03:01
LordVancedk, yes it is used for a - possible- part of the order name07:01
LordVanso that is fine then07:01
LordVanand i have quite custom reports anyway07:01
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton07:01
-!- thaneor(~ldlc6@r167-61-85-41.dialup.adsl.anteldata.net.uy) has joined #tryton07:01
LordVanmorning07:01
LordVani have a weird issue07:01
LordVani got my sale template with a for each="sale in records" .... /for07:01
LordVanand that works07:01
LordVanbut when I add a for each="line in sale.lines" .. /for07:01
LordVanright after the other for07:01
LordVan(and the closing right at the end)07:01
LordVanI get AssertionError: No common ancestor found for opening and closing tag07:01
LordVaneven without any other changes07:01
LordVan<for each="sale in records"><for each="line in sale.lines">07:01
LordVan</for></for>07:01
LordVanif i copy paste07:01
LordVani am confused as to why.. any ideas?07:01
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton07:01
-!- Timitos(~kpreisler@2001:a61:578:ee01:762b:62ff:fe84:ed7e) has joined #tryton08:01
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton08:01
-!- rpit(~rpit@p200300c88f4cbb00cea2955fb3b32f1a.dip0.t-ipconnect.de) has joined #tryton09:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:01
pokoliLordVan: the error is because you have an open tag which is not closed.09:01
LordVanbut i closed both for ?09:01
LordVanso i do not understand why i get that error09:01
-!- Parviz(5f522825@95.82.40.37) has joined #tryton10:01
-!- Parviz80(5f523791@95.82.55.145) has joined #tryton10:01
-!- Parviz(5f523821@95.82.56.33) has joined #tryton10:01
pokoliLordVan: normaly is because there is another open tag which is not closed in order10:01
pokoliLordVan: you should check your template because the error is there for sure10:01
LordVanall i did was add taht 2nd for look to the template10:01
LordVani left it as-is from before10:01
LordVanso everything else is working10:01
LordVanand it works if i remove that again10:01
-!- Parviz(5f523821@95.82.56.33) has left #tryton10:01
-!- Parviz(5f523821@95.82.56.33) has joined #tryton10:01
-!- Parviz(5f523821@95.82.56.33) has left #tryton10:01
-!- jowan(5f523821@95.82.56.33) has joined #tryton10:01
-!- jowan(5f523821@95.82.56.33) has left #tryton10:01
-!- Parviz(5f523821@95.82.56.33) has joined #tryton10:01
-!- Parviz_H(5f523821@95.82.56.33) has joined #tryton11:01
Parviz_HHi All...11:01
Parviz_HAfter install tryton on gentoo " /etc/trytond " and " trytond.conf " not created by install process. this is normal? or Must be manually create?11:01
-!- mariomop(~quassel@190.188.44.80) has joined #tryton11:01
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton13:01
-!- nailyk(~nailyk@carbonfusion/co-admin/nailyk) has joined #tryton13:01
-!- udono(~udono@091-057-210-188.ip-addr.inexio.net) has joined #tryton13:01
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton14:01
-!- lucascastro(~lucascast@177-185-139-41.dynamic.isotelco.net.br) has joined #tryton15:01
LordVanthis is weird ..16:01
LordVan<for each="sale in records"><for each="line in sale.lines">16:01
LordVan<line.description>16:01
LordVan</for></for>16:01
LordVandoes not work16:01
LordVan(that is all in the whole template)16:01
LordVanAssertionError: No common ancestor found for opening and closing tag16:01
LordVanagain16:01
LordVanI see no reason why this fails ?16:01
pokoliLordVan: i think you should add a new line between both for loops16:01
LordVanyeah i was just testing that16:01
LordVanwhitespace works too16:01
LordVanweird though16:01
LordVanthink this is a bug with genshi?16:01
cedkLordVan: no it is because Relatorio tries to interpret the statement encoded in the text16:01
cedkand also it removes lines composed by only statement16:01
LordVanis that intentional?16:01
cedkso putting multiple statement on a line will drop some16:01
LordVanbut16:01
cedkLordVan: not intentional but it is the solution16:01
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>16:01
LordVanworked fine16:01
cedkLordVan: I do not know what you are writing, because it is not ODT syntax16:01
LordVanthat is what happens when i copy paste from libreoffice16:01
LordVanto hexchat16:01
LordVaneach < ..> is a placeholder test ofc16:01
cedkLordVan: this means nothing as odt format is more complex16:01
LordVantrue but the template worked until I added the extra for each="line in sale.lines"16:01
LordVanso you are saying16:01
LordVanI should put only one for statement per line?16:01
LordVancedk, i pretty much copied stuff from the standard sale template16:01
cedkit is the safest16:01
LordVanbut then I'D end up with a lot of empty lines in my finished document that I don'T need nor want .. hmm16:01
LordVanI will experiment a bit more16:01
LordVanthanks16:01
-!- thaneor1(~ldlc6@r167-61-52-193.dialup.adsl.anteldata.net.uy) has joined #tryton19:01
-!- thaneor(~acer8@r167-61-52-193.dialup.adsl.anteldata.net.uy) has joined #tryton20:01

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