IRC logs of #tryton for Tuesday, 2021-01-12

chat.freenode.net #tryton log beginning Tue Jan 12 12:00:01 AM CET 2021
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:05
samtcWhen I try to import a statement (Financials -> Statements -> Import Statement) I get the message "To import statement, you must create a journal for account "123-12345-1234567".00:41
samtcwhere should I create the Journal?00:42
samtcI have an account with that name00:43
samtcI tried to create a journal in Financials -> Configuration -> Journals -> Journals using the account name00:44
samtcI just found the scenario_account_statement_ofx.rst that could help00:50
samtc"The value for field "Bank Account" in "Statement Journal" is not valid according to its domain."01:05
samtcok, my bank account had the wrong owner!02:01
-!- srgdts_(~srgdts@unaffiliated/srgdts) has joined #tryton02:15
-!- thaneor1(~ldlc6@r167-61-34-86.dialup.adsl.anteldata.net.uy) has joined #tryton05:08
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton05:48
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton05:52
-!- LordVan(~LordVAn@gentoo/developer/LordVan) has joined #tryton06:41
LordVanhi06:43
LordVansince I did not find anything yet .. how can I use translations (of contact mechanism type) in reports?06:44
-!- Timitos(~kpreisler@2001:a61:578:ee01:762b:62ff:fe84:ed7e) has joined #tryton07:17
pokoliLordVan: yes they can be used but you should create a translated property in the model07:42
pokoliLordVan: this is the example for identifier type: https://hg.tryton.org/modules/party/file/dd86a4a67170/party.py#l44107:44
pokoliLordVan: and then in the report you should use the translated property (type_string) instead of the original one (type)07:44
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:46
-!- fooflare(~fooflare@213.94.26.109) has joined #tryton08:48
LordVanpokoli, ah thanks ..09:01
LordVanI had looked if there was type_string but there was none09:01
LordVanthat said09:01
LordVanhow can i do string replacement ? is there some REPLACE function? didn'T see anythin gin genshi docs on a quick look over09:02
pokoliLordVan: you can do a function field to return whatever values you need09:03
LordVanpokoli, well i only want it at one place in the template so i'D prefer to do it in the odt directly09:03
LordVanlike i want sale.number "normally" at the top of the page just later on i need it with the '/' replaced with a '-' as it is a path09:04
pokoliLordVan: i do not understand what do you want09:07
LordVanwell I got my sale number which is ${year}/<number> and i want it on a report where it is part of a file system path - so i need to just have a string replace on the text (on the report itself)09:10
LordVanalternatively i could make this a seperate field on the sale though and use that .. might even be better .. hmm09:11
pokoliLordVan: on the report_name or in the reort content?09:11
LordVancontent09:11
pokoliLordVan: then you can use a python expression to replace it: sale.number.replace('/', '-')09:13
LordVanah i can do that?09:13
LordVannice09:13
LordVanso just a placeholder with that text? or do i need to tell it it is an expression?09:14
pokoliLordVan: of course, genshi evaluates python expressions so you can do whatever you can do in a one-line expression09:14
pokoliLordVan: placeholder with that text09:14
LordVanyeah i have no prior experience with genshi09:14
LordVanthanks :)09:14
pokoliLordVan: other option is to use - as separator for the sequence09:14
pokoliLordVan: normally it's bettter to have the same value on tryton and on reports09:15
LordVanpokoli, well you probably know how it is with changing long-running conventions in companies ..09:15
LordVanand yes i agree09:15
LordVanbut the '/' is just an issue if you want to use it in file/folder names so09:15
LordVanotherwise we want the /09:16
pokoliLordVan: tryton uses the rec_name in report names. This means using the sale number for sale reports09:17
pokoliLordVan: but IIRC we slugify the name to avoid issues09:17
pokoliLordVan: software migration is a good excuse to change long-running conventions in companies :P09:19
LordVans.rec_name09:19
LordVan: '2021/0001 [M20061-2460]'09:19
-!- JanGB(~jan@2a02:810a:1440:64da:6257:18ff:fe9c:c3a9) has joined #tryton09:30
JanGBpokoli: https://bugs.tryton.org/issue946409:31
JanGBpokoli: Bon dia09:31
JanGBpokoli: i search progressbar in roundup thinking that title is indexed09:32
pokoliJanGB: title is index, but by default only open issues are shown. So you should check the "All" button to include also resovled issues09:32
JanGBpokoli: ah - ok09:33
pokoliJanGB: https://bugs.tryton.org/issue?%40columns=id%2Cactivity%2Ctitle%2Ccreator%2Cassignedto%2Cstatus&%40sort=-activity&%40group=priority&%40filter=status&%40search_text=set_editable&submit=Search&status=09:33
pokoliJanGB: Bon dia  or gutten morgen. what you prefer :P09:34
LordVanおはようございます09:36
LordVanah09:36
LordVanlooks like my hexchat font on windows is .. meh09:36
pokoliLordVan: i just see some non encoded charcters09:38
LordVanor japanese IME on hexchat on windows is meh09:38
LordVannever mind09:39
JanGBpokoli: The errror was reported from mac user after update client - possibly your patch is not included?10:12
pokoliJanGB: which tryon version?10:17
JanGBpokoli: 5.010:19
pokoliJanGB: 5.0 what else? The patch is included on 5.0.2610:21
pokoliJanGB: latests version of the series is 5.0.3010:22
JanGBpokoli: dont  know - he downloaded from top message and blamed me after :)10:22
JanGBpokoli: I will ask which version10:23
pokoliJanGB: ok. Upgrading to 5.0.30 should fix the issue10:24
pokoliJanGB: I've tested on tryton5.0 and I can reproduce it. I get a traceback when opening the projects10:27
JanGBpokoli: jupp10:27
pokoliJanGB: so probably we need to investigate if there is a problem with the backport or the issue has been reintroduced to tip10:27
-!- mariomop(~quassel@190.188.44.80) has joined #tryton10:43
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton13:07
-!- lucascastro(~lucascast@177-185-133-174.dynamic.isotelco.net.br) has joined #tryton13:26
samtchi15:35
samtcUsing "sale_subsription" I created a subscription (start_date: 2021-01-01), but when I manually run the "Create Subcription Invoices" action, nothing happen15:36
-!- JanGB(~jan@ip5f5ab06a.dynamic.kabel-deutschland.de) has joined #tryton15:39
pokolisamtc: you should create first the consumptions15:39
samtcpokoli: yes, but it's the same, nothing happen15:40
samtcit works! consumption reference was missing15:43
-!- thaneor(~ldlc6@r167-61-12-136.dialup.adsl.anteldata.net.uy) has joined #tryton17:11
-!- rpit(~rpit@p200300c88f4cbb00cea2955fb3b32f1a.dip0.t-ipconnect.de) has joined #tryton17:20
-!- JanGB(~jan@ip5f5ab06a.dynamic.kabel-deutschland.de) has joined #tryton19:02
-!- lucascastro(~lucascast@177-185-133-174.dynamic.isotelco.net.br) has joined #tryton19:09
-!- lucascastro(~lucascast@177-185-133-174.dynamic.isotelco.net.br) has joined #tryton19:19
-!- lucascastro(~lucascast@177-185-133-174.dynamic.isotelco.net.br) has joined #tryton19:25
-!- lucascastro(~lucascast@177-185-133-174.dynamic.isotelco.net.br) has joined #tryton19:58

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