IRC logs of #tryton for Thursday, 2018-09-06

chat.freenode.net #tryton log beginning Thu Sep 6 00:00:01 CEST 2018
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:06
-!- rmu|w(~robert@cpe90-146-69-94.liwest.at) has joined #tryton00:27
-!- csotelo(~csotelo@190.233.231.180) has joined #tryton00:34
-!- csotelo(~csotelo@190.233.231.180) has joined #tryton00:50
-!- csotelo(~csotelo@190.233.231.180) has joined #tryton01:06
-!- pokoli(~pokoli@mail.koolpi.com) has joined #tryton01:09
-!- csotelo(~csotelo@190.233.231.180) has joined #tryton01:15
-!- lucascastro(~lucascast@177-185-139-175.isotelco.net.br) has joined #tryton01:34
-!- cryptic(~cryptic@142.196.170.87) has joined #tryton02:16
-!- yangoon(~mathiasb@i59F4A98F.versanet.de) has joined #tryton02:48
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton05:45
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton06:17
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:32
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton06:34
-!- thaneor(~lenovo3@179.26.224.34) has joined #tryton06:35
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton06:54
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton07:11
-!- zmijunkie(~Adium@i577AD99F.versanet.de) has joined #tryton07:13
-!- rpit(~ralf@p5B22B781.dip0.t-ipconnect.de) has joined #tryton07:22
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton07:23
jcmhi, I don't undestand how translations work. I added in a custom module entries to translate custom terms in reports. Works in invoice but not in sale, though the fr.po entry is the same for both.07:50
jcmfor the sale report my fr.po entry begin with msgctxt "report:sale.sale:" whereas it's msgctxt "report:account.invoice:" for invoice07:51
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton08:12
pokolijcm: are you editing the po file directly?08:14
pokolijcm: you should execute the translation wizards from Administration menu. See http://doc.tryton.org/4.8/trytond/doc/topics/translation.html?#translation-wizards08:15
pokolijcm: After the syncrionize translation wizard is executed you will see the terms for this language. You can filter by your module name and edit the translations08:16
pokolijcm: Once translated you can test the reports directly in the database08:16
pokolijcm: the export translation wizard allows to generate the po file of your module once the translation is finished08:17
-!- JanGB1(~jan@ip92342a4a.dynamic.kabel-deutschland.de) has joined #tryton09:33
-!- lukio(~lukio@181.95.226.71) has joined #tryton09:47
-!- JanGB1(~jan@ip92342a4a.dynamic.kabel-deutschland.de) has joined #tryton09:58
-!- JanGB1(~jan@ip92342a4a.dynamic.kabel-deutschland.de) has left #tryton10:03
-!- csotelo(~csotelo@2001:1388:49c7:c14c:b00e:d118:ee33:147f) has joined #tryton10:59
-!- mariomop(~quassel@host172.190-227-22.telecom.net.ar) has joined #tryton11:06
-!- csotelo_(~csotelo@190.235.169.49) has joined #tryton11:32
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton12:09
-!- armand_(~armand@41.159.30.242) has joined #tryton12:21
-!- lukio(~lukio@186.143.138.3) has joined #tryton12:37
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton12:48
-!- csotelo_at_work(~csotelo_a@179.43.97.56) has joined #tryton13:37
-!- armand_(~armand@41.159.30.242) has joined #tryton14:17
-!- andrespoliti(~andrespol@200.50.173.5) has joined #tryton14:36
andrespolitigood morning14:36
andrespolitiis it possible to define a button that opens an action with a filter already set?14:36
andrespolitifor example: i have an Asset form, and when the user clicks on a button and it open a list of all the Workorders for the current Asset in the Draft state14:37
cedkandrespoliti: why not use the relate keyword?14:38
andrespoliticedk: i never used that, what is the relate keyword?14:39
cedkandrespoliti: it is a kind of keyword that you can attach to an action14:40
cedkandrespoliti: like the wizard or the report14:40
cedkotherwise the action launch by a button are evaluated like the action launch from keyword14:41
cedkso the domain is evaluated with the active_ids14:41
andrespoliticedk: with the relate keyword, would it be possible to define different domains depending on the column the user clicks on the tree view?14:43
cedkandrespoliti: it does not click on any column when he click on a relate14:47
andrespolitimy use case is a tree view with a register for each Asset, and a column for each possible state of a Workorder, and each column displays the number of Workorders for that Asset in that state14:48
andrespolitiand the user wants to be able to click on a column, and it opens the tree view of Workorderes, filtered by asset and state14:49
andrespolitii'm not sure what would be the best approach for making this14:49
cedkandrespoliti: clicking on column makes only sort the content14:49
andrespolitii mean the user clicks on the value of the column14:50
andrespolitithey click in the number of Workorders displayed14:50
cedkandrespoliti: you can click only on button14:51
andrespolitiokey, so i will put a button next to each column14:52
andrespolitii guess i should use the button_action decorator, but how can i give it a domain?14:52
cedkandrespoliti: but indeed I find that using a relate will be more efficient14:53
cedkuser select the row and then select which relate to open14:53
pokoliandrespoliti: why not using a single action with tab domains for each state?14:54
cedkso the view is not cluttered with a lot of buttons14:54
cedkpokoli: maybe it is not the same Model14:54
pokoliI understood it was the same model (WorkOrders)14:55
andrespolitithe first model is Assets, and the related model is Workorders14:55
pokoliandrespoliti: I agree with cedk that using relate is the more is more efficient14:55
andrespolitiyes, i can define one relate for each Workorder state14:56
andrespolitiokey, i will try that14:57
andrespolitithank you!14:57
cedkIn addition, you can to run the relate on multiple records which is not possible with a button15:02
-!- lucascastro(~lucascast@189.90.38.210.jupiter.com.br) has joined #tryton15:11
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton15:48
-!- lucascastro(~lucascast@186.193.179.10.jupiter.com.br) has joined #tryton16:31
-!- armand(~armand@41.159.30.242) has joined #tryton17:11
-!- lucascastro(~lucascast@200.141.207.18) has joined #tryton17:59
-!- csotelo(~csotelo@2001:1388:49c7:d150:38c7:734c:8923:4710) has joined #tryton18:22
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton18:28
-!- thaneor1(~lenovo3@r179-25-69-219.dialup.adsl.anteldata.net.uy) has joined #tryton18:37
-!- mariomop(~quassel@host172.190-227-22.telecom.net.ar) has joined #tryton18:59
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton20:00
-!- armand(~armand@41.159.30.242) has joined #tryton20:22
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton20:24
-!- kwmiebach(sid16855@gateway/web/irccloud.com/x-gltwbtgfrfeusuxi) has joined #tryton21:03
-!- giesen(~ggiesen@ego.giesen.me) has joined #tryton21:20
-!- lukio(~lukio@181.95.226.71) has joined #tryton21:47
lukioHi everybody, I added a new field at the tree view of invoices. But, I setted with view_attributes to be display only when the invoices are 'out' type. The problem is that the user can filter on that field at supplier invoices. I'm think is an strange behaviour. I'm working with v4.221:49
lukioI like to filter on fields that are set to be invisible (like add the tree_invisible attribute on xml), but sometimes, is there any way to set to not add that field on the filter widget on tryton client?21:51

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