chat.freenode.net #tryton log beginning Mon Jan 18 12:00:01 AM CET 2021 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:09 | |
-!- srgdts_(~srgdts@unaffiliated/srgdts) has joined #tryton | 02:08 | |
-!- manuelmrtz(~manuelmrt@24.138.196.136) has joined #tryton | 02:30 | |
LordVan | cedk, yes it is used for a - possible- part of the order name | 06:06 |
---|---|---|
LordVan | so that is fine then | 06:06 |
LordVan | and i have quite custom reports anyway | 06:06 |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 06:12 | |
-!- thaneor(~ldlc6@r167-61-85-41.dialup.adsl.anteldata.net.uy) has joined #tryton | 06:16 | |
LordVan | morning | 06:27 |
LordVan | i have a weird issue | 06:27 |
LordVan | i got my sale template with a for each="sale in records" .... /for | 06:27 |
LordVan | and that works | 06:27 |
LordVan | but when I add a for each="line in sale.lines" .. /for | 06:27 |
LordVan | right after the other for | 06:27 |
LordVan | (and the closing right at the end) | 06:28 |
LordVan | I get AssertionError: No common ancestor found for opening and closing tag | 06:29 |
LordVan | even without any other changes | 06:29 |
LordVan | <for each="sale in records"><for each="line in sale.lines"> | 06:29 |
LordVan | </for></for> | 06:29 |
LordVan | if i copy paste | 06:29 |
LordVan | i am confused as to why.. any ideas? | 06:30 |
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton | 06:44 | |
-!- Timitos(~kpreisler@2001:a61:578:ee01:762b:62ff:fe84:ed7e) has joined #tryton | 07:05 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton | 07:51 | |
-!- rpit(~rpit@p200300c88f4cbb00cea2955fb3b32f1a.dip0.t-ipconnect.de) has joined #tryton | 08:03 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 08:34 | |
pokoli | LordVan: the error is because you have an open tag which is not closed. | 08:42 |
LordVan | but i closed both for ? | 08:44 |
LordVan | so i do not understand why i get that error | 08:44 |
-!- Parviz(5f522825@95.82.40.37) has joined #tryton | 09:03 | |
-!- Parviz80(5f523791@95.82.55.145) has joined #tryton | 09:10 | |
-!- Parviz(5f523821@95.82.56.33) has joined #tryton | 09:17 | |
pokoli | LordVan: normaly is because there is another open tag which is not closed in order | 09:23 |
pokoli | LordVan: you should check your template because the error is there for sure | 09:23 |
LordVan | all i did was add taht 2nd for look to the template | 09:25 |
LordVan | i left it as-is from before | 09:25 |
LordVan | so everything else is working | 09:25 |
LordVan | and it works if i remove that again | 09:25 |
-!- Parviz(5f523821@95.82.56.33) has left #tryton | 09:28 | |
-!- Parviz(5f523821@95.82.56.33) has joined #tryton | 09:30 | |
-!- Parviz(5f523821@95.82.56.33) has left #tryton | 09:48 | |
-!- jowan(5f523821@95.82.56.33) has joined #tryton | 09:51 | |
-!- jowan(5f523821@95.82.56.33) has left #tryton | 09:55 | |
-!- Parviz(5f523821@95.82.56.33) has joined #tryton | 09:58 | |
-!- Parviz_H(5f523821@95.82.56.33) has joined #tryton | 10:31 | |
Parviz_H | Hi All... | 10:46 |
Parviz_H | After 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 #tryton | 10:54 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton | 12:59 | |
-!- nailyk(~nailyk@carbonfusion/co-admin/nailyk) has joined #tryton | 12:59 | |
-!- udono(~udono@091-057-210-188.ip-addr.inexio.net) has joined #tryton | 12:59 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 13:04 | |
-!- lucascastro(~lucascast@177-185-139-41.dynamic.isotelco.net.br) has joined #tryton | 14:04 | |
LordVan | this 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 |
LordVan | does not work | 15:00 |
LordVan | (that is all in the whole template) | 15:00 |
LordVan | AssertionError: No common ancestor found for opening and closing tag | 15:00 |
LordVan | again | 15:00 |
LordVan | I see no reason why this fails ? | 15:01 |
pokoli | LordVan: i think you should add a new line between both for loops | 15:02 |
LordVan | yeah i was just testing that | 15:02 |
LordVan | whitespace works too | 15:03 |
LordVan | weird though | 15:03 |
LordVan | think this is a bug with genshi? | 15:05 |
cedk | LordVan: no it is because Relatorio tries to interpret the statement encoded in the text | 15:08 |
cedk | and also it removes lines composed by only statement | 15:08 |
LordVan | is that intentional? | 15:09 |
cedk | so putting multiple statement on a line will drop some | 15:09 |
LordVan | but | 15:09 |
cedk | LordVan: not intentional but it is the solution | 15: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 |
LordVan | worked fine | 15:09 |
cedk | LordVan: I do not know what you are writing, because it is not ODT syntax | 15:09 |
LordVan | that is what happens when i copy paste from libreoffice | 15:10 |
LordVan | to hexchat | 15:10 |
LordVan | each < ..> is a placeholder test ofc | 15:10 |
cedk | LordVan: this means nothing as odt format is more complex | 15:10 |
LordVan | true but the template worked until I added the extra for each="line in sale.lines" | 15:11 |
LordVan | so you are saying | 15:12 |
LordVan | I should put only one for statement per line? | 15:12 |
LordVan | cedk, i pretty much copied stuff from the standard sale template | 15:14 |
cedk | it is the safest | 15:15 |
LordVan | but then I'D end up with a lot of empty lines in my finished document that I don'T need nor want .. hmm | 15:34 |
LordVan | I will experiment a bit more | 15:34 |
LordVan | thanks | 15:34 |
-!- thaneor1(~ldlc6@r167-61-52-193.dialup.adsl.anteldata.net.uy) has joined #tryton | 18:18 | |
-!- thaneor(~acer8@r167-61-52-193.dialup.adsl.anteldata.net.uy) has joined #tryton | 19:40 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!