chat.freenode.net #tryton log beginning Tue 15 Oct 2019 12:00:01 AM CEST | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 22:06 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 22:32 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:44 | |
-!- thaneor(~lenovo3@179.26.110.187) has joined #tryton | 01:57 | |
-!- yangoon1(~mathiasb@139-162-142-46.pool.kielnet.net) has joined #tryton | 02:22 | |
-!- hedererjs(~hedererjs@81.56.169.23) has joined #tryton | 04:48 | |
-!- hedererjs(~hedererjs@81.56.169.23) has joined #tryton | 05:18 | |
-!- Timitos(~kpreisler@2001:a61:5a4:b101:762b:62ff:fe84:ed7e) has joined #tryton | 06:04 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 06:23 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:53 | |
-!- nicoe(~nicoe@2a02:2788:54:5a3:7e2a:31ff:fe5e:b25d) has joined #tryton | 08:12 | |
-!- rpit(~rpit@h-213.61.178.154.host.de.colt.net) has joined #tryton | 08:27 | |
-!- mariomop(~quassel@host224.201-252-171.telecom.net.ar) has joined #tryton | 10:40 | |
-!- sebste(~sebste@x4db53a3e.dyn.telefonica.de) has joined #tryton | 13:17 | |
sebste | Good day, all! | 13:17 |
---|---|---|
sebste | I am playing a bit with reports for a lable printer. I want to generate a document with a page for each record that is selected. So I want to insert a page break at the end ot my loop if there is a record afterwards. Is there a simple and elegant way in the template to test if there is another record? Something like a "hasnext" function or so? | 13:21 |
cedk | sebste: insert in Office a page break at the beginning of the loop | 13:22 |
sebste | cedk: thank you very much. I tried that, but it leaves me with a blank first page, which results in an empty lable. | 13:24 |
cedk | sebste: it should not so I guess the break is not correctly put | 13:27 |
sebste | cedk: I had put it right after <for each="party in records"> | 13:30 |
cedk | sebste: almost all Tryton report are designed this way | 13:32 |
sebste | cedk: alright, thanks, then I wil investigate a little further where I screwed up. | 13:33 |
sebste | cedk: btw, I was watching your unconference new features demo on YT. It was one of the most helpful things to understand a lot of tryton concepts so far ;-) | 13:35 |
cedk | sebste: good to know that it helps | 13:36 |
mrichez | hi, in xml view with colspan=4, is there a way to have a blank space and then a label and field (so having label and field aligned on the right instead on the left) | 13:45 |
cedk | mrichez: put an empty label | 13:57 |
-!- thaneor1(~lenovo3@r179-24-57-251.dialup.adsl.anteldata.net.uy) has joined #tryton | 14:00 | |
mrichez | cedk: ok thanks! | 14:00 |
-!- buxy_bak(~rhertzog@163.172.191.75) has joined #tryton | 15:10 | |
pokoli | sebste: I remember solving your pagination case by using enumaret and records and including the page break only if i > 0 | 15:10 |
pokoli | *enumerate | 15:10 |
-!- buxy_bak(~rhertzog@163.172.191.75) has left #tryton | 15:13 | |
-!- buxy(~rhertzog@163.172.191.75) has joined #tryton | 15:14 | |
sebste | pokoli: That is what I was looking for, thanks! Funny thin is, In the meantime I got it to work with the pagebreak at the beginning of the loop. But I don't really know why, as it is hard to see in libreoffice. | 15:21 |
pokoli | sebste: IIRC there was an option to show line breaks in libreoffice | 15:51 |
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton | 16:01 | |
sebste | pokoli: yes, apparently it is important where I put it and if there is alinepreak before or after, which is not shown differently. I seem to get along now. | 16:11 |
sebste | Is there any info to read somewhere on how pricelists work? | 16:19 |
-!- hedererjs(~hedererjs@81.56.169.23) has joined #tryton | 16:28 | |
cedk | sebste: we have only http://docs.tryton.org/projects/modules-sale-price-list/en/latest/ | 16:37 |
cedk | and http://docs.tryton.org/projects/modules-product-price-list/en/latest/ | 16:37 |
sebste | cedk: yes, that was what I found. Not too comprehensive, though. I am struggling to enter a price in the product_price_list there is only a field for a formula to calculate it from unit_price, I guess (is that the listprice of the product?). I was wondering if I could just enter a numeric value... | 16:41 |
cedk | sebste: yes you can enter numeric value and even python formula | 16:48 |
cedk | sebste: e.g. unit_price * 0.9 | 16:48 |
cedk | to give 10% reduction | 16:48 |
sebste | thanks | 17:00 |
cedk | sebste: if you have ideas to improve the document, patch is welcomed: http://www.tryton.org/contribute#develop | 17:01 |
sebste | Yes, good idea. I look into it. Still struggle to understand everything. | 17:03 |
sebste | I what form would that patch have to be? | 17:04 |
sebste | or is it documented directely in the sourccode? | 17:05 |
cedk | sebste: it can be improving doc/index.rst or add missing help text | 17:08 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!