IRC logs of #tryton for Thursday, 2016-07-14

chat.freenode.net #tryton log beginning Thu Jul 14 00:00:01 CEST 2016
-!- JosDzG(~Thunderbi@189.195.156.226) has joined #tryton01:58
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton03:57
-!- nicoe(~nicoe@103.240.242.247) has joined #tryton04:06
-!- nicoe(~nicoe@103.240.242.247) has joined #tryton06:16
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:17
cedkpokoli: you should not use tip in the hg url when reporting an issue because it is not a fixed link06:58
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton08:07
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:14
-!- resteve(~resteve@185.73.168.7) has joined #tryton08:21
-!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton08:35
-!- tbruyere(~smuxi@mail.saluc.com) has joined #tryton08:54
-!- xcodinas(~xcodinas@cli-5b7e4c02.wholesale.adamo.es) has joined #tryton08:55
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton08:55
-!- aasnan(~angel@48.red-83-45-194.dynamicip.rima-tde.net) has joined #tryton09:07
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton10:36
-!- nicoe(~nicoe@103.240.242.247) has joined #tryton10:38
-!- udono(~udono@tmo-098-254.customers.d1-online.com) has joined #tryton10:46
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton11:43
-!- nicoe(~nicoe@103.240.242.247) has joined #tryton12:19
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton12:23
-!- mariomop(~quassel@181.80.1.144) has joined #tryton12:59
-!- trscheidig(c8752768@gateway/web/freenode/ip.200.117.39.104) has joined #tryton13:32
-!- trscheidig(c8752768@gateway/web/freenode/ip.200.117.39.104) has left #tryton13:44
-!- trscheidig(c8752768@gateway/web/freenode/ip.200.117.39.104) has joined #tryton13:47
trscheidighi all13:56
pokolihi trscheidig, welcome to the channel :-)14:00
trscheidigthanks14:11
trscheidigI have a question14:12
trscheidigI have a module with 2 models --> practicas and practicas.line (this related to practicas)14:14
trscheidigin the view all ok, but when I print a report with the field from practicas and practicas.line it gives me an error14:15
trscheidigobject line not found14:16
pokolitrscheidig: could you upload a pastebin (or similar) with the full traceback of the error?14:16
trscheidigyes14:16
trscheidigwait a second14:16
pokoliACTION waits a second, or two, or more :-)14:17
trscheidigTraceback (most recent call last):   File "/trytond/protocols/jsonrpc.py", line 162, in _marshaled_dispatch     response['result'] = dispatch_method(method, params)   File "/trytond/protocols/jsonrpc.py", line 191, in _dispatch     res = dispatch(*args)   File "/trytond/protocols/dispatcher.py", line 162, in dispatch     result = rpc.result(meth(*c_args, **c_kwargs))   File "/trytond/report/report.py", line 143, in execute     cl14:18
trscheidigwait the paste is incomplete14:19
pokolitrscheidig: pealse use pastebin.com (or some similar service)14:21
trscheidighow can I copy paste the entire text? or need to paste fragments14:21
pokolitrscheidig: http://pastebin.com/14:21
pokolitrscheidig: you paste ther and then copy the given url in the channel14:21
trscheidigI use fedora 23 , need I download the pastebin14:21
pokolitrscheidig: you can use a browser to access the website14:23
trscheidigyes I dont use this before14:24
trscheidigI will try14:24
trscheidigthe url is : http://pastebin.com/jb4UM59F is this correct14:26
trscheidighere is the code from the python file http://pastebin.com/piPEmhqm14:29
pokolitrscheidig: from the python code I think you should use practica_line attribute to access the related lines via one2many14:32
trscheidigin ODT report file?14:33
trscheidigI am new to Tryton, and its a bit dificult, hehe I am learning with trial&error14:36
trscheidigmy english is not wery good, I am from Argentina, and my language is spanish14:37
trscheidigIt gives me the same error -> undefined error practicas_line not defined14:41
trscheidighow can I access the related model in the .odt file?14:42
trscheidigIn the xml file the model referenced are "practicas" is this ok.14:44
-!- udono(~udono@tmo-098-254.customers.d1-online.com) has joined #tryton14:56
pokolitrscheidig: you can join the #tryton-es channel, and ask there in spanish14:57
pokolitrscheidig: on your report you should define a variable for each record, and then you can acess this variable14:58
pokolitrscheidig: once you have the variable poiting to record you can access all its relations14:58
pokolitrscheidig: so if your record points to a gnuhealth.health_practicas instance, record.practica_line will give you all the lines14:58
trscheidigOk, I think I found the solution, I forgot to use the for objects in ...... etc I found the solution in the original ODT file, haha15:00
trscheidigI will try this15:00
trscheidigis there a sample about that I can consult, I dont have found advanced samples15:04
trscheidigin Internet, only the hellow world sample and 2 or 3 samples more15:05
pokolitrscheidig: You can use the account_invoice report as example if you want http://hg.tryton.org/modules/account_invoice/file/tip/invoice.odt15:06
trscheidigthanks pokoli (in spanish I will say: muchas gracias por tu ayuda)15:09
pokolitrscheidig: you are welcome (de nada :P)15:10
trscheidigI understand english but writing is a bit more dificult, I wil learn here!!, hahah15:10
trscheidiggracias,15:11
-!- udono(~udono@tmo-098-254.customers.d1-online.com) has joined #tryton15:14
-!- trscheidig(c8752768@gateway/web/freenode/ip.200.117.39.104) has left #tryton15:24
-!- xcodinas(~xcodinas@cli-5b7e4c02.wholesale.adamo.es) has joined #tryton15:40
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton15:40
-!- xcodinas(~xcodinas@91.126.76.2) has joined #tryton15:44
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton15:44
-!- resteve(~resteve@185.73.168.7) has joined #tryton15:53
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton15:56
-!- xcodinas(~xcodinas@cli-5b7e4c02.wholesale.adamo.es) has joined #tryton16:03
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton16:03
-!- trscheidig(c8752768@gateway/web/freenode/ip.200.117.39.104) has joined #tryton16:04
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton16:18
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton16:19
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton16:21
-!- JosDzG(~Thunderbi@189.195.156.226) has joined #tryton16:44
-!- shrox(shrox@nat/iiit/x-gjdtzuglhnejdtyp) has joined #tryton16:52
-!- shrox(shrox@nat/iiit/x-gjdtzuglhnejdtyp) has left #tryton16:52
-!- shrox(shrox@nat/iiit/x-gjdtzuglhnejdtyp) has joined #tryton16:52
-!- nicoe(~nicoe@110-170-213-71.static.asianet.co.th) has joined #tryton16:52
-!- bvillasanti(~bvillasan@138.117.21.154) has joined #tryton17:23
-!- prayashm(~prayashm@45.251.36.7) has joined #tryton17:24
-!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton17:24
-!- JosDzG(~Thunderbi@189.195.156.226) has joined #tryton17:47
-!- lukio(~lukio@186.18.228.139) has joined #tryton18:55
lukiohi, is there any paper that talks how to optimize postgresql for tryton?18:58
cedklukio: I guess any paper that talk about general pg optimization18:59
lukiocedk: thanks!19:00
cedklukio: but it is quite rare that optimization is needed19:05
cedklukio: what is your problem?19:05
-!- damien(9fcb74e4@gateway/web/freenode/ip.159.203.116.228) has joined #tryton19:06
-!- nicoe(~nicoe@110-170-213-71.static.asianet.co.th) has joined #tryton19:09
-!- giesen(~ggiesen@2001:19f0:0:1019:5400:ff:fe25:bda6) has joined #tryton19:42
lukiocedk: we are building a server to sell tryton as a service, that's why i would like to know which parameters i should tweak (if need it).19:47
cedklukio: I think you will have to check frequently all the long19:55
-!- caleb_(~caleb@bb-66-63-86-50.static.gwi.net) has left #tryton20:58
-!- lukio(~lukio@186.18.228.139) has left #tryton22:28

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!