chat.freenode.net #tryton log beginning Thu Dec 27 00:00:01 CET 2018 | ||
-!- fsanchez(~fsanchez@201.240.5.242) has joined #tryton | 23:07 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:24 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 00:48 | |
-!- yangoon1(~mathiasb@i59F4D59F.versanet.de) has joined #tryton | 03:33 | |
-!- thaneor1(~lenovo3@179.26.31.137) has joined #tryton | 04:04 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 08:09 | |
-!- zmichal(~michal@chello085216186171.chello.sk) has joined #tryton | 09:43 | |
-!- csotelo(~csotelo@2001:1388:b4a:c507:a121:d064:675e:19b8) has joined #tryton | 13:32 | |
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton | 13:42 | |
LordVan | hi | 13:45 |
---|---|---|
LordVan | i was just trying out the timesheet module | 13:45 |
LordVan | and i have an annoying error, where somehow i got an activity (not usre about the name i am using it in german) seems to have gotten created (with the tryton windows client 5.0.3) that has no name,.. so it causes an error every time i search activities .. i cannot open the settings and delete it though | 13:47 |
LordVan | any idea how i can fix that? | 13:48 |
LordVan | -- going to look in the db manually in a min btw | 13:48 |
LordVan | ok i deleted it manually from the db and it works ok now | 13:50 |
LordVan | i did figure out what happened though | 13:51 |
LordVan | somehow it got a name and origin and that messed it up | 13:51 |
LordVan | from the db: | 13:51 |
LordVan | id | name | write_date | create_date | company | timesheet_end_date | origin | timesheet_start_date | write_uid | active | create_uid | 13:51 |
LordVan | ----+------+------------+----------------------------+---------+--------------------+--------------------+----------------------+-----------+--------+------------ | 13:51 |
LordVan | 1 | IT | | 2018-12-27 13:29:21.411028 | 1 | | production.work,-1 | | | t | 1 | 13:51 |
LordVan | 2 | IT | | 2018-12-27 13:29:48.623976 | 1 | | | | | t | 1 | 13:51 |
LordVan | line with id 1 crasehs the client | 13:51 |
LordVan | so maybe some checks that this doesn'T get saved would be good | 13:51 |
LordVan | I'll report it as a bug though not sure how to reproduce the entry .. i think it was just server/ui lag | 13:53 |
LordVan | https://bugs.tryton.org/issue7948 | 14:00 |
LordVan | gtg now but please let me know if you need anything else ( i can always re-insert the row to test again since it is a test install) | 14:00 |
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | 14:29 | |
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has left #tryton | 14:29 | |
-!- cryptic(~cryptic@142.196.139.17) has joined #tryton | 15:13 | |
-!- thaneor(~lenovo3@179.26.158.92) has joined #tryton | 16:07 | |
-!- fsanchez(~fsanchez@201.240.5.150) has joined #tryton | 16:40 | |
-!- thaneor1(~lenovo3@179.26.9.109) has joined #tryton | 17:02 | |
-!- thaneor(~lenovo3@179.26.21.254) has joined #tryton | 17:20 | |
-!- rpit(~rpit@p5B22B44D.dip0.t-ipconnect.de) has joined #tryton | 17:41 | |
csotelo | Hi all, is there any documentation to formar report on relatorio? as exmaple.. format a date or number in a document template, thanks! | 17:58 |
cedk | csotelo: you can use python stdlib | 18:05 |
cedk | https://docs.python.org/3.6/library/datetime.html#strftime-strptime-behavior | 18:05 |
csotelo | nice! | 18:05 |
cedk | csotelo: otherwise Tryton provides on ir.lang and strftime method which is threadsafe and use parameters from the language | 18:06 |
csotelo | I see, thanks! | 18:08 |
csotelo | SOmething like {% for line in lines %}${line.field.strftime('%d/%m/%Y')}{% end %} | 18:09 |
csotelo | where field is a datetime field | 18:09 |
-!- thaneor(~lenovo3@r186-48-53-61.dialup.adsl.anteldata.net.uy) has joined #tryton | 18:25 | |
-!- thaneor(~lenovo3@r186-48-53-61.dialup.adsl.anteldata.net.uy) has joined #tryton | 18:27 | |
-!- thaneor1(~lenovo3@179.26.9.8) has joined #tryton | 18:41 | |
csotelo | cedk, I have written something like ${'{message: >32}'.format(message=line.C04)} and the result was something like " (u'01',)", the string was put into something like a list | 18:45 |
csotelo | by the way, I am renderizing txt reports | 18:47 |
csotelo | any suggest? please | 19:04 |
-!- thaneor(~lenovo3@r167-56-172-148.dialup.adsl.anteldata.net.uy) has joined #tryton | 19:16 | |
-!- reipes(~reipes@146-241-2-234.dyn.eolo.it) has joined #tryton | 19:22 | |
-!- csotelo(~csotelo@161.132.198.34) has joined #tryton | 20:15 | |
-!- csotelo_(~csotelo@2800:4b0:4405:2be7:22d8:575b:48c0:93a9) has joined #tryton | 20:58 | |
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton | 21:01 | |
-!- rpit(~rpit@p5B22B44D.dip0.t-ipconnect.de) has joined #tryton | 21:01 | |
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton | 21:14 | |
-!- csotelo(~csotelo@2800:4b0:4405:2be7:22d8:575b:48c0:93a9) has joined #tryton | 21:49 | |
csotelo | hi all, on a txt format report template, I have written something like ${'{message: >32}'.format(message=line.C04)} and the result was something like " (u'01',)", the string was put into something like a list, but if use something like line.C04, the text just appear as "01", I mean, when I try to apply a format, the text appear on a list on the report result render. Thanks a lot | 22:06 |
csotelo | on any suggest! | 22:07 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 22:26 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!