IRC logs of #tryton for Friday, 2010-11-05

chat.freenode.net #tryton log beginning Fri Nov 5 00:00:01 CET 2010
-!- digitalsatori(~tony@116.233.247.131) has joined #tryton02:26
-!- heg(~heg@dyn.83-228-214-048.dsl.vtx.ch) has joined #tryton02:31
-!- pheller(~pheller@2002:ad30:d8c3:0:fa1e:dfff:fee6:aabf) has joined #tryton03:03
-!- heg(~heg@dyn.144-85-222-177.dsl.vtx.ch) has joined #tryton03:10
-!- heg(~heg@dyn.83-228-138-245.dsl.vtx.ch) has joined #tryton03:26
-!- heg(~heg@dyn.83-228-166-153.dsl.vtx.ch) has joined #tryton03:43
-!- ikks(~ikks@190.158.120.174) has joined #tryton03:56
-!- heg(~heg@dyn.83-228-197-158.dsl.vtx.ch) has joined #tryton04:00
-!- heg(~heg@dyn.144-85-200-150.dsl.vtx.ch) has joined #tryton04:20
-!- zodman(~zodman@foresight/developer/zodman) has joined #tryton04:27
-!- heg(~heg@dyn.144-85-160-169.dsl.vtx.ch) has joined #tryton04:36
-!- yangoon(~mathiasb@p549F6811.dip.t-dialin.net) has joined #tryton05:18
-!- heg(~heg@dyn.144-85-139-049.dsl.vtx.ch) has joined #tryton05:40
-!- zodman(~zodman@foresight/developer/zodman) has joined #tryton05:49
-!- digitalsatori(~tony@116.233.247.131) has joined #tryton05:51
-!- heg(~heg@dyn.83-228-158-065.dsl.vtx.ch) has joined #tryton05:56
-!- heg(~heg@dyn.144-85-176-021.dsl.vtx.ch) has joined #tryton06:15
-!- Okko(4dfb8c5f@gateway/web/freenode/ip.77.251.140.95) has joined #tryton06:18
-!- heg(~heg@dyn.144-85-133-213.dsl.vtx.ch) has joined #tryton06:32
-!- heg(~heg@dyn.144-85-187-170.dsl.vtx.ch) has joined #tryton07:07
-!- vladimir(~vladimir@adsl-dyn-88.95-102-9.t-com.sk) has joined #tryton07:33
-!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton07:41
-!- trifon(~trifon@p4FFB8ADF.dip0.t-ipconnect.de) has joined #tryton08:20
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:29
-!- irclog(~irclog@tycho.b2ck.com) has joined #tryton08:34
-!- vladimir_(~vladimir@adsl-dyn-88.95-102-9.t-com.sk) has joined #tryton08:43
-!- Okko(4dfb8c5f@gateway/web/freenode/ip.77.251.140.95) has joined #tryton08:46
-!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton08:57
-!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton09:13
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:22
-!- digitalsatori(~tony@116.233.247.131) has joined #tryton09:27
-!- vincentvdl(~vincent@62.58.29.41) has joined #tryton10:03
vincentvdlHi all. Small question: is it possible in a view to remove a menuitem that another module (which the current one depends on) created? I think it can't be done with xpath10:08
cedkvincentvdl: there is no menuitem in a view10:08
vincentvdlI agree, I meant via XML10:09
-!- bechamel(~user@chimie-prtx11.scf.fundp.ac.be) has joined #tryton10:18
cedkvincentvdl: you can write active=False on the menuitem10:18
vincentvdlThanks, will look into it now!10:20
-!- paepke(~paepke@p4FEB30B2.dip.t-dialin.net) has joined #tryton10:45
-!- bechamel(~user@chimie-prtx11.scf.fundp.ac.be) has joined #tryton10:58
-!- lem0na(~lem0na@84.40.71.19) has joined #tryton11:18
-!- Timitos(~kp@88.217.184.172) has joined #tryton12:32
vincentvdlAnther one: When I add a Many2One field to party.party and click Add, is there any way to retrieve the pary's ID in one of the default values of that new model? I expected it should be in context, but active_id is not listed when I print it in one of the default_xxx methods. What am I missing=13:23
-!- tony_(~tony@116.233.243.120) has joined #tryton13:32
-!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton13:43
bechamelvincentvdl: you should pass it with the context, check for example "default_to_location" in stock/move.py13:52
bechamelvincentvdl: the "Transaction().context.get('warehouse')" retreive the value that as been set in stock/shipment.py13:53
bechamelvincentvdl: ex: the incoming_moves O2M puts "'warehouse': Eval('warehouse')" in the context13:54
-!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton14:00
vincentvdlWow, glad to see this! Thanks!14:08
bechamelvincentvdl: this method is considered "hackish" but sometimes it's the only way14:14
-!- pheller(~pheller@c1fw226.constantcontact.com) has joined #tryton14:14
vincentvdlyes, definitely... I'm at least glad there's a somewhat acceptable workaround14:20
-!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton14:21
-!- woakas(~woakas@pcsp163-59.supercabletv.net.co) has joined #tryton14:50
phellergood morning / afternoon15:00
-!- chrue(~chrue@host-091-097-016-006.ewe-ip-backbone.de) has joined #tryton15:18
-!- gremly(~gremly@200.106.202.91) has joined #tryton15:45
-!- enlightx_(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton16:27
-!- woakas(~woakas@pcsp163-59.supercabletv.net.co) has joined #tryton16:38
-!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has left #tryton16:57
-!- pheller(~pheller@c1fw226.constantcontact.com) has joined #tryton17:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton17:31
-!- pheller(~pheller@c1fw226.constantcontact.com) has joined #tryton17:39
ecarrerasHi all18:03
ecarrerasin tryton is possible to modify a python constraint with inheritance?18:03
ecarrerasmodify the behavior18:04
ecarrerasor delete the constraint18:04
cedkecarreras: you can override the method18:04
cedkecarreras: deleting will mean not calling the super method which should be done carefully18:04
ecarrerasI think the same in openerp, but the constraint is stored in [func, msg, fields]18:05
ecarrerasand never is overwrited :(18:05
ecarrerasi really hate openerp but in the office the change to tryton is not possible yet :/18:05
cedkecarreras: in Tryton, we don't store the method address on the Models but simply the name18:05
cedkecarreras: why?18:06
ecarreraswe have a lot of modules written... aprox 20018:07
ecarrerasbefore I get in... they used a MS Access to store the information18:07
ecarrerasI migrated all the tables to TinyERP 3.018:08
ecarrerasand there ara a lot of work :(18:08
ecarrerass/ara/are/g18:08
cedkecarreras: that's an old version :-)18:08
ecarrerasyeah now we have all in 5.018:09
cedkecarreras: but at this time, I find that TinyERP was not so bad18:09
phellercedk: I think the neso bug I posted is due to a database locking issue18:09
ecarrerasI think the change will be possible when we have to migrate in 6.0 :)18:09
cedkecarreras: they already almost dropped 5.0 support18:10
cedkpheller: could you elaborate?18:10
ecarrerasyes, for this I'm studying tryton change18:11
cedkecarreras: good starting point18:11
cedkecarreras: you should also list your requirements18:11
phellercedk: I put a breakpoint on "return eval(..." in tools/misc.py....  I try to confirm the quotation, and I step through from the break.... I get a database lock error.  One moment, I'll duplicate and do a pastebin18:11
ecarrerasbut we can't do it inmediatly because how we justify this work to the clients :(18:11
ecarrerasfor this, we can move to tryton in the future (1 year or so)18:12
cedkecarreras: yes that's the trap :-)18:12
ecarrerasand now I'm studying the tryton API and assuring that is the best way :)18:14
cedkecarreras: ... a better way :-)18:14
ecarrerasand... I can say that: is the way18:14
ecarrerasyeah for now better... in the future :P18:15
phellercedk: http://pastebin.com/4tJ1VuGG18:16
cedkpheller: it is the cron18:18
phellercedk: ah, it's cron trying to run while the sale workflow is attempting to update the database?  In that case, this is probably expected.18:20
cedkpheller: yes almost18:20
cedkpheller: I will try to reproduce18:21
phellercedk: ok, this issue isn't the real problem, the real problem is the traceback when trying to confirm the sale18:21
phellercedk: I just happened across this error while trying to find the real problem....  anyways, thanks18:22
cedkpheller: but it is really strange that your issue happens only on neso18:22
phellercedk: agreed18:22
phellerthe only difference between my neso and tryton/trytond test is that trytond was using postgres18:23
bechamelpheller, cedk : cron is running in a separate thread, I'm not sure sqlite support two thread writing the db in parallel18:38
cedkpheller: I can reproduce18:44
cedkit is not linked to the cron nor the lock of the table18:44
phellercedk: ok, good.  at least I don't have a special case18:45
-!- cheche(cheche@188.85.213.151) has joined #tryton18:47
-!- pheller(~pheller@c1fw226.constantcontact.com) has joined #tryton19:03
-!- pheller(~pheller@c1fw226.constantcontact.com) has joined #tryton19:41
-!- chrue(~chrue@host-091-097-016-006.ewe-ip-backbone.de) has joined #tryton19:53
-!- lem0na(~lem0na@84.40.71.19) has joined #tryton20:37
phellercedk: any luck chasing that issue down?21:01
cedkpheller: not yet21:09
phellercedk: ok21:09
-!- trifon(~trifon@91-67-144-158-dynip.superkabel.de) has joined #tryton21:26
-!- lem0na(~lem0na@84.40.71.19) has joined #tryton21:33
-!- chrue(~chrue@host-091-097-016-006.ewe-ip-backbone.de) has joined #tryton21:44
-!- paepke_(~paepke@p4FEB30B2.dip.t-dialin.net) has joined #tryton21:49
-!- paepke_(~paepke@p4FEB30B2.dip.t-dialin.net) has joined #tryton22:12
-!- trifon(~trifon@91-67-144-158-dynip.superkabel.de) has joined #tryton22:24

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!