chat.freenode.net #tryton log beginning Thu Aug 11 00:00:02 CEST 2011 | ||
2011-08-11 00:09 -!- bvillasanti(~bruno@186-129-248-247.static.speedy.com.ar) has left #tryton | ||
2011-08-11 00:14 -!- elbenfreund(~elbenfreu@g226234128.adsl.alicedsl.de) has joined #tryton | ||
2011-08-11 00:20 -!- dfamorato_(~dfamorato@173-9-190-185-miami.txt.hfc.comcastbusiness.net) has joined #tryton | ||
2011-08-11 02:13 -!- rhubner(~rhubner@177.16.102.108) has joined #tryton | ||
2011-08-11 02:14 <rhubner> Anyone had a problem with connect server<->client in the last version of repo? | ||
2011-08-11 02:15 <rhubner> I'm not getting... | ||
2011-08-11 02:21 -!- dfamorato(~dfamorato@c-75-74-235-36.hsd1.fl.comcast.net) has joined #tryton | ||
2011-08-11 03:18 -!- dfamorato_(~dfamorato@2001:470:5:71c:995d:81cf:adc3:d9bd) has joined #tryton | ||
2011-08-11 03:20 -!- dfamorat_(~dfamorato@2001:470:5:71c:fd4e:9f9f:fee:3d8b) has joined #tryton | ||
2011-08-11 03:30 -!- rhubner(~rhubner@177.16.102.108) has left #tryton | ||
2011-08-11 04:09 -!- ikks(~ikks@190.27.13.72) has joined #tryton | ||
2011-08-11 04:47 -!- alimon(~alimon@187.156.80.54) has joined #tryton | ||
2011-08-11 05:02 -!- yangoon1(~mathiasb@p54B4E482.dip.t-dialin.net) has joined #tryton | ||
2011-08-11 05:33 -!- ecarreras(~under@unaffiliated/ecarreras) has joined #tryton | ||
2011-08-11 05:50 -!- ecarreras(~under@unaffiliated/ecarreras) has joined #tryton | ||
2011-08-11 06:40 -!- dfamorato(~dfamorato@2001:470:5:71c:7ccf:2221:852f:d849) has joined #tryton | ||
2011-08-11 07:20 -!- woakas(~woakas@200.106.218.64) has joined #tryton | ||
2011-08-11 07:58 -!- okko1(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton | ||
2011-08-11 08:21 -!- ecarreras(~under@unaffiliated/ecarreras) has joined #tryton | ||
2011-08-11 09:13 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2011-08-11 09:28 -!- nicoe(~nicoe@ced.homedns.org) has joined #tryton | ||
2011-08-11 09:37 -!- bechamel(~user@cismwks02-virtual1.cism.ucl.ac.be) has joined #tryton | ||
2011-08-11 09:37 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton | ||
2011-08-11 09:39 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has left #tryton | ||
2011-08-11 09:39 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton | ||
2011-08-11 10:22 -!- okko1(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton | ||
2011-08-11 10:32 -!- ccomb(~ccomb@anj75-1-82-226-210-96.fbx.proxad.net) has joined #tryton | ||
2011-08-11 11:00 -!- elbenfreund(~elbenfreu@f055056253.adsl.alicedsl.de) has joined #tryton | ||
2011-08-11 11:12 -!- elbenfreund(~elbenfreu@f055056253.adsl.alicedsl.de) has joined #tryton | ||
2011-08-11 11:15 -!- Pander(~Pander@ip235-130-212-87.adsl2.static.versatel.nl) has joined #tryton | ||
2011-08-11 11:17 <Pander> hi all | ||
2011-08-11 11:20 <Pander> I have created an inherited tree view for party.party in which vat_code is replaced by categories. This works fine and I can filter with it but in the Categories column below I see data such as (0), (1), (2), ... indicating the number of applied categories. How can I have these replaced by a comma separated list of the categorie names? E.g. Sales, Marketing in stead of (2) | ||
2011-08-11 11:22 <cedk> Pander: you can not | ||
2011-08-11 11:23 <cedk> Pander: or you must create a Function field of type Char that will concatenate the list of the Many2Many | ||
2011-08-11 11:32 <Pander> cedk: the latter sounds OK, which file should I alter and where can I find an example implementation | ||
2011-08-11 11:38 <cedk> Pander: you should first create a module | ||
2011-08-11 11:38 <cedk> https://code.google.com/p/tryton/wiki/HelloWorld | ||
2011-08-11 11:39 <cedk> Pander: or better follow the training module: http://hg.tryton.org/2.0/training/ | ||
2011-08-11 11:47 <Pander> cedk: isn't it smiply overriding the "toString" for categories or Many2Many? | ||
2011-08-11 11:48 <cedk> Pander: toString is in Java ! | ||
2011-08-11 11:48 <Pander> cedk: that is why it is between quotes ;) | ||
2011-08-11 11:51 <cedk> Pander: but it doesn't work like that, the communication between the client and the server doesn't use objects | ||
2011-08-11 11:52 <Pander> I have found this in party.py: categories = fields.Many2Many('party.party-party.category', 'party', 'category', 'Categories', states=STATES) so I | ||
2011-08-11 11:52 <cedk> Pander: you must adapt the Model to modify the client display | ||
2011-08-11 11:52 <cedk> Pander: yes it is the Model definition | ||
2011-08-11 11:53 <Pander> so I could change the Many2Many model or I could make the initialisation of categories give an extra parameter to Many2Many so that the "toString" is expanding ;) | ||
2011-08-11 11:53 <Pander> that it is only for categries and not messing up other uses of Many2Many.toString() (sorry I keep joking with Java) | ||
2011-08-11 11:54 <cedk> Pander: you must define a new field on the Model something like: categories_string = fields.Function(fields.Char('Categories'), 'get_categories_string') | ||
2011-08-11 11:55 <Pander> cedk: ok, will try that, thanks | ||
2011-08-11 11:57 <cedk> Pander: look at others function fields to understand | ||
2011-08-11 11:59 -!- elbenfreund(~elbenfreu@f055056253.adsl.alicedsl.de) has joined #tryton | ||
2011-08-11 12:08 <Pander> cedk: hmmm, difficult to find examples. So it is not __str__ but an extra field that will be picked up by the tree view. Since I would like to learn this could you help me on my way a bit (whithout giving the complete answer) Is string_md5 a good example to stsart from? | ||
2011-08-11 12:11 <cedk> Pander: better to use an other one, look at full_name on Party | ||
2011-08-11 12:14 <Pander> cedk: so I create first categories_string = fields.Function(fields.Char('Categories'), 'get_categories_string') then I implement def get_categories_string, got that | ||
2011-08-11 12:18 <cedk> Pander: yes | ||
2011-08-11 12:23 <Pander> cedk: in def get_categories_string I need to get the categories, do I get them from the transaction as in de def default_categories or do I get it from self.categories? | ||
2011-08-11 12:28 <cedk> Pander: look at get_full_name | ||
2011-08-11 12:37 <Pander> cedk: how does this look? http://pastebin.com/SeMCUXJn | ||
2011-08-11 12:43 -!- elbenfreund(~elbenfreu@p54B9400F.dip.t-dialin.net) has joined #tryton | ||
2011-08-11 12:51 <cedk> Pander: http://pastebin.com/yXdGxuKP | ||
2011-08-11 12:55 <Pander> cedk: thank, that was also my mext question otherwise the output would be still (2). Do I need to couple that categories_string to the tree view or will it pick it up automatically? | ||
2011-08-11 12:56 <cedk> Pander: you must do the same as you did with vat | ||
2011-08-11 13:01 <Pander> cedk: do you mean the inherited view, replave vat_code with categories_string? that doen't work | ||
2011-08-11 13:03 <cedk> Pander: it should | ||
2011-08-11 13:05 <Pander> do I need to restart the service when I change .py files? | ||
2011-08-11 13:06 <cedk> Pander: yes | ||
2011-08-11 13:10 <Pander> TypeError: get_categories_string() takes exactly 2 arguments (3 given) So I should also provide argument name? | ||
2011-08-11 13:12 <cedk> Pander: missing name param: http://pastebin.com/H9JtHMR2 | ||
2011-08-11 13:13 <Pander> cedk: already fixed that and it is working :D thanks | ||
2011-08-11 13:13 <Pander> cedk: would you like a patch and included it in the next release? | ||
2011-08-11 13:15 <cedk> Pander: I don't think it is generic enough to be included | ||
2011-08-11 13:15 <cedk> Pander: as I said you should write a custom module for all your customisations | ||
2011-08-11 13:24 <Pander> cedk: How more generic can you get? ;) They way we are going to use Tryton is that we will create our new business processes to match what is default offered by Tryton and only do View customisations. Please reconsider including this into the model. When I will be making more model extensions I will make them as generic as possible in order to extend the base functionality of the models for... | ||
2011-08-11 13:24 <Pander> ...all to enjoy when needed. In effect you will get a contributor to your team for those small and handy getter methods. | ||
2011-08-11 13:31 <cedk> Pander: it is not generic because it doesn't scale, what if the party of thousand of categories | ||
2011-08-11 13:31 <cedk> Pander: The right the way to customize Tryton is by writing custom modules | ||
2011-08-11 13:36 <Pander> cedk: I could implement a cut-off after 10 and show ', ...' | ||
2011-08-11 13:36 <Pander> cedk: Can I sort it with res[party.id] = ', '.join(sorted(cat.rec_name for cat in party.categories)) | ||
2011-08-11 13:38 <cedk> Pander: still doesn't enter into the scope of Tryton which is KISS | ||
2011-08-11 13:39 <cedk> Pander: this is tipical customisation that should stay in customizing modules | ||
2011-08-11 13:40 <Pander> cedk: OK | ||
2011-08-11 14:08 -!- woakas(~woakas@200.106.218.64) has joined #tryton | ||
2011-08-11 14:41 -!- rhubner(~rhubner@177.16.102.120) has joined #tryton | ||
2011-08-11 14:47 <rhubner> Hi cedk | ||
2011-08-11 14:58 -!- dfamorato(~dfamorato@2001:470:5:71c:16c:d1f4:d94a:4c58) has joined #tryton | ||
2011-08-11 14:59 <rhubner> The last version of server and client in repo are incompatibles... Anyone knows what to do? | ||
2011-08-11 15:00 -!- ecarreras(~under@unaffiliated/ecarreras) has joined #tryton | ||
2011-08-11 15:07 <rhubner> I got! I forgot to change port JSON-RPC... | ||
2011-08-11 15:23 -!- Pander(~Pander@ip235-130-212-87.adsl2.static.versatel.nl) has left #tryton | ||
2011-08-11 15:33 -!- dfamorato(~dfamorato@2001:470:5:71c:16c:d1f4:d94a:4c58) has joined #tryton | ||
2011-08-11 15:37 <rhubner> cedk: Do you think is better to use only incons default of GTK? | ||
2011-08-11 15:37 -!- alimon(alimon@187.156.80.54) has joined #tryton | ||
2011-08-11 15:38 <cedk> rhubner: I think as the usage of those icons are strictly what they are for | ||
2011-08-11 15:38 <rhubner> cedk: Only markup icon I will use because it there isn't in stock icons | ||
2011-08-11 15:38 <cedk> rhubner: ok | ||
2011-08-11 15:39 <rhubner> cedk: So.. Is better default icons in stock? | ||
2011-08-11 15:40 <cedk> rhubner: I think as the usage of those icons are strictly what they are for | ||
2011-08-11 15:43 <rhubner> cedk: What icons? I added or standards? | ||
2011-08-11 15:43 -!- dfamorato(~dfamorato@173-162-103-122-miami.hfc.comcastbusiness.net) has joined #tryton | ||
2011-08-11 15:43 <cedk> rhubner: standards | ||
2011-08-11 15:44 -!- rhubner(~rhubner@177.16.102.120) has left #tryton | ||
2011-08-11 15:44 -!- rhubner(~rhubner@177.16.102.120) has joined #tryton | ||
2011-08-11 15:45 <rhubner> cedk: Ok... I put others icons by giving a suggestion to pack icons... | ||
2011-08-11 15:46 <rhubner> Someone that I forgot.. | ||
2011-08-11 15:48 <rhubner> cedk: What kind documentation I need to do? (by suggestion from GSoC) | ||
2011-08-11 15:50 <cedk> rhubner: you could extend the client doc to describe how the richtext widget works | ||
2011-08-11 15:54 <cedk> rhubner: did you understand the issues I reported? | ||
2011-08-11 15:54 <rhubner> cedk: About the issues you raised and others that it may appear? If I can not solve all before the end of the program can I contribute after? | ||
2011-08-11 15:55 <rhubner> cedk: I understand some of them... | ||
2011-08-11 15:56 <cedk> rhubner: of course you can contribute after :-) | ||
2011-08-11 15:56 <rhubner> cedk: I need starting to fix to get to understand everything ... | ||
2011-08-11 15:57 <rhubner> cedk: Under the program I need to fix everything before the 15th Aug... | ||
2011-08-11 15:57 <cedk> rhubner: I think one big is that on the same line I can get many <p> tags | ||
2011-08-11 15:57 <cedk> rhubner: it should have only one <p> per line | ||
2011-08-11 15:58 <cedk> rhubner: software without bugs doesn't exist | ||
2011-08-11 15:58 <cedk> rhubner: I think you already did a great job | ||
2011-08-11 15:58 <rhubner> cedk: I'll start with this problem then... | ||
2011-08-11 15:58 <rhubner> thanks | ||
2011-08-11 15:59 <rhubner> cedk: In client-side I need to add some lines in CHANGELOG too? | ||
2011-08-11 16:00 <cedk> rhubner: yes it is a major change so it is good to inform users | ||
2011-08-11 16:05 -!- zodman(~zodman@foresight/developer/zodman) has joined #tryton | ||
2011-08-11 16:05 -!- okko1(~okko@62.58.29.41) has joined #tryton | ||
2011-08-11 16:06 <rhubner> cedk: How does documentations works? | ||
2011-08-11 16:06 <cedk> dfamorato: ping | ||
2011-08-11 16:06 <cedk> rhubner: it is plain text rest | ||
2011-08-11 16:07 <cedk> rhubner: you should add in doc/usage.rst | ||
2011-08-11 16:08 <rhubner> cedk: Ok.. Just add somewhere or have some specific part? | ||
2011-08-11 16:09 <cedk> rhubner: I don't have the doc in mind, do your best | ||
2011-08-11 16:10 <rhubner> cedk: I was thinking of making a video showing how to add the widget and then how to use it ... Maybe then you could put on the site.. | ||
2011-08-11 16:15 <cedk> rhubner: creating a new widget is not something we do often | ||
2011-08-11 16:18 -!- dfamorato(~dfamorato@173-162-103-122-miami.hfc.comcastbusiness.net) has joined #tryton | ||
2011-08-11 16:18 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has left #tryton | ||
2011-08-11 16:21 -!- dfamorato_(~dfamorato@173-9-190-185-miami.txt.hfc.comcastbusiness.net) has joined #tryton | ||
2011-08-11 16:22 <cedk> dfamorato_: ping | ||
2011-08-11 16:23 <dfamorato_> cedk: pong | ||
2011-08-11 16:23 <dfamorato_> cedk: Hi there | ||
2011-08-11 16:24 <cedk> dfamorato_: how is going with the GSoC? | ||
2011-08-11 16:26 <dfamorato_> cedk: Working on our discussed it starting today... Will have working code to push by next week | ||
2011-08-11 16:32 -!- dfamorato(~dfamorato@2001:470:5:630:50c3:60dc:683d:1a15) has joined #tryton | ||
2011-08-11 16:50 -!- rhubner(~rhubner@177.16.102.120) has left #tryton | ||
2011-08-11 16:55 <cedk> dfamorato: could you publish on the blog? | ||
2011-08-11 16:59 <dfamorato> sure | ||
2011-08-11 16:59 <dfamorato> will to it today | ||
2011-08-11 19:21 -!- zodman_(~zodman@fixed-203-7-69.iusacell.net) has joined #tryton | ||
2011-08-11 19:22 -!- zodman(~zodman@foresight/developer/zodman) has joined #tryton | ||
2011-08-11 20:28 -!- okko1(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton | ||
2011-08-11 20:30 -!- lem0na(~lem0na@95.87.233.210) has joined #tryton | ||
2011-08-11 21:24 -!- bechamel(~user@host-85-201-144-79.brutele.be) has joined #tryton | ||
2011-08-11 21:45 -!- dfamorato(~dfamorato@173-9-190-185-miami.txt.hfc.comcastbusiness.net) has joined #tryton | ||
2011-08-11 21:59 -!- dfamorato(~dfamorato@2001:470:5:71c:dd37:e76b:3d4b:f7fd) has joined #tryton | ||
2011-08-11 22:16 -!- pac_user(~chatzilla@184-76-111-12.war.clearwire-wmx.net) has joined #tryton | ||
2011-08-11 22:19 <Ildin> Hello All. If I would like to run version 2.0.1 in a production environment, will I have to configure it from the tar.gz archive ? (ie from http://pypi.python.org/pypi/trytond/2.0.1)? | ||
2011-08-11 22:19 <Ildin> Is there no deb package yet? | ||
2011-08-11 22:20 <Ildin> For the 2.0.1 release? | ||
2011-08-11 22:21 <bechamel> Ildin: for me the easiest is to use hgnested with: hg nclone http://hg.tryton.org/2.0/trytond/ | ||
2011-08-11 22:22 <bechamel> some background info: http://code.google.com/p/tryton/wiki/InstallationMercurial | ||
2011-08-11 22:22 <Ildin> bechamel: Thanks for the tip !!! I will look into this... | ||
2011-08-11 22:32 <Ildin> (Here are some more search term tags for people coming from google: tryton debian install ubuntu ) | ||
2011-08-11 22:50 -!- elbenfreund(~elbenfreu@f055056253.adsl.alicedsl.de) has joined #tryton | ||
2011-08-11 22:59 <cedk> Ildin: according to http://packages.debian.org/search?keywords=tryton&searchon=names&suite=all§ion=all there is packages for 2.0.1 | ||
2011-08-11 23:00 <cedk> the main issue with Debian is that they don't accept to update Tryton (even with bug fix release) on stable | ||
2011-08-11 23:43 -!- ccomb(~ccomb@vau75-2-81-57-244-84.fbx.proxad.net) has joined #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!