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

chat.freenode.net #tryton log beginning Fri Nov 5 00:00:01 CET 2010
2010-11-05 02:26 -!- digitalsatori(~tony@116.233.247.131) has joined #tryton
2010-11-05 02:31 -!- heg(~heg@dyn.83-228-214-048.dsl.vtx.ch) has joined #tryton
2010-11-05 03:03 -!- pheller(~pheller@2002:ad30:d8c3:0:fa1e:dfff:fee6:aabf) has joined #tryton
2010-11-05 03:10 -!- heg(~heg@dyn.144-85-222-177.dsl.vtx.ch) has joined #tryton
2010-11-05 03:26 -!- heg(~heg@dyn.83-228-138-245.dsl.vtx.ch) has joined #tryton
2010-11-05 03:43 -!- heg(~heg@dyn.83-228-166-153.dsl.vtx.ch) has joined #tryton
2010-11-05 03:56 -!- ikks(~ikks@190.158.120.174) has joined #tryton
2010-11-05 04:00 -!- heg(~heg@dyn.83-228-197-158.dsl.vtx.ch) has joined #tryton
2010-11-05 04:20 -!- heg(~heg@dyn.144-85-200-150.dsl.vtx.ch) has joined #tryton
2010-11-05 04:27 -!- zodman(~zodman@foresight/developer/zodman) has joined #tryton
2010-11-05 04:36 -!- heg(~heg@dyn.144-85-160-169.dsl.vtx.ch) has joined #tryton
2010-11-05 05:18 -!- yangoon(~mathiasb@p549F6811.dip.t-dialin.net) has joined #tryton
2010-11-05 05:40 -!- heg(~heg@dyn.144-85-139-049.dsl.vtx.ch) has joined #tryton
2010-11-05 05:49 -!- zodman(~zodman@foresight/developer/zodman) has joined #tryton
2010-11-05 05:51 -!- digitalsatori(~tony@116.233.247.131) has joined #tryton
2010-11-05 05:56 -!- heg(~heg@dyn.83-228-158-065.dsl.vtx.ch) has joined #tryton
2010-11-05 06:15 -!- heg(~heg@dyn.144-85-176-021.dsl.vtx.ch) has joined #tryton
2010-11-05 06:18 -!- Okko(4dfb8c5f@gateway/web/freenode/ip.77.251.140.95) has joined #tryton
2010-11-05 06:32 -!- heg(~heg@dyn.144-85-133-213.dsl.vtx.ch) has joined #tryton
2010-11-05 07:07 -!- heg(~heg@dyn.144-85-187-170.dsl.vtx.ch) has joined #tryton
2010-11-05 07:33 -!- vladimir(~vladimir@adsl-dyn-88.95-102-9.t-com.sk) has joined #tryton
2010-11-05 07:41 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton
2010-11-05 08:20 -!- trifon(~trifon@p4FFB8ADF.dip0.t-ipconnect.de) has joined #tryton
2010-11-05 08:29 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-11-05 08:34 -!- irclog(~irclog@tycho.b2ck.com) has joined #tryton
2010-11-05 08:43 -!- vladimir_(~vladimir@adsl-dyn-88.95-102-9.t-com.sk) has joined #tryton
2010-11-05 08:46 -!- Okko(4dfb8c5f@gateway/web/freenode/ip.77.251.140.95) has joined #tryton
2010-11-05 08:57 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton
2010-11-05 09:13 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton
2010-11-05 09:22 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-11-05 09:27 -!- digitalsatori(~tony@116.233.247.131) has joined #tryton
2010-11-05 10:03 -!- vincentvdl(~vincent@62.58.29.41) has joined #tryton
2010-11-05 10:08 <vincentvdl> Hi 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 xpath
2010-11-05 10:08 <cedk> vincentvdl: there is no menuitem in a view
2010-11-05 10:09 <vincentvdl> I agree, I meant via XML
2010-11-05 10:18 -!- bechamel(~user@chimie-prtx11.scf.fundp.ac.be) has joined #tryton
2010-11-05 10:18 <cedk> vincentvdl: you can write active=False on the menuitem
2010-11-05 10:20 <vincentvdl> Thanks, will look into it now!
2010-11-05 10:45 -!- paepke(~paepke@p4FEB30B2.dip.t-dialin.net) has joined #tryton
2010-11-05 10:58 -!- bechamel(~user@chimie-prtx11.scf.fundp.ac.be) has joined #tryton
2010-11-05 11:18 -!- lem0na(~lem0na@84.40.71.19) has joined #tryton
2010-11-05 12:32 -!- Timitos(~kp@88.217.184.172) has joined #tryton
2010-11-05 13:23 <vincentvdl> Anther 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=
2010-11-05 13:32 -!- tony_(~tony@116.233.243.120) has joined #tryton
2010-11-05 13:43 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton
2010-11-05 13:52 <bechamel> vincentvdl: you should pass it with the context, check for example "default_to_location" in stock/move.py
2010-11-05 13:53 <bechamel> vincentvdl: the "Transaction().context.get('warehouse')" retreive the value that as been set in stock/shipment.py
2010-11-05 13:54 <bechamel> vincentvdl: ex: the incoming_moves O2M puts "'warehouse': Eval('warehouse')" in the context
2010-11-05 14:00 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton
2010-11-05 14:08 <vincentvdl> Wow, glad to see this! Thanks!
2010-11-05 14:14 <bechamel> vincentvdl: this method is considered "hackish" but sometimes it's the only way
2010-11-05 14:14 -!- pheller(~pheller@c1fw226.constantcontact.com) has joined #tryton
2010-11-05 14:20 <vincentvdl> yes, definitely... I'm at least glad there's a somewhat acceptable workaround
2010-11-05 14:21 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton
2010-11-05 14:50 -!- woakas(~woakas@pcsp163-59.supercabletv.net.co) has joined #tryton
2010-11-05 15:00 <pheller> good morning / afternoon
2010-11-05 15:18 -!- chrue(~chrue@host-091-097-016-006.ewe-ip-backbone.de) has joined #tryton
2010-11-05 15:45 -!- gremly(~gremly@200.106.202.91) has joined #tryton
2010-11-05 16:27 -!- enlightx_(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton
2010-11-05 16:38 -!- woakas(~woakas@pcsp163-59.supercabletv.net.co) has joined #tryton
2010-11-05 16:57 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has left #tryton
2010-11-05 17:09 -!- pheller(~pheller@c1fw226.constantcontact.com) has joined #tryton
2010-11-05 17:31 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-11-05 17:39 -!- pheller(~pheller@c1fw226.constantcontact.com) has joined #tryton
2010-11-05 18:03 <ecarreras> Hi all
2010-11-05 18:03 <ecarreras> in tryton is possible to modify a python constraint with inheritance?
2010-11-05 18:04 <ecarreras> modify the behavior
2010-11-05 18:04 <ecarreras> or delete the constraint
2010-11-05 18:04 <cedk> ecarreras: you can override the method
2010-11-05 18:04 <cedk> ecarreras: deleting will mean not calling the super method which should be done carefully
2010-11-05 18:05 <ecarreras> I think the same in openerp, but the constraint is stored in [func, msg, fields]
2010-11-05 18:05 <ecarreras> and never is overwrited :(
2010-11-05 18:05 <ecarreras> i really hate openerp but in the office the change to tryton is not possible yet :/
2010-11-05 18:05 <cedk> ecarreras: in Tryton, we don't store the method address on the Models but simply the name
2010-11-05 18:06 <cedk> ecarreras: why?
2010-11-05 18:07 <ecarreras> we have a lot of modules written... aprox 200
2010-11-05 18:07 <ecarreras> before I get in... they used a MS Access to store the information
2010-11-05 18:08 <ecarreras> I migrated all the tables to TinyERP 3.0
2010-11-05 18:08 <ecarreras> and there ara a lot of work :(
2010-11-05 18:08 <ecarreras> s/ara/are/g
2010-11-05 18:08 <cedk> ecarreras: that's an old version :-)
2010-11-05 18:09 <ecarreras> yeah now we have all in 5.0
2010-11-05 18:09 <cedk> ecarreras: but at this time, I find that TinyERP was not so bad
2010-11-05 18:09 <pheller> cedk: I think the neso bug I posted is due to a database locking issue
2010-11-05 18:09 <ecarreras> I think the change will be possible when we have to migrate in 6.0 :)
2010-11-05 18:10 <cedk> ecarreras: they already almost dropped 5.0 support
2010-11-05 18:10 <cedk> pheller: could you elaborate?
2010-11-05 18:11 <ecarreras> yes, for this I'm studying tryton change
2010-11-05 18:11 <cedk> ecarreras: good starting point
2010-11-05 18:11 <cedk> ecarreras: you should also list your requirements
2010-11-05 18:11 <pheller> cedk: 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 pastebin
2010-11-05 18:11 <ecarreras> but we can't do it inmediatly because how we justify this work to the clients :(
2010-11-05 18:12 <ecarreras> for this, we can move to tryton in the future (1 year or so)
2010-11-05 18:12 <cedk> ecarreras: yes that's the trap :-)
2010-11-05 18:14 <ecarreras> and now I'm studying the tryton API and assuring that is the best way :)
2010-11-05 18:14 <cedk> ecarreras: ... a better way :-)
2010-11-05 18:14 <ecarreras> and... I can say that: is the way
2010-11-05 18:15 <ecarreras> yeah for now better... in the future :P
2010-11-05 18:16 <pheller> cedk: http://pastebin.com/4tJ1VuGG
2010-11-05 18:18 <cedk> pheller: it is the cron
2010-11-05 18:20 <pheller> cedk: ah, it's cron trying to run while the sale workflow is attempting to update the database? In that case, this is probably expected.
2010-11-05 18:20 <cedk> pheller: yes almost
2010-11-05 18:21 <cedk> pheller: I will try to reproduce
2010-11-05 18:21 <pheller> cedk: ok, this issue isn't the real problem, the real problem is the traceback when trying to confirm the sale
2010-11-05 18:22 <pheller> cedk: I just happened across this error while trying to find the real problem.... anyways, thanks
2010-11-05 18:22 <cedk> pheller: but it is really strange that your issue happens only on neso
2010-11-05 18:22 <pheller> cedk: agreed
2010-11-05 18:23 <pheller> the only difference between my neso and tryton/trytond test is that trytond was using postgres
2010-11-05 18:38 <bechamel> pheller, cedk : cron is running in a separate thread, I'm not sure sqlite support two thread writing the db in parallel
2010-11-05 18:44 <cedk> pheller: I can reproduce
2010-11-05 18:44 <cedk> it is not linked to the cron nor the lock of the table
2010-11-05 18:45 <pheller> cedk: ok, good. at least I don't have a special case
2010-11-05 18:47 -!- cheche(cheche@188.85.213.151) has joined #tryton
2010-11-05 19:03 -!- pheller(~pheller@c1fw226.constantcontact.com) has joined #tryton
2010-11-05 19:41 -!- pheller(~pheller@c1fw226.constantcontact.com) has joined #tryton
2010-11-05 19:53 -!- chrue(~chrue@host-091-097-016-006.ewe-ip-backbone.de) has joined #tryton
2010-11-05 20:37 -!- lem0na(~lem0na@84.40.71.19) has joined #tryton
2010-11-05 21:01 <pheller> cedk: any luck chasing that issue down?
2010-11-05 21:09 <cedk> pheller: not yet
2010-11-05 21:09 <pheller> cedk: ok
2010-11-05 21:26 -!- trifon(~trifon@91-67-144-158-dynip.superkabel.de) has joined #tryton
2010-11-05 21:33 -!- lem0na(~lem0na@84.40.71.19) has joined #tryton
2010-11-05 21:44 -!- chrue(~chrue@host-091-097-016-006.ewe-ip-backbone.de) has joined #tryton
2010-11-05 21:49 -!- paepke_(~paepke@p4FEB30B2.dip.t-dialin.net) has joined #tryton
2010-11-05 22:12 -!- paepke_(~paepke@p4FEB30B2.dip.t-dialin.net) has joined #tryton
2010-11-05 22:24 -!- trifon(~trifon@91-67-144-158-dynip.superkabel.de) has joined #tryton

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