IRC logs of #tryton for Thursday, 2017-11-09 #tryton log beginning Thu Nov 9 00:00:01 CET 2017
-!- smarro(~sebastian@2800:af0:1028:29d1:2ab2:bdff:fe11:9b67) has joined #tryton01:20
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:22
-!- csotelo(~csotelo@ has joined #tryton02:17
-!- thaneor( has joined #tryton03:07
-!- sisalp( has joined #tryton03:52
-!- tbruyere( has joined #tryton03:52
-!- g5pw(~g5pw@mittelab/sudo/g5pw) has joined #tryton03:54
-!- smarro(~sebastian@2800:af0:1028:29d1:2ab2:bdff:fe11:9b67) has joined #tryton04:15
-!- g5pw(~g5pw@mittelab/sudo/g5pw) has joined #tryton04:20
-!- zmijunkie1( has joined #tryton04:32
-!- silwol(silwolmatr@gateway/shell/ has joined #tryton06:42
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton06:47
-!- Guest36060(~HackEgo@ has joined #tryton06:55
-!- zmijunkie( has joined #tryton07:14
-!- buxy( has joined #tryton07:17
-!- fmorato[m](fmoratomat@gateway/shell/ has joined #tryton07:18
-!- sim6(sim6matrix@gateway/shell/ has joined #tryton07:18
-!- pokoli(~pokoli@ has joined #tryton07:26
-!- irclog( has joined #tryton10:32
-!- sisalp( has joined #tryton10:41
cedkTryton servers are back10:48
-!- smarro(~sebastian@2800:af0:1028:29d1::2) has joined #tryton11:20
-!- smarro(~sebastian@2800:af0:1028:29d1::2) has joined #tryton12:33
-!- smarro( has joined #tryton12:51
-!- smarro(~sebastian@2800:af0:1028:29d1::2) has joined #tryton13:09
-!- csotelo_at_work(~csotelo@ has joined #tryton13:29
-!- catonano(~user@ has joined #tryton14:11
-!- goug( has joined #tryton14:19
-!- smarro(~sebastian@2800:af0:1028:29d1:2ab2:bdff:fe11:9b67) has joined #tryton14:20
-!- cdchapman(~perturbed@ has joined #tryton15:19
-!- lukio(~lukio@ has joined #tryton15:32
-!- meigallodixital(~meigallod@ has joined #tryton15:37
-!- dmollerm( has joined #tryton15:51
-!- meigallodixital_( has joined #tryton15:52
-!- myself21(uid11615@gateway/web/ has joined #tryton16:07
dmollermDear community, any mechanism to provide different texts to the same field name depending on the view? I.e. a shortened name for list or sequence views, but not for form views.16:24
pokolidmollerm: use a diferent label on form view16:27
pokolidmollerm: like <label id="label_id" string="Your long text here"/>16:27
dmollermpokoli: Yes, I thought about that, but if I only wanted to change the text on the tree view? I fear the real field name is showing in other places like reports and wizards views.16:31
pokolidmollerm: I don't think it's possible16:35
pokolibut why you need another label?16:37
dmollermIn this case for abbreviation exclusively. But I think it could be useful for contextualization as well.16:39
dmollermShould I make a proposal in the issue tracker for such a need?16:40
pokolidmollerm: you can make a proposal, but I'm not sure we should manage it16:40
pokolidmollerm: the client shortens the tree view label, so if it's too long it does not occupy more space than the column16:41
cedkI do not think it is a good idea16:41
cedklabel should be good for all cases16:41
cedkand also short, the help is there if it requires longer text16:43
dmollermI understand your point (and I actually agree). Yet if somebody really required me to do so, could I hack with the fields_view_get method? (Belive me, I'm the first one disliking this)16:49
cedkdmollerm: wait until this happens and convice him that it is a bad idea16:52
pokolidmollerm: and if you can't convince, just put a non affordable price on the feature :)16:56
dmollermcedk: this is already happening XD. I won't give up this early but I'm afraid I'll eventually be forced to implement something. I told them about the possibility to make a functional field with a different name, and about how bad this idea is.16:58
pokolidmollerm: but using a functional field, will force you to implement: getter, searcher and order_functions17:01
pokolidmollerm: and also setter if list view is editable17:01
dmollermpokoli: indeed, yet they would be all pretty straightforward since they would nothing different as the real field, only the field name would be a difference. Yet precisely in large tree views is where functional fields are a computational handicap, that's why I'd rather avoid this17:04
pokolidmollerm: I'm more worried about code maintenance than about performance17:05
pokolidmollerm: It's for a specific tree view, or for all tree views?17:06
dmollermpokoli: So am I worried. It's for a specific tree view each time, but different fields and models.17:07
dmollermHacking the fields_view_get method works out, but I'm obviously and dangerously outside the translation system17:09
cedkdmollerm: I do not understand why you have to do that17:10
dmollermWhich is a mes up because this very module is translated to 5 languages (it's for a client rather sparse across countries)17:11
cedkif the length of a label is a problem, there is two options: fix the label because it is wrong, fix the view because it has too much things17:11
dmollermcdk: client requirement (unless they hear me this is not what they want)17:12
cedkdmollerm: just say no to the client17:12
cedkdon't be a yes-man17:13
dmollermcedk: the view is simply bizzarre, but they'll require even more fields each time XD17:13
pokoli /me is eating popcorns17:13
cedkdmollerm: so the problem is not the label, it is the view17:13
pokoliACTION is eating popcorns17:13
cedksplit it or change it or simplify it or …17:14
dmollermcedk: I'm working on that, obviously for good code maintanence17:14
pokolidmollerm: which info is show on the view?17:16
pokolidmollerm: it is a query only view?17:17
dmollermpokoli: this field is a boolean check. That's why any label looks long. But that is among 22 other fields, including 2 Text fields and 4 Function fields. There is no edition in the view.17:18
pokolilol, 28 fields in a view? is that possible?17:20
pokoliI mean is possible to understand something with too much fields17:20
dmollermThe view is bizarre and clearly unusable even in a 24" screen. That's why I can't understand why they keep requiring more fields each time17:20
-!- xcodinas(5b7e4c02@gateway/web/freenode/ip. has joined #tryton17:20
dmollermSorry, 22 fields in total. Yet unusable17:20
pokolidmollerm: probably this view is not solving the real problem :)17:22
dmollermDon't blame me XD17:23
pokolidmollerm: I don't blame you, just saying17:23
pokolidmollerm: probably it will be better to split it in several views and labels things correctly17:23
pokolidmollerm: probablly will help on the translation part :)17:30
pokolinot sure if we should also allow to show messages on form view17:32
dmollermpokoli: thanks, I'll keep that link for my dark future, but I think I'll be able to stay in the untranslatable acronym safe zone.17:33
pokolidmollerm: indeed, with 22 fields, using a single letter for each field, you only have space for 4 more fields17:37
-!- xcodinas( has joined #tryton17:48
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton17:48
-!- Zadi(~Zadi@ has joined #tryton18:01
-!- thaneor( has joined #tryton18:34
-!- smarro(~sebastian@ has joined #tryton18:56
-!- andrespoliti( has joined #tryton18:58
andrespolitihello, is it possible to make a searcher that compares 2 values of the record?18:59
andrespolitifor example domain=[('due_date', '<=', 'date_of_completion')]19:01
cedkandrespoliti: you must write a SQL query19:06
fmorato[m]Coming a bit late to the talk. The Yes Men are actually cool:
andrespolitihow can i set a sql query to a searcher?19:14
-!- Telesight( has joined #tryton19:22
-!- catonano(~user@ has joined #tryton19:26
-!- smarro(~sebastian@2800:af0:1028:29d1:2ab2:bdff:fe11:9b67) has joined #tryton21:49
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton22:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:12

Generated by 2.11.0 by Marius Gedminas - find it at!