IRC logs of #tryton for Friday, 2019-03-22

chat.freenode.net #tryton log beginning Fri Mar 22 00:00:02 CET 2019
-!- shard__(~shard@223.74.176.48) has joined #tryton23:44
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:12
-!- csotelo_(~csotelo@181.67.16.48) has joined #tryton01:34
-!- yangoon(~mathiasb@i59F4F5B0.versanet.de) has joined #tryton03:04
-!- lucascastro(~lucascast@177-185-139-253.isotelco.net.br) has joined #tryton03:24
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton06:09
-!- thaneor(~lenovo3@179.26.52.255) has joined #tryton06:35
-!- piyfy(~cj@178.197.227.230) has joined #tryton07:03
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton07:04
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton07:24
-!- rpit(~rpit@p200300C88F307400C2CDE6C91283B9CF.dip0.t-ipconnect.de) has joined #tryton07:37
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton07:51
-!- JanGB(~jan@2a02:810a:1440:64da:ad81:6d9e:2ef4:b78) has joined #tryton08:26
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:36
-!- scrapper(~scrapper@mail.alpmine.com) has joined #tryton09:06
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton09:17
-!- rpit(~rpit@p4FFB7256.dip0.t-ipconnect.de) has joined #tryton09:31
mrichezhi, is there a way a timedelta field to be displayed only in days ?11:00
pokolimrichez: you can use a converter with 0 weeks, 0 months and 0 years11:01
pokolimrichez: see http://docs.tryton.org/projects/server/en/latest/ref/models/fields.html?highlight=timedelta#trytond.model.fields.TimeDelta.converter11:01
mrichezpokoli: i saw converter but don't know how to use? (and don't see any example)11:02
pokolimrichez: you must define a value on the user context which sets de conversion between each componenet of the timedelta11:06
pokolimrichez: company_work_time module is an example: http://hg.tryton.org/modules/company_work_time/file/5db128606cf4/res.py11:06
pokolimrichez: normally we use company_work_time to express the timedelta depending the company values11:07
mrichezpokoli: ok, will look that. Thanks!11:08
-!- mariomop(~quassel@host136.201-253-196.telecom.net.ar) has joined #tryton11:34
-!- SimAlbertiBeltra(sim6matrix@gateway/shell/matrix.org/x-lqqdkhvuvcfbekxk) has joined #tryton12:21
-!- csotelo(~csotelo@181.67.16.48) has joined #tryton12:54
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton13:04
-!- csotelo_(~csotelo@181.67.16.48) has joined #tryton13:13
-!- lukio(~lukio@186.143.135.9) has joined #tryton13:20
mrichezcould a report be available only on a specific form ? or it is always on all the forms linked to the model ?13:29
mrichezi need a report on a relate view13:29
pokolimrichez: it sounds strange to use a report on a relate view, a report should be always on the print option13:38
pokolimrichez: IIRC there was some option on the ir.action model to restrict it's usage depending on the context value13:39
mrichezpokoli: report will be on the print option but only available for this specific relate view13:39
pokolimrichez: ok, this sounds more reasonable :)13:40
mrichezpokoli: but it seems report is available for all forms linked to the model... so wondering if there's an option/attribute to link the report on a window13:41
-!- shadow98(uid236862@gateway/web/irccloud.com/x-ifyjnpxevvrqwqle) has joined #tryton14:05
pokolimrichez: i think this is not possible14:59
pokolimrichez: btw if the report is linked to the model, it should be available from all options14:59
mrichezpokoli: :(15:00
mrichezpokoli: thanks anyway...15:03
-!- shard_(~shard@223.74.176.48) has joined #tryton16:06
-!- udono1(~udono@183-058-210-188.ip-addr.inexio.net) has joined #tryton16:45
-!- udono(~udono@183-058-210-188.ip-addr.inexio.net) has joined #tryton16:48
-!- JanGB(~jan@ip5f5ab04e.dynamic.kabel-deutschland.de) has joined #tryton16:50
-!- thaneor(~lenovo3@179.26.60.46) has joined #tryton18:39
-!- elandy(~andrespol@200.50.173.5) has joined #tryton19:04
-!- andrespoliti(~andrespol@200.50.173.5) has joined #tryton19:07
andrespolitihi, have you ever used xlwt to create an xls file and set it to a binary field?19:07
andrespolitithe problem is that xlwt writes directly to disk, or it writes to a stringIO, which is not json serializable19:13
-!- andrespoliti_(~andrespol@200.50.173.5) has joined #tryton20:06
cedkandrespoliti_: cast the content with fields.Binary.cast20:22
-!- shard_(~shard@2409:8a55:d23f:8560:79b8:c451:9c97:5cc0) has joined #tryton20:29
-!- andrespoliti(~andrespol@200.50.173.5) has joined #tryton20:30
andrespolitithe problem is it returns protocol error because i'm trying to send a binary from the client to the server20:30
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton21:00
-!- shard_(~shard@223.74.176.48) has joined #tryton21:03
-!- shard__(~shard@2409:8a55:d232:790:d3d1:e3f7:8c:77c4) has joined #tryton21:10
-!- shard__(~shard@2409:8a55:d232:790:4baf:75e7:2d11:893) has joined #tryton22:18

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