IRC logs of #tryton for Tuesday, 2012-04-03

chat.freenode.net #tryton log beginning Tue Apr 3 00:00:01 CEST 2012
2012-04-03 10:35 <cedk> albertca: could you provide the patch for issue 2523
2012-04-03 14:37 -!- pjstevns(~pjstevns@nfg3.nfgs.net) has left #tryton
2012-04-03 16:10 <cedk> dfamorato: hi, you should come on the next TUL to taste the Belgian beers :-)
2012-04-03 16:11 <dfamorato> cedk: I will probably do it :0
2012-04-03 16:11 <dfamorato> :)
2012-04-03 16:11 <dfamorato> cedk: 2 questions... 1-) I want to try translate to pt_BR for 2.4
2012-04-03 16:12 <dfamorato> cedk: Did someone propose to work on GSOC Complete demo script ?
2012-04-03 16:13 <dfamorato> cedk: Regarding translations, they are a .po file right ?
2012-04-03 16:15 <cedk> dfamorato: translation: yes po file
2012-04-03 16:15 <cedk> dfamorato: https://code.google.com/p/tryton/wiki/HowtoTranslate
2012-04-03 16:15 <cedk> dfamorato: for GSOC, nobody talked yet about demo script
2012-04-03 16:16 <dfamorato> cedk: Thanks.. had just found that page... I will see how much can i translate. When is translation freeze ?
2012-04-03 16:16 <cedk> dfamorato: now
2012-04-03 16:16 <dfamorato> cedk: Today ? I saw release is set for April 24th
2012-04-03 16:17 <cedk> dfamorato: yes today, there is no more change in the strings
2012-04-03 16:17 <dfamorato> cedk: I assume for " Demo Script" I should follow your lead and continue to use Proteus for setting up everything, right?
2012-04-03 16:18 <cedk> dfamorato: yes
2012-04-03 16:18 <cedk> dfamorato: do you plan to apply for GSOC?
2012-04-03 16:19 <dfamorato> cedk: Yep, been wanting to do it. I guess I will apply for the Demo Script idea then. Think is OK ?
2012-04-03 16:20 <cedk> dfamorato: yes of course but you can apply for many ideas
2012-04-03 16:20 <cedk> dfamorato: also to wait too much because close to the ending period the application is more dificult
2012-04-03 16:20 <dfamorato> cedk: I also want to deliver "One script deployment" using virtualenv and so on.
2012-04-03 16:20 <cedk> dfamorato: also you can edit it later until endsing period
2012-04-03 16:21 <dfamorato> cedk: Anything in particular that you would like to see it done and so far no applicants ?
2012-04-03 16:22 <cedk> dfamorato: for now, there is only 1 who already fill the application for historical and comments ideas
2012-04-03 16:22 <cedk> dfamorato: the support of fodt will be a great feature
2012-04-03 16:23 <dfamorato> ok, will look into that for sure
2012-04-03 16:23 <cedk> dfamorato: also the website on top of PyPI
2012-04-03 16:23 <cedk> dfamorato: you can also propose ideas
2012-04-03 16:24 <dfamorato> cedk: Yep.. I was interested into e-commerce intregration with magento/prestashop... But quick discussion with sharoon he opened my eyes on how difficult it would be
2012-04-03 16:25 <cedk> dfamorato: yes the best will be to write one specific to Tryton
2012-04-03 16:26 <dfamorato> cedk: I agree.... See you soon, have a plane to catch !
2012-04-03 16:27 <caravel> hello folks :) dfamorato you might want to read that blog post on this topic - I'm not an expert but that convinced mehttp://version2beta.com/archive/2011/evaluating-tryton-as-an-ecommerce-backend_web-framework.html
2012-04-03 16:28 <caravel> sorry -- http://version2beta.com/archive/2011/evaluating-tryton-as-an-ecommerce-backend_web-framework.html
2012-04-03 16:29 <caravel> ACTION was too late
2012-04-03 16:31 <nicoe> caravel: it is far from impossible to build an e-commerce backend with tryton but it is probably too big for a GSOC project
2012-04-03 16:33 <cedk> nicoe, caravel: we know two companies who did it
2012-04-03 16:35 <caravel> nicoe, I'd take your word on the GSOC assessment :) cedk, sure, I'm the one who tried to clarify the OERP/Tryton wp page, remember
2012-04-03 16:37 <cedk> nicoe, caravel: I think something could be done on GSoC for an ecommerce
2012-04-03 16:37 <caravel> cedk: topic is recurrent and I can understand why. It might help others, to publish general design point of view on tryton.org some day ?
2012-04-03 16:38 <cedk> caravel: openlabs said that they will open nereid once it is amortized
2012-04-03 16:39 <caravel> As for a GSOC project, making it easier/more evident to get started with proteus maybe ?
2012-04-03 16:39 <caravel> cedk: would be great I guess
2012-04-03 16:39 <caravel> (opening nereid)
2012-04-03 16:40 <cedk> caravel: what is difficult with proteus?
2012-04-03 16:41 <caravel> cedk: I was thinking of some "proteus for real dummies" guide :)
2012-04-03 16:41 <caravel> ACTION is targetting himself :D
2012-04-03 16:41 <cedk> caravel: the README is not enough?
2012-04-03 16:42 <caravel> cedk: never enough -- I still don't feel like a web dev (yet?) ^^
2012-04-03 16:42 <caravel> sorry, that's another issue ! good day
2012-04-03 16:43 <caravel> ACTION hides
2012-04-03 16:44 <cedk> caravel: proteus is not really for web dev
2012-04-03 16:46 <caravel> cedk: sorry don't waste your time, I meant I still have much to learn and practice to get anywhere that route myself
2012-04-03 16:46 <caravel> ACTION would stop the clock running if it was achievable
2012-04-03 19:27 <Pander> Hi all, in Tryton 2.0 I had a working search on categories in party overview. This was an own implementation. In Tryton 2.2.1 I don't see it. How can I make it reappear?
2012-04-03 19:54 -!- Mayank(~mayank@122.162.105.187) has left #tryton
2012-04-03 20:01 <cedk> Pander: what do you mean by "don't see it"?
2012-04-03 20:03 <Pander> there use to be extra search filters
2012-04-03 20:03 <Pander> now there is only one
2012-04-03 20:03 <cedk> Pander: http://doc.tryton.org/2.2/tryton/doc/usage.html#id13
2012-04-03 20:05 <Pander> ok, my code is http://pastebin.com/C8JERVy8
2012-04-03 20:06 <Pander> ah wait..
2012-04-03 20:06 <cedk> Pander: I guess you have a function field
2012-04-03 20:06 <cedk> Pander: so just type the name:
2012-04-03 20:08 <Pander> when I use Code: 3 I get all parties with 3 in the code :)
2012-04-03 20:08 <Pander> when I use Categories: a I get a pink screen and then a white screen with no results
2012-04-03 20:08 <Pander> should I remove that custom code?
2012-04-03 20:09 <cedk> Pander: perhaps there is a collision with names
2012-04-03 20:09 <Pander> ?
2012-04-03 20:10 <cedk> Pander: there is already a field named "Categories"
2012-04-03 20:11 <Pander> I also have an categories_string = fields.Function(fields.Char('Categories' ...
2012-04-03 20:12 <Pander> The thing is that I also have an def get_categories_string(self, ids, name): which reformats printing of a category and I need that one.
2012-04-03 20:13 <Pander> cedk: this is all the extra code I have: http://pastebin.com/fiqFMBTu
2012-04-03 20:14 <cedk> Pander: yes I guess there is a name collision between categories_string and categories
2012-04-03 20:15 <Pander> so I need to remove search_categories_string, but I also have to remove searcher='search_categories_string' from line 3, correct?
2012-04-03 20:15 <Pander> sorry, you post was sooner
2012-04-03 20:15 <cedk> Pander: no need to remove just rename
2012-04-03 20:15 <Pander> ok
2012-04-03 20:16 <Pander> and I still need the searcher method too?
2012-04-03 20:18 <cedk> Pander: don't know need to check how search on m2m works
2012-04-03 20:19 <Pander> I will try rename in .py and .xml now
2012-04-03 20:21 <cedk> Pander: I think it could work by you should customize the search_rec_name of category
2012-04-03 20:24 <Pander> the rename I did failed and the categories column was not present, gonna restore first.
2012-04-03 20:26 <Pander> restored :S OK, I found search_rec_name.
2012-04-03 20:30 <Pander> to start from the beginning: I add <field name="categories_string" select="1"/> to party.party_view_tree in order to see a column with categories, correct?
2012-04-03 20:30 <Pander> or do I need to use another name in 2.2?
2012-04-03 20:32 <cedk> Pander: no
2012-04-03 20:36 <Pander> cedk: ok so I have <field name="categories_string" select="1"/>, therefore I need to add categories_string = fields.Function(fields.Char('Categories' ... to my .py file. is that correct?
2012-04-03 20:40 <cedk> Pander: there is no more select attribute
2012-04-03 20:40 <cedk> Pander: and if you put categories_string and categories on the same view, you will get a name collision
2012-04-03 20:46 <Pander> cedk: ok. I want to do it the 2.2 way but have no idea how to go about it. So I do not want to use categories_string per se. So back to step one.
2012-04-03 20:47 <Pander> cedk: I want to have a column with categories. for now I do not care about reformatting but I do care about searching
2012-04-03 20:47 <Pander> cedk: what to put in the .xml?
2012-04-03 20:48 <Pander> cedk: (sorry for the extra question, I'm a bit lost sometimes in 2.2)
2012-04-03 20:59 <cedk> Pander: just put the categories field on the list view
2012-04-03 21:00 <Pander> cedk: then it gives an XML error on the View when I try to install the module
2012-04-03 21:01 <Pander> cedk: I tried it several times
2012-04-03 21:03 <Pander> cedk: http://pastebin.com/k7jy8iCc and on line 9 remove the "_string" correct?
2012-04-03 21:03 <Pander> cedk: aaah, you mean not to use select="1" ?
2012-04-03 21:06 <Pander> cedk: ok, I have a column with categories, it shows (1) and (2) etc. that is working now, few :)
2012-04-03 21:09 <Pander> cedk: autocomplete search field of "Categories: "does not work and searching on that column is indeed not working. what is the second step? to write a reformatter for that column?
2012-04-03 21:19 -!- sisalp(~dominique@annecy.sisalp.net) has left #tryton
2012-04-03 21:25 <Pander> cedk: in other words, where do the (1) and (2) originate and where do I override that?
2012-04-03 21:25 <cedk> Pander: what do you mean by autocompletion doesn't work?
2012-04-03 21:26 <Pander> cedk: If you type "Nam" the client will suggest "Name: "
2012-04-03 21:26 <Pander> cedk: If I type "Cat" nothing is suggested, but was suggested before when I had the conflicting code
2012-04-03 21:28 <Pander> cedk: so I have the <field name="categories"/> what do I do in the .py? again add a fields.Function(fields.Char(...?
2012-04-03 21:29 <cedk> Pander: strange normally it should work
2012-04-03 21:31 <Pander> cedk: retesting...
2012-04-03 21:33 <Pander> cedk: No searching on categories is not working
2012-04-03 21:37 <cedk> Pander: indeed, I found that in the server side we prevent searching on m2m and o2m
2012-04-03 21:38 <cedk> Pander: I don't see why
2012-04-03 21:41 <Pander> cedk: what is the best cause of action for me since I have to get this operational very soon. I have already code, which is now disabled, so for me now I am ok with implementing searching with custom code.
2012-04-03 21:42 <cedk> Pander: I guess you can use your previous code
2012-04-03 21:42 <Pander> cedk: you can fix searching on m2m and o2 whenever you see fit (or not ;) )
2012-04-03 21:43 <Pander> cedk: ok, how do I go about it? Do I need a ... = fields.Function(fields.Char('Categories' ... again?
2012-04-03 21:43 <cedk> Pander: yes
2012-04-03 21:44 <cedk> Pander: but if you named it the same as "Categories", you can not put both on the list vie
2012-04-03 21:54 <Pander> cedk: OK, so I name it XCategories for now. What do I use for field name?
2012-04-03 22:17 <Pander> cedk: I used xcategories as field name, reformatting works again. no conflicting names, only searching is partly working. autocomplete OK but when searching goes into endless loop
2012-04-03 22:23 <Pander> hugging the cpu even when I kill the client
2012-04-03 22:26 <cedk> Pander: guess you have infinite loop
2012-04-03 22:27 <Pander> cedk: I guessed that too ;)
2012-04-03 22:39 <Pander> cedk: I did some logging and it seems search_xcategories_string is called over and over again :S
2012-04-03 22:40 <cedk> Pander: what is the code?
2012-04-03 22:43 <Pander> cedk: line 58 keeps loggin of http://pastebin.com/vV28TEGT
2012-04-03 22:44 <cedk> Pander: http://pastebin.com/KdxgHgeL
2012-04-03 22:47 <cedk> Pander: searcher should not reuse the field for which it is searching
2012-04-03 22:47 <Pander> cedk: then it logs only once but as a result I get a pink empty screen
2012-04-03 22:48 <cedk> Pander: so it is the searcher method that is buggy
2012-04-03 22:48 <cedk> Pander: I don't know exactly what you try to do with it
2012-04-03 22:49 <Pander> cedk: search case insensitive on categories
2012-04-03 22:51 <Pander> cedk: you helped me once create this. it worked fine in 2.0
2012-04-03 22:51 <cedk> Pander: so just use ilike
2012-04-03 22:51 <cedk> Pander: what is the result of search_xcategories_string
2012-04-03 22:52 <cedk> Pander: I'm going to dinner
2012-04-03 22:52 <cedk> ACTION bbl
2012-04-03 22:53 <Pander> cedk: bon apetit
2012-04-03 22:59 -!- X-tonic(~bha1@115.248.130.148) has left #tryton
2012-04-03 23:37 <Pander> cedk: I fixed it with ilike :) I could simply throw out the ids and looping.
2012-04-03 23:37 <Pander> cedk: thanks!!
2012-04-03 23:47 <Pander> Perhaps a stupid question but where is the delete button for parties in 2.2?
2012-04-03 23:59 <jerojasro> hi all. is there any module that allows tracking the sales made by each employee, and/or that automates the calculation of commissions for each employee (salesman) for each sale?

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