IRC logs of #tryton for Thursday, 2018-12-27

chat.freenode.net #tryton log beginning Thu Dec 27 00:00:01 CET 2018
-!- fsanchez(~fsanchez@201.240.5.242) has joined #tryton23:07
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:24
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:48
-!- yangoon1(~mathiasb@i59F4D59F.versanet.de) has joined #tryton03:33
-!- thaneor1(~lenovo3@179.26.31.137) has joined #tryton04:04
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:09
-!- zmichal(~michal@chello085216186171.chello.sk) has joined #tryton09:43
-!- csotelo(~csotelo@2001:1388:b4a:c507:a121:d064:675e:19b8) has joined #tryton13:32
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton13:42
LordVanhi13:45
LordVani was just trying out the timesheet module13:45
LordVanand 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 though13:47
LordVanany idea how i can fix that?13:48
LordVan-- going to look in the db manually in a min btw13:48
LordVanok i deleted it manually from the db and it works ok now13:50
LordVani did figure out what happened though13:51
LordVansomehow it got a name and origin and that messed it up13:51
LordVanfrom the db:13:51
LordVan id | name | write_date |        create_date         | company | timesheet_end_date |       origin       | timesheet_start_date | write_uid | active | create_uid13:51
LordVan----+------+------------+----------------------------+---------+--------------------+--------------------+----------------------+-----------+--------+------------13:51
LordVan  1 | IT   |            | 2018-12-27 13:29:21.411028 |       1 |                    | production.work,-1 |                      |           | t      |          113:51
LordVan  2 | IT   |            | 2018-12-27 13:29:48.623976 |       1 |                    |                    |                      |           | t      |          113:51
LordVanline with id 1 crasehs the client13:51
LordVanso maybe some checks that this doesn'T get saved would be good13:51
LordVanI'll report it as a bug though not sure how to reproduce the entry .. i think it was just server/ui lag13:53
LordVanhttps://bugs.tryton.org/issue794814:00
LordVangtg 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 #tryton14:29
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has left #tryton14:29
-!- cryptic(~cryptic@142.196.139.17) has joined #tryton15:13
-!- thaneor(~lenovo3@179.26.158.92) has joined #tryton16:07
-!- fsanchez(~fsanchez@201.240.5.150) has joined #tryton16:40
-!- thaneor1(~lenovo3@179.26.9.109) has joined #tryton17:02
-!- thaneor(~lenovo3@179.26.21.254) has joined #tryton17:20
-!- rpit(~rpit@p5B22B44D.dip0.t-ipconnect.de) has joined #tryton17:41
csoteloHi all, is there any documentation to formar report on relatorio? as exmaple.. format a date or number in a document template, thanks!17:58
cedkcsotelo: you can use python stdlib18:05
cedkhttps://docs.python.org/3.6/library/datetime.html#strftime-strptime-behavior18:05
csotelonice!18:05
cedkcsotelo: otherwise Tryton provides on ir.lang and strftime method which is threadsafe and use parameters from the language18:06
csoteloI see, thanks!18:08
csoteloSOmething like {% for line in lines %}${line.field.strftime('%d/%m/%Y')}{% end %}18:09
csotelowhere field is a datetime field18:09
-!- thaneor(~lenovo3@r186-48-53-61.dialup.adsl.anteldata.net.uy) has joined #tryton18:25
-!- thaneor(~lenovo3@r186-48-53-61.dialup.adsl.anteldata.net.uy) has joined #tryton18:27
-!- thaneor1(~lenovo3@179.26.9.8) has joined #tryton18:41
csotelocedk, 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 list18:45
csoteloby the way, I am renderizing txt reports18:47
csoteloany suggest? please19:04
-!- thaneor(~lenovo3@r167-56-172-148.dialup.adsl.anteldata.net.uy) has joined #tryton19:16
-!- reipes(~reipes@146-241-2-234.dyn.eolo.it) has joined #tryton19:22
-!- csotelo(~csotelo@161.132.198.34) has joined #tryton20:15
-!- csotelo_(~csotelo@2800:4b0:4405:2be7:22d8:575b:48c0:93a9) has joined #tryton20:58
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton21:01
-!- rpit(~rpit@p5B22B44D.dip0.t-ipconnect.de) has joined #tryton21:01
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton21:14
-!- csotelo(~csotelo@2800:4b0:4405:2be7:22d8:575b:48c0:93a9) has joined #tryton21:49
csotelohi 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 lot22:06
csoteloon any suggest!22:07
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:26

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