IRC logs of #tryton for Saturday, 2021-01-09

chat.freenode.net #tryton log beginning Sat Jan 9 12:00:01 AM CET 2021
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton02:01
-!- JanGB(~jan@ip5f5ab07c.dynamic.kabel-deutschland.de) has joined #tryton04:01
-!- thaneor1(~ldlc6@r167-61-55-15.dialup.adsl.anteldata.net.uy) has joined #tryton06:01
-!- JanGB(~jan@ip5f5ab07c.dynamic.kabel-deutschland.de) has joined #tryton08:01
LordVanis it possible to feed trytond-console from stdin piping a script to it? -- alternatively i was just going to import my module and run the function from within trytond-console10:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton10:01
-!- JanGB(~jan@ip5f5ab07c.dynamic.kabel-deutschland.de) has joined #tryton10:01
semarieLordVan: yes you can feed trytond-console fro mstdin11:01
semariefrom stdin*11:01
semarieI am using it this way as part as my update script (sync out-of-sync records + update chart of accounts after updating database)11:01
JanGBMoin11:01
LordVanah nice11:01
LordVanthanks semarie11:01
LordVanhmm why doesn't openoffice open the sale.fodt file included with tryton (or rather as plain text?)11:01
-!- lucascastro(~lucascast@189.90.44.253.jupiter.com.br) has joined #tryton12:01
-!- lucas_(~lucascast@177-185-133-174.dynamic.isotelco.net.br) has joined #tryton12:01
LordVannever midn that13:01
LordVananyway I was trying to create my own report for sale13:01
LordVanis it not enough (for some first simple tests that do not require extra data) to  just create the odt file, upload it? I am getting a n error:13:01
LordVanhttps://dpaste.org/Jkr913:01
LordVanI only made a documetn with one placeholder for sale.full_number (as the standard template contains that too)13:01
LordVanthen added it to the reports13:01
LordVanwhat am I missing?13:01
LordVanah wait13:01
LordVanthe xml file13:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton14:01
LordVancan I just use the same data/xml from the sale report to make my own sale report?14:01
LordVanor do i still need to creaete the xml,.. ?14:01
cedkLordVan: I do not know what you call data/xml?14:01
LordVansale_report.py/xml14:01
LordVanor did i misunderstand something there14:01
LordVanand i don't need to make my own for my report?14:01
LordVancedk, from what I got from the docs I need to make my ODT template, upload it to tryton through the Admin UI part and then i can use it?14:01
LordVanor do i need to create a report XMLf ile to ?14:01
LordVanthough when i removed the placeholder fields and just put a normal odt without any fields it does make a file, but I get an error then from openoffice: Read-Error. Format error discovered in the file in sub-document sytles.xml at ...14:01
LordVanwhich is .. weird14:01
LordVanthough i did not load any styles since i did not have any14:01
LordVanhm14:01
LordVan(other than that i followed this : https://docs.tryton.org/projects/server/en/latest/topics/reports/index.html?highlight=reports#using-genshi-and-open-office-reports14:01
cedkLordVan: looks like you template is corrupted14:01
LordVanmy template is a new odt just created with one "word" written in it14:01
LordVanand i did remove user data,.. as suggested in the docs14:01
LordVanthough what is causing me more problems even would be https://dpaste.org/Jkr914:01
LordVani don't understand why it doesn't know sale ?14:01
cedkLordVan: because there is not sale variable14:01
JanGBcedk: do you have a ready ear or are you on weekend chilling out?14:01
LordVancedk, yes. it seems i misunderstood something on how this works14:01
LordVanoh jes it is weekend14:01
LordVansorry to bother you today cedk14:01
LordVani had lost track of time /d ays of the week14:01
JanGBLordVan: :) pandemic week means schooling kids the weekdays and working on weekend14:01
LordVanno kids .. i've just been working monday to sunday14:01
LordVan(company officially closed, but i had to do lots of maintainance, server stuff setting up tryton , dolibar import, writing small modules,..14:01
LordVanso it comes down to .. I need this report working and i only just had time to look at reports haha14:01
LordVan(i need it monday really)14:01
JanGBLordVan: without knowing your report it looks like it is missing for "sale in records" or calling sale outside this loop14:01
LordVanJanGB, i was just looking at the report that comes with it since I was suspecting something like that14:01
LordVanjust that i cannot open the sale.fdot on my openoffice so i have to read the xml (which is fine too)14:01
JanGBfirst switsch to libreoffice like the devs of openoffice already have done :)14:01
LordVani prefer libre office14:01
LordVani just happen to have open office here14:01
LordVanbut i will swap as that is the only pc with openoffice14:01
LordVanI just hardly use any office products privately as i prefer text files,.. haha14:01
LordVanhmm this is odd15:01
LordVanI just decided to go with the simplest part15:01
LordVanjust dded company.rec_name as a placeholder15:01
LordVanbut it doesn't know company either15:01
cedkLordVan: no the top level of the report has only 'records' in the context15:01
cedkwhen I say context it is the evaluation context15:01
LordVanah15:01
LordVanbut .. the standard sale template seems to access company.rec_name directly?15:01
cedkLordVan: because the Report class inherit from CompanyReport15:01
LordVanah but if i make my own report for sale.sale and have company in there .. it does not know that?15:01
LordVancedk, what I mean is when adding the report using the client I did supply exactly the same information the original sale report had (except for the name itself)15:01
cedkLordVan: the name is what links to the Report class15:01
LordVancedk, i assume you mean the internal name (that is "sale.sale" for the included report) ?16:01
cedkyes16:01
LordVani used the same internal name as that report16:01
LordVanthe only difference is the file i uploaded and the report_name16:01
cedkLordVan: why do not you just change the existing report?16:01
LordVanwell i was planning to16:01
LordVanbut i need a second report there anyway so I thought i just add it now16:01
LordVanis there a problem with having two with the same name?16:01
cedkLordVan: no16:01
LordVanout of curiousity16:01
LordVani tried replacing the existing report16:01
LordVannow it generates it16:01
LordVanbut not with the second one16:01
cedkLordVan: I guess there is something wrong in the definition16:01
LordVanhm16:01
LordVan238     t       2021-01-09 11:19:59.643667      1       \N      verkauf test    ir.action.report        \N      2021-01-09 11:20:48.325602      116:01
LordVan(from the DB dump)16:01
LordVan217     t       2021-01-03 14:52:22.309816      0       \N      Sale    ir.action.report        \N      2021-01-03 14:52:22.309816      016:01
LordVanthe original one16:01
LordVanthe only differences are the uids16:01
LordVanand the id16:01
cedkLordVan: shoud also check ir_action_report17:01
-!- JanGB(~jan@ip5f5ab07c.dynamic.kabel-deutschland.de) has joined #tryton17:01
LordVanhttps://dpaste.org/be9n17:01
cedkLordVan: it is strange17:01
LordVanthe only (relevant) difference is the module column17:01
-!- thaneor(~ldlc6@r167-61-45-55.dialup.adsl.anteldata.net.uy) has joined #tryton18:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton19:01
-!- JanGB(~jan@ip5f5ab07c.dynamic.kabel-deutschland.de) has joined #tryton21:01
-!- JanGB(~jan@ip5f5ab07c.dynamic.kabel-deutschland.de) has joined #tryton21:01
-!- JanGB(~jan@ip5f5ab07c.dynamic.kabel-deutschland.de) has joined #tryton22:01
-!- udono(~udono@091-057-210-188.ip-addr.inexio.net) has joined #tryton23:01

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