IRC logs of #tryton for Thursday, 2012-11-29

chat.freenode.net #tryton log beginning Thu Nov 29 00:00:01 CET 2012
2012-11-29 10:51 <ivangarcia> Hello, I have the column 'nationality' in the country.country module, I'd like to show a selector of all the Nationalities in my view with <label name="nationality"/>
2012-11-29 10:51 <ivangarcia> <field name="nationality" widget="selection"/>
2012-11-29 10:51 <ivangarcia> but I'm having troubles to what to put in my class field
2012-11-29 10:52 <cedk> ivangarcia: widget selection only works with Selection or Many2One fields
2012-11-29 10:52 <ivangarcia> nationality = fields.Many2One('country.country', 'Nationality', select=True )
2012-11-29 10:53 <ivangarcia> cedk: my Party class has to have a nationality field... but I can only make show the Countries
2012-11-29 10:53 <ivangarcia> i want it to be Many2One of countries, but the selector showing the 3rd column=nationality
2012-11-29 10:56 <ivangarcia> i was wondering if Many2One has some extrafield i can use for this
2012-11-29 10:58 <cedk> ivangarcia: no, if you point to country, it shows you country
2012-11-29 11:00 <ivangarcia> cedk: but I added the nationality attribute inside the Country class in the 'country.country' module
2012-11-29 11:00 <ivangarcia> i've tried many ways to access it but i haven't find yet
2012-11-29 11:02 <cedk> ivangarcia: many2one shows only rec_name
2012-11-29 11:06 <ivangarcia> cedk: any wish-feature to add some parameter to change that?
2012-11-29 11:16 <ivangarcia> do u suggest I create some dynamically generated Selection list for the moment?
2012-11-29 11:16 <ivangarcia> it's the only option i'm thinking so far
2012-11-29 11:36 <rmu> ivangarcia: i think you could use _inherits in your nationality-class
2012-11-29 11:37 <rmu> and override rec_name there
2012-11-29 11:37 <cedk> ivangarcia: indeed, I'm not sure to understand what you want to do
2012-11-29 11:37 <cedk> ivangarcia: I'm not sure nationality should be added to country
2012-11-29 11:37 <cedk> ivangarcia: I will do a nationality table (with a link to country if needed)
2012-11-29 11:42 <ivangarcia> rmu: thanks, i'm thinking to separate it to another table like cedk suggests, i'll have linked to the country references because I'd need to make reports base on nationalities-countries,etc
2012-11-29 11:43 <cedk> nicoe: ssh://hg.tryton.org//home/hg/sandbox/sao
2012-11-29 11:57 -!- horRn(~jan@dslb-178-005-194-058.pools.arcor-ip.net) has left #tryton
2012-11-29 12:10 <ivangarcia> cedk, rmu: it worked well, nationalities are showing up now in the form.
2012-11-29 13:00 <horRn> hi
2012-11-29 13:04 <horRn> why a act_window called from menu is ignoring the result of view_header_get? it shows always the string given by name of act_window.
2012-11-29 13:07 <cedk> horRn: because menu is more accurate
2012-11-29 13:11 <horRn> cedk: ? i have two act_window.view from type tree - each needs a different header. so I need to put two menuentries? mhhhh ... in which case view_header_get is'nt ignored? called from wizzards and relations?
2012-11-29 13:14 <cedk> horRn: I think
2012-11-29 13:15 <cedk> horRn: but I think we will drop view_header_get in the future and use only custom action for that
2012-11-29 13:16 <horRn> cedk: action where? in the model?
2012-11-29 13:19 <cedk> horRn: act_window
2012-11-29 13:20 <horRn> cedk: ok
2012-11-29 18:21 <horRn> me again
2012-11-29 18:24 <horRn> Finished my work at a highly dynamic extension - user can switch between different treeviews and graphs for a model. each of them displays a really different result - so it would be nice to show that in the header of the client. is this a very strange use case or could this be a common need in the client?
2012-11-29 18:26 <horRn> because it seems that the header is defined by the act_windows name - ignoring the setting 'string' of the act_window.views
2012-11-29 18:30 <cedk> horRn: for me, it should have the same title as it is the same object
2012-11-29 18:34 <horRn> cedk: yes - mostly. I have a listview- view 1 shows a lot of numbers as percent - second view is showing the same values as absolut numbers. the headers of the cols are named like this - but my customer ask me for a BIGGER hint what result he is starrring
2012-11-29 18:37 <horRn> cedk: so it seems better to generate a menu entry for each view - but this bloating the menu :(
2012-11-29 18:38 <horRn> cedk: no space left in menuslot ;)
2012-11-29 18:40 <cedk> horRn: at least different menu entry provide a better answer to your customer concerns
2012-11-29 18:40 <cedk> horRn: as he will not mix the views
2012-11-29 18:40 <shomon_> hola! I'm trying to install tryton, but I can't figure out how to get weakrefset installed?
2012-11-29 18:40 <cedk> horRn: or you could ask which view in a wizard
2012-11-29 18:40 <shomon_> it's 2.4 in ubuntu 11.04
2012-11-29 18:40 <shomon_> so a bit wierd
2012-11-29 18:40 <shomon_> but it should be in apt I thought
2012-11-29 18:41 <cedk> shomon_: Python 2.6 is almost deprecated
2012-11-29 18:41 <horRn> cedk: you are mostly right - but he wants to switch like a crazy ape - he needs to learn some shortcuts ;)
2012-11-29 18:42 <shomon_> aah
2012-11-29 18:43 <shomon_> oh by the way I just discovered db maxconn... the bug I found is linked to the low default setting I guess
2012-11-29 18:44 <shomon_> thanks.. will install 2.7

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