IRC logs of #tryton for Tuesday, 2019-10-15 #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@ has joined #tryton03:10
-!- yangoon1( has joined #tryton04:10
-!- hedererjs(~hedererjs@ has joined #tryton06:10
-!- hedererjs(~hedererjs@ has joined #tryton07:10
-!- Timitos(~kpreisler@2001:a61:5a4:b101:762b:62ff:fe84:ed7e) has joined #tryton08:10
-!- mrichez( 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( has joined #tryton10:10
-!- mariomop( has joined #tryton12:10
-!- sebste( 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( has joined #tryton16:10
mrichezcedk: ok thanks!16:10
-!- buxy_bak(~rhertzog@ 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
-!- buxy_bak(~rhertzog@ has left #tryton17:10
-!- buxy(~rhertzog@ 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@ has joined #tryton18:10
cedksebste: we have only
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
cedksebste: if you have ideas to improve the document, patch is welcomed:
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 2.16.0 by Marius Gedminas - find it at!