chat.freenode.net #tryton log beginning Sat Jan 9 12:00:01 AM CET 2021 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 01:40 | |
-!- JanGB(~jan@ip5f5ab07c.dynamic.kabel-deutschland.de) has joined #tryton | 03:46 | |
-!- thaneor1(~ldlc6@r167-61-55-15.dialup.adsl.anteldata.net.uy) has joined #tryton | 05:17 | |
-!- JanGB(~jan@ip5f5ab07c.dynamic.kabel-deutschland.de) has joined #tryton | 07:49 | |
LordVan | is 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-console | 09:03 |
---|---|---|
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 09:44 | |
-!- JanGB(~jan@ip5f5ab07c.dynamic.kabel-deutschland.de) has joined #tryton | 09:52 | |
semarie | LordVan: yes you can feed trytond-console fro mstdin | 10:04 |
semarie | from stdin* | 10:04 |
semarie | I am using it this way as part as my update script (sync out-of-sync records + update chart of accounts after updating database) | 10:05 |
JanGB | Moin | 10:25 |
LordVan | ah nice | 10:25 |
LordVan | thanks semarie | 10:25 |
LordVan | hmm why doesn't openoffice open the sale.fodt file included with tryton (or rather as plain text?) | 10:45 |
-!- lucascastro(~lucascast@189.90.44.253.jupiter.com.br) has joined #tryton | 11:28 | |
-!- lucas_(~lucascast@177-185-133-174.dynamic.isotelco.net.br) has joined #tryton | 11:32 | |
LordVan | never midn that | 12:26 |
LordVan | anyway I was trying to create my own report for sale | 12:26 |
LordVan | is 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: | 12:27 |
LordVan | https://dpaste.org/Jkr9 | 12:28 |
LordVan | I only made a documetn with one placeholder for sale.full_number (as the standard template contains that too) | 12:28 |
LordVan | then added it to the reports | 12:28 |
LordVan | what am I missing? | 12:28 |
LordVan | ah wait | 12:47 |
LordVan | the xml file | 12:47 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 13:01 | |
LordVan | can I just use the same data/xml from the sale report to make my own sale report? | 13:02 |
LordVan | or do i still need to creaete the xml,.. ? | 13:02 |
cedk | LordVan: I do not know what you call data/xml? | 13:13 |
LordVan | sale_report.py/xml | 13:14 |
LordVan | or did i misunderstand something there | 13:14 |
LordVan | and i don't need to make my own for my report? | 13:15 |
LordVan | cedk, 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? | 13:18 |
LordVan | or do i need to create a report XMLf ile to ? | 13:21 |
LordVan | though 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 ... | 13:21 |
LordVan | which is .. weird | 13:25 |
LordVan | though i did not load any styles since i did not have any | 13:25 |
LordVan | hm | 13:25 |
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-reports | 13:26 |
cedk | LordVan: looks like you template is corrupted | 13:35 |
LordVan | my template is a new odt just created with one "word" written in it | 13:35 |
LordVan | and i did remove user data,.. as suggested in the docs | 13:36 |
LordVan | though what is causing me more problems even would be https://dpaste.org/Jkr9 | 13:36 |
LordVan | i don't understand why it doesn't know sale ? | 13:36 |
cedk | LordVan: because there is not sale variable | 13:37 |
JanGB | cedk: do you have a ready ear or are you on weekend chilling out? | 13:38 |
LordVan | cedk, yes. it seems i misunderstood something on how this works | 13:39 |
LordVan | oh jes it is weekend | 13:39 |
LordVan | sorry to bother you today cedk | 13:39 |
LordVan | i had lost track of time /d ays of the week | 13:39 |
JanGB | LordVan: :) pandemic week means schooling kids the weekdays and working on weekend | 13:40 |
LordVan | no kids .. i've just been working monday to sunday | 13:42 |
LordVan | (company officially closed, but i had to do lots of maintainance, server stuff setting up tryton , dolibar import, writing small modules,.. | 13:42 |
LordVan | so it comes down to .. I need this report working and i only just had time to look at reports haha | 13:42 |
LordVan | (i need it monday really) | 13:43 |
JanGB | LordVan: without knowing your report it looks like it is missing for "sale in records" or calling sale outside this loop | 13:45 |
LordVan | JanGB, i was just looking at the report that comes with it since I was suspecting something like that | 13:45 |
LordVan | just that i cannot open the sale.fdot on my openoffice so i have to read the xml (which is fine too) | 13:45 |
JanGB | first switsch to libreoffice like the devs of openoffice already have done :) | 13:46 |
LordVan | i prefer libre office | 13:47 |
LordVan | i just happen to have open office here | 13:47 |
LordVan | but i will swap as that is the only pc with openoffice | 13:49 |
LordVan | I just hardly use any office products privately as i prefer text files,.. haha | 13:49 |
LordVan | hmm this is odd | 14:15 |
LordVan | I just decided to go with the simplest part | 14:16 |
LordVan | just dded company.rec_name as a placeholder | 14:16 |
LordVan | but it doesn't know company either | 14:16 |
cedk | LordVan: no the top level of the report has only 'records' in the context | 14:46 |
cedk | when I say context it is the evaluation context | 14:47 |
LordVan | ah | 14:47 |
LordVan | but .. the standard sale template seems to access company.rec_name directly? | 14:47 |
cedk | LordVan: because the Report class inherit from CompanyReport | 14:50 |
LordVan | ah but if i make my own report for sale.sale and have company in there .. it does not know that? | 14:51 |
LordVan | cedk, 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) | 14:53 |
cedk | LordVan: the name is what links to the Report class | 14:59 |
LordVan | cedk, i assume you mean the internal name (that is "sale.sale" for the included report) ? | 15:09 |
cedk | yes | 15:14 |
LordVan | i used the same internal name as that report | 15:15 |
LordVan | the only difference is the file i uploaded and the report_name | 15:18 |
cedk | LordVan: why do not you just change the existing report? | 15:23 |
LordVan | well i was planning to | 15:26 |
LordVan | but i need a second report there anyway so I thought i just add it now | 15:26 |
LordVan | is there a problem with having two with the same name? | 15:26 |
cedk | LordVan: no | 15:28 |
LordVan | out of curiousity | 15:29 |
LordVan | i tried replacing the existing report | 15:29 |
LordVan | now it generates it | 15:29 |
LordVan | but not with the second one | 15:30 |
cedk | LordVan: I guess there is something wrong in the definition | 15:37 |
LordVan | hm | 15:38 |
LordVan | 238 t 2021-01-09 11:19:59.643667 1 \N verkauf test ir.action.report \N 2021-01-09 11:20:48.325602 1 | 15:40 |
LordVan | (from the DB dump) | 15:40 |
LordVan | 217 t 2021-01-03 14:52:22.309816 0 \N Sale ir.action.report \N 2021-01-03 14:52:22.309816 0 | 15:41 |
LordVan | the original one | 15:41 |
LordVan | the only differences are the uids | 15:42 |
LordVan | and the id | 15:42 |
cedk | LordVan: shoud also check ir_action_report | 16:05 |
-!- JanGB(~jan@ip5f5ab07c.dynamic.kabel-deutschland.de) has joined #tryton | 16:12 | |
LordVan | https://dpaste.org/be9n | 16:15 |
cedk | LordVan: it is strange | 16:26 |
LordVan | the only (relevant) difference is the module column | 16:27 |
-!- thaneor(~ldlc6@r167-61-45-55.dialup.adsl.anteldata.net.uy) has joined #tryton | 17:21 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 18:01 | |
-!- JanGB(~jan@ip5f5ab07c.dynamic.kabel-deutschland.de) has joined #tryton | 20:05 | |
-!- JanGB(~jan@ip5f5ab07c.dynamic.kabel-deutschland.de) has joined #tryton | 20:59 | |
-!- JanGB(~jan@ip5f5ab07c.dynamic.kabel-deutschland.de) has joined #tryton | 21:47 | |
-!- udono(~udono@091-057-210-188.ip-addr.inexio.net) has joined #tryton | 22:22 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!