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