IRC logs of #tryton for Tuesday, 2019-10-15

chat.freenode.net #tryton log beginning Tue 15 Oct 2019 12:00:01 AM CEST
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:10
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:10
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:10
-!- thaneor(~lenovo3@179.26.110.187) has joined #tryton03:10
-!- yangoon1(~mathiasb@139-162-142-46.pool.kielnet.net) has joined #tryton04:10
-!- hedererjs(~hedererjs@81.56.169.23) has joined #tryton06:10
-!- hedererjs(~hedererjs@81.56.169.23) has joined #tryton07:10
-!- Timitos(~kpreisler@2001:a61:5a4:b101:762b:62ff:fe84:ed7e) has joined #tryton08:10
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton08:10
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:10
-!- nicoe(~nicoe@2a02:2788:54:5a3:7e2a:31ff:fe5e:b25d) has joined #tryton10:10
-!- rpit(~rpit@h-213.61.178.154.host.de.colt.net) has joined #tryton10:10
-!- mariomop(~quassel@host224.201-252-171.telecom.net.ar) has joined #tryton12:10
-!- sebste(~sebste@x4db53a3e.dyn.telefonica.de) has joined #tryton15:10
sebsteGood day, all!15:10
sebsteI 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?15:10
cedksebste: insert in Office a page break at the beginning of the loop15:10
sebstecedk: thank you very much. I tried that, but it leaves me with a blank first page, which results in an empty lable.15:10
cedksebste: it should not so I guess the break is not correctly put15:10
sebstecedk: I had put it right after <for each="party in records">15:10
cedksebste: almost all Tryton report are designed this way15:10
sebstecedk: alright, thanks, then I wil investigate a little further where I screwed up.15:10
sebstecedk: 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 ;-)15:10
cedksebste: good to know that it helps15:10
mrichezhi, 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)15:10
cedkmrichez: put an empty label15:10
-!- thaneor1(~lenovo3@r179-24-57-251.dialup.adsl.anteldata.net.uy) has joined #tryton16:10
mrichezcedk: ok thanks!16:10
-!- buxy_bak(~rhertzog@163.172.191.75) has joined #tryton17:10
pokolisebste: I remember solving your pagination case by using enumaret and records and including the page break only if i > 017:10
pokoli*enumerate17:10
-!- buxy_bak(~rhertzog@163.172.191.75) has left #tryton17:10
-!- buxy(~rhertzog@163.172.191.75) has joined #tryton17:10
sebstepokoli: 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.17:10
pokolisebste: IIRC there was an option to show line breaks in libreoffice17:10
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton18:10
sebstepokoli: 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.18:10
sebsteIs there any info to read somewhere on how pricelists work?18:10
-!- hedererjs(~hedererjs@81.56.169.23) has joined #tryton18:10
cedksebste: we have only http://docs.tryton.org/projects/modules-sale-price-list/en/latest/18:10
cedkand http://docs.tryton.org/projects/modules-product-price-list/en/latest/18:10
sebstecedk: 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...18:10
cedksebste: yes you can enter numeric value and even python formula18:10
cedksebste: e.g. unit_price * 0.918:10
cedkto give 10% reduction18:10
sebstethanks19:10
cedksebste: if you have ideas to improve the document, patch is welcomed: http://www.tryton.org/contribute#develop19:10
sebsteYes, good idea. I look into it. Still struggle to understand everything.19:10
sebsteI what form would that patch have to be?19:10
sebsteor is it documented directely in the sourccode?19:10
cedksebste: it can be improving doc/index.rst or add missing help text19:10

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