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 #tryton22:06
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:32
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:44
-!- thaneor(~lenovo3@179.26.110.187) has joined #tryton01:57
-!- yangoon1(~mathiasb@139-162-142-46.pool.kielnet.net) has joined #tryton02:22
-!- hedererjs(~hedererjs@81.56.169.23) has joined #tryton04:48
-!- hedererjs(~hedererjs@81.56.169.23) has joined #tryton05:18
-!- Timitos(~kpreisler@2001:a61:5a4:b101:762b:62ff:fe84:ed7e) has joined #tryton06:04
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton06:23
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:53
-!- nicoe(~nicoe@2a02:2788:54:5a3:7e2a:31ff:fe5e:b25d) has joined #tryton08:12
-!- rpit(~rpit@h-213.61.178.154.host.de.colt.net) has joined #tryton08:27
-!- mariomop(~quassel@host224.201-252-171.telecom.net.ar) has joined #tryton10:40
-!- sebste(~sebste@x4db53a3e.dyn.telefonica.de) has joined #tryton13:17
sebsteGood day, all!13:17
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?13:21
cedksebste: insert in Office a page break at the beginning of the loop13:22
sebstecedk: thank you very much. I tried that, but it leaves me with a blank first page, which results in an empty lable.13:24
cedksebste: it should not so I guess the break is not correctly put13:27
sebstecedk: I had put it right after <for each="party in records">13:30
cedksebste: almost all Tryton report are designed this way13:32
sebstecedk: alright, thanks, then I wil investigate a little further where I screwed up.13:33
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 ;-)13:35
cedksebste: good to know that it helps13:36
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)13:45
cedkmrichez: put an empty label13:57
-!- thaneor1(~lenovo3@r179-24-57-251.dialup.adsl.anteldata.net.uy) has joined #tryton14:00
mrichezcedk: ok thanks!14:00
-!- buxy_bak(~rhertzog@163.172.191.75) has joined #tryton15:10
pokolisebste: I remember solving your pagination case by using enumaret and records and including the page break only if i > 015:10
pokoli*enumerate15:10
-!- buxy_bak(~rhertzog@163.172.191.75) has left #tryton15:13
-!- buxy(~rhertzog@163.172.191.75) has joined #tryton15:14
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.15:21
pokolisebste: IIRC there was an option to show line breaks in libreoffice15:51
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton16:01
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.16:11
sebsteIs there any info to read somewhere on how pricelists work?16:19
-!- hedererjs(~hedererjs@81.56.169.23) has joined #tryton16:28
cedksebste: we have only http://docs.tryton.org/projects/modules-sale-price-list/en/latest/16:37
cedkand http://docs.tryton.org/projects/modules-product-price-list/en/latest/16:37
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...16:41
cedksebste: yes you can enter numeric value and even python formula16:48
cedksebste: e.g. unit_price * 0.916:48
cedkto give 10% reduction16:48
sebstethanks17:00
cedksebste: if you have ideas to improve the document, patch is welcomed: http://www.tryton.org/contribute#develop17:01
sebsteYes, good idea. I look into it. Still struggle to understand everything.17:03
sebsteI what form would that patch have to be?17:04
sebsteor is it documented directely in the sourccode?17:05
cedksebste: it can be improving doc/index.rst or add missing help text17:08

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