IRC logs of #tryton for Wednesday, 2012-05-23

chat.freenode.net #tryton log beginning Wed May 23 00:00:01 CEST 2012
2012-05-23 00:42 -!- sisalp2(~sisalp@annecy.sisalp.net) has left #tryton
2012-05-23 07:24 -!- Timitos(~kp@88.217.184.172) has left #tryton
2012-05-23 08:49 <grasbauer> pilou: hi - yes - and many thanks
2012-05-23 08:53 <grasbauer> cedk: ping
2012-05-23 14:39 <grasbauer> cedk:ping
2012-05-23 14:40 <cedk> grasbauer: pong
2012-05-23 14:41 <grasbauer> cedk: found a possible bottleneck for the long creation process in project - but dont know, if i'm right
2012-05-23 14:43 <grasbauer> cedk: http://hg.tryton.org/modules/project_plan/file/83cf93374356/work.py#l517
2012-05-23 14:45 <grasbauer> cedk: reset_leveling should ask in http://hg.tryton.org/modules/project_plan/file/83cf93374356/work.py#l523 if leveling_delay and back_leveling_delay > 0
2012-05-23 14:46 <cedk> bechamel: it is your code
2012-05-23 14:46 <grasbauer> cedk: ah - ok
2012-05-23 14:47 <grasbauer> bechamel: ping
2012-05-23 14:48 <bechamel> grasbauer: yes, I'm re-reading the code :)
2012-05-23 14:48 <grasbauer> bechamel: if have a possible patch - i will create an issue for this
2012-05-23 14:49 <cedk> grasbauer: no, create an issue in any way
2012-05-23 14:49 <bechamel> grasbauer: first try to comment the code and see if stuffs are quicker
2012-05-23 14:49 <grasbauer> bechamel: if parent_id is None, sibling_ids result in all records without parent
2012-05-23 14:49 <cedk> indeed I think reset_leveling should be adapted to work with list of ids instead of just one id
2012-05-23 14:50 <grasbauer> cedk: already done - from 14s to 0.4s
2012-05-23 14:52 <bechamel> grasbauer: maybe we should skip completly leveling for task that are not in a project
2012-05-23 14:52 <grasbauer> cedk: other short question - i saw in account_invoice that the report_cache sometimes is set on tehe parse of the report. I tried to adapt this usecase for one of my modules - but it fails, because the transaction is read-only.
2012-05-23 14:53 <cedk> grasbauer: that's why the InvoiceReport is not readonly
2012-05-23 14:54 <grasbauer> bechamel: i extended the search-domain with leveling_delay > 0
2012-05-23 14:58 <grasbauer> cedk: am I dumb - where is it set?
2012-05-23 15:00 <grasbauer> cedk: ok - self._rpc['execute'] = True
2012-05-23 15:00 <grasbauer> cedk: thats a bit magic
2012-05-23 15:06 <cedk> grasbauer: it is in the doc: http://doc.tryton.org/2.4/trytond/doc/ref/models/models.html#trytond.model.Model._rpc
2012-05-23 15:06 <bechamel> grasbauer: another way to improve the search is to also filter on common successor and predecessor
2012-05-23 15:07 <cedk> for reset_leveling, I think search must filter on {,back_}leveling_delay != 0 and on predecessors and successors
2012-05-23 15:08 <grasbauer> cedk: I know _rpc :) - but setting the transaction to read with 'execute' I missed
2012-05-23 15:08 <grasbauer> bechamel: cedk: I solved it with 'OR', [('leveling_delay', '>', 0)], [('back_leveling_delay', '>', 0)]
2012-05-23 15:11 <cedk> grasbauer: why not != 0
2012-05-23 15:15 <grasbauer> cedk: ok
2012-05-23 15:34 -!- Luminos741(~brice@ks380740.kimsufi.com) has left #tryton
2012-05-23 16:10 -!- pjstevns(~pjstevns@nfg3.nfgs.net) has left #tryton
2012-05-23 17:37 -!- Mayank(~mayank@122.162.44.35) has left #tryton
2012-05-23 17:37 <__efx__> hi, where in the administration menu of the python tryton client can I change the date format ?
2012-05-23 17:39 <__efx__> Is it possible to change the format of the date when accessing it through proteus ?
2012-05-23 18:02 <cedk> __efx__: for the client it is on the language
2012-05-23 18:02 <cedk> __efx__: for proteus no because it is a python datetime object
2012-05-23 18:06 <__efx__> cedk: thank you, but for the client do you mean on the Adiminstration -> Localization -> Languages ?
2012-05-23 18:10 <cedk> __efx__: yes
2012-05-23 18:12 <__efx__> cedk: thanks a lot
2012-05-23 19:55 <lukio> hi
2012-05-23 19:59 <__efx__> hello
2012-05-23 22:24 <cjbarnes18> ced: ping

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