IRC logs of #tryton for Thursday, 2013-03-28 #tryton log beginning Thu Mar 28 00:00:02 CET 2013
2013-03-28 09:14 -!- SISalp( has left #tryton
2013-03-28 10:26 <mrechte> Hello. In a report template, how to force a page break *between* records ?
2013-03-28 10:27 <cedk> mrechte: like you do for any opendocument
2013-03-28 10:32 <mrechte> cedk: if I insert a page break in the record loop, either I have an extra blank page at the beginning or at the end of the report. I meant page break between records.
2013-03-28 10:34 <cedk> mrechte: don't understand
2013-03-28 10:36 <mrechte> cedk: Page 1: record 1, Page 2: record 2, Page n: record n (assuming each record can fit on a single page)
2013-03-28 10:48 <udono> mrechte: hi, just insert a manual pagebreak befor closing the for loop.
2013-03-28 10:54 <mrechte> udono: thanks. Doing so produces an extra blank page at the end of the report
2013-03-28 10:57 <udono> mrechte: then yo need to place the pagebreak inside the for loop which iterates over the records you wanted to have on a single page.
2013-03-28 11:02 <mrechte> udono: I don't understand. Assuming I just have one for loop. If I break at the beginning of the loop, the first page is blank. If I break just before the end of the loop I get a blank page at the end of the report. In both cases I waste a page.
2013-03-28 11:04 <udono> mrechte: What exactly is your question? Does it work in general and you want to get rid of the extra pages?
2013-03-28 11:05 <mrechte> udono: yes exactly. Page break between records and not before or after records.
2013-03-28 11:08 <udono> mrechte: you could try to put the pagebreak inside an if/then clause. maybe lookup if the actual record is the last record in the loop.
2013-03-28 11:10 <cedk> mrechte: did you look at any report before asking ?
2013-03-28 11:10 <cedk> mrechte: they all loop with a page break inside
2013-03-28 11:11 <udono> cedk: I think mrechte asks how to get rid of the last pagebreak...
2013-03-28 11:12 <cedk> udono: did you see any last page break in the invoice ?
2013-03-28 11:12 <udono> cedk: usually not. But he has two loops. And IIUC the items of the inner loop should be separated also.
2013-03-28 11:14 <udono> cedk: IIUC it is like printing each invoice line on a separate page... mrechte?
2013-03-28 11:34 <prusglajotemis> Hello. I am trying to override list ordering, but something goes wrong.
2013-03-28 11:34 <prusglajotemis> I am overriding ordering (field "sequence") in Product - BOMs list (in product form) by newfield. I do these steps:
2013-03-28 11:34 <mrechte> cedk: of course yes, but only in the accounting module. I did not see any report with a similar case. It would be kind to explain how to attend this matter. Thanks.
2013-03-28 11:34 <mrechte> udono: how can one test for the first / last record in the loop ?
2013-03-28 11:35 <prusglajotemis> 1. inherit product.product_view_form and replace attribute view_ids="production.product-bom_view_list_sequence to view_ids="production.product-bom_view_list"
2013-03-28 11:35 <prusglajotemis> 2. "inherit production.product-bom_view_list" and add new field
2013-03-28 11:35 <prusglajotemis> 3. extend '' model and override ordering in __setup__ method (cls._order = [('newfield', 'ASC')])
2013-03-28 11:35 <prusglajotemis> after these steps I see newfield but ordering did not change and I don't see "product" field that is in production.product-bom_view_list
2013-03-28 11:36 <prusglajotemis> what i do wrong ?
2013-03-28 14:01 <mrechte> For the accounting module, I designed a "draft journal" report that hooks into the Financial / Entries menu. Shall I submit it on Roundup as a feature request ?
2013-03-28 17:37 <coeps> Hi, is there a not in statement for pyson opposite to Eval('state').in_(['a','b'])?
2013-03-28 17:39 <cedk> coeps: ~…
2013-03-28 17:40 <coeps> cedks: hehe, I was always wondering whats the effect of that sign :). Thanks
2013-03-28 17:41 <cedk> coeps: ~ == __invert__
2013-03-28 19:52 <coeps> is it possible to display the rec_name in a tree view?
2013-03-28 20:11 <coeps> ok, just don't use the underscore
2013-03-28 20:11 <cedk> coeps: it is a field like any else
2013-03-28 20:12 <coeps> cdek: I tried with underscore, so id didn't work. without is works. I just wrote the last line in case someone searches the irc_archives and finds the question.
2013-03-28 20:29 <cedk> coeps: no field can start with underscore
2013-03-28 21:02 <coeps> cdek: is there a place on the web, where the feature-plans (add remove of features like _inherit in 2.8) are documented? Who does the decisions, is it the foundation? Are it the core developers?
2013-03-28 21:25 <cedk> coeps: core dev
2013-03-28 21:26 <cedk> coeps: and it is discussed on ml like any changes
2013-03-28 21:28 <coeps> cdek: whats ml?

Generated by 2.17.3 by Marius Gedminas - find it at!