IRC logs of #tryton for Thursday, 2011-12-29 #tryton log beginning Thu Dec 29 00:00:01 CET 2011
2011-12-29 02:34 -!- yangoon_rm( has left #tryton
2011-12-29 10:41 <sisalp> hello, seems tryton self rotates its log file. I cannot find a parameter in conf file to block this. is that true ?
2011-12-29 10:48 <yangoon> sisalp true
2011-12-29 10:48 <nicoe> sisalp: indeed, there is no config for this
2011-12-29 10:54 <bechamel> sisalp: unset "logfile" param in config and redirect the output with a >
2011-12-29 10:57 <sisalp> thank you for this confirmation. For me it is unconsistent to auto-rotate if the log file was specified at start command
2011-12-29 10:58 <sisalp> bechamel: thank you, i'll do so, but how do you unset logfile ?
2011-12-29 10:58 <sisalp> is there a default one created somewhere in this case ?
2011-12-29 10:59 <bechamel> sisalp: good question
2011-12-29 11:00 <bechamel> sisalp: just remove it from the config file
2011-12-29 11:01 <sisalp> bechamel: this is easy
2011-12-29 11:01 <bechamel> sisalp: you are not the first to talk about it
2011-12-29 11:04 <sisalp> bechamel: no default is created if not declared in cfg ?
2011-12-29 11:05 <bechamel> sisalp: I don't think
2011-12-29 11:05 <sisalp> sisalp: bechamel: a solution seems to be /dev/null :-(
2011-12-29 11:06 <bechamel> sisalp: the default config file comes with "#logfile = False"
2011-12-29 11:07 <bechamel> sisalp: stdout is good imo
2011-12-29 11:08 <sisalp> yangoon: nicoe: bechamel: thank you
2011-12-29 17:32 -!- bdunnette(~dunn0172@2001:468:1910:3c06:a11:96ff:fe29:26d4) has left #tryton
2011-12-29 18:12 <jcm> to override invoice.odt, should I use the snipets of xml shown here: in a custom xml in my own module, and add it to my ?
2011-12-29 18:20 <cedk> jcm: yes
2011-12-29 18:21 <jcm> thks. Can I replace header_a4.odt the same way ? or should I keep its name ?
2011-12-29 18:22 <cedk> jcm: I think you can create your own
2011-12-29 18:22 <cedk> jcm: but just for 1 report, it is not very useful
2011-12-29 18:25 <jcm> cedk: no, I want to change header and styles for all
2011-12-29 18:26 <cedk> jcm: then there is no simple way, you must override each report
2011-12-29 18:26 <cedk> jcm: that's why I proposed to remove style as finnaly it is not useful
2011-12-29 18:29 <jcm> ok, I thought it was a future improvement... so it's better to set header in each report ?
2011-12-29 18:29 <jcm> in what cases does invoice.odt generate many invoices and not only one ?
2011-12-29 18:33 <cedk> jcm: normally never
2011-12-29 18:33 <cedk> jcm: there is a wizard that makes report engine run one by one
2011-12-29 18:36 <jcm> so the <for each="invoice in objects"> on top of invoice.odt is useless ?
2011-12-29 18:37 <jcm> it's not easy to use LibreOffice automatic page styles and headers for multipages docs with a multidoc generation
2011-12-29 18:40 <cedk> jcm: it is not useless because you get a list of 1 invoice
2011-12-29 18:40 <cedk> jcm: I don't know about automatic page styles
2011-12-29 18:43 <jcm> ok, I'm still more familiar with pagesetting than with tryton's objects ;-)
2011-12-29 18:53 <jcm> cedk: surely ther is some sort of caching not described in : I cannot see the reports I designed
2011-12-29 18:54 <cedk> jcm: for already opened invoice, it is stored in the database
2011-12-29 18:54 <jcm> even when invoice is still in draft state ?
2011-12-29 18:54 <jcm> strange, I've learned not to store binary objects in db :/
2011-12-29 18:58 <cedk> jcm: then you did not correctly replace the report
2011-12-29 18:59 <cedk> jcm: then why is there a binary type of column? :-)
2011-12-29 19:01 <jcm> i suspect the line <field name="report">mymodule/invoice.odt</field>
2011-12-29 19:01 <jcm> is the prefix mymodule/ necessary ?
2011-12-29 19:04 <cedk> jcm: yes it must be the name of your module
2011-12-29 19:09 <jcm> so I have no more idea... I added 'reports.xml' in the xml section of mymodule/, and copied the docs snippets of xml in a reports.xml within <tryton><data> tags
2011-12-29 19:09 <jcm> is there a way to have the server output some more info? it doesn't complain
2011-12-29 19:10 <cedk> jcm: did you update the module?
2011-12-29 19:12 <jcm> from the db you mean ?
2011-12-29 19:12 <jcm> er, from the client ?
2011-12-29 19:12 <jcm> ah, no I always forget this
2011-12-29 19:13 <jcm> fantastic, I can work with this template! I even see the rebate added on lines -:)
2011-12-29 19:14 <cedk> jcm: always run: trytond -d database -u module when changing XML files

Generated by 2.17.3 by Marius Gedminas - find it at!