IRC logs of #tryton for Monday, 2013-01-21

chat.freenode.net #tryton log beginning Mon Jan 21 00:00:01 CET 2013
2013-01-21 00:35 <albertca> cedk: still there?
2013-01-21 02:14 <iamnoob> ding dong...
2013-01-21 02:20 <iamnoob> i need a little help please.. i dont get why i cant make my domain on a Many2One to work.. (please see pastebin.com/6iNRxCkv) line 19-20
2013-01-21 02:23 <iamnoob> (in my code) i just wanted.. after i select a GroupCode... all that will be available on the "search record" of ClassCode is all of the record that is related to the selected GroupCode
2013-01-21 03:22 <plantian> iamnoob: Does the catgroup.catclass model have a GroupCode field?
2013-01-21 03:31 <iamnoob> plantan: yes it has.. im going to paste bin it too to be clear
2013-01-21 03:31 <plantian> iamnoob: I think in that chase the field name in the domain would just be GroupCode.
2013-01-21 03:31 <plantian> *in the case
2013-01-21 03:33 <iamnoob> plantian: here is the pastebin of my model catgroup.catclass link: pastebin.com/8usT3BLf
2013-01-21 03:36 <iamnoob> plantian: ok going to try domain = [('GroupCode', '=' , eval('GroupCode'))]
2013-01-21 03:38 <plantian> iamnoob: okay, sounds good, i don't remember how the eval works
2013-01-21 03:39 <plantian> but the field name is now correct
2013-01-21 03:41 <iamnoob> plantian: actaully so am i.. i have been reviewing a past thread on tryton google group.. i not sure if eval('<field name>') or its a eval('<function>')
2013-01-21 03:42 <iamnoob> here the link.. i thinks i wanted the same goal as this the thread starter..
2013-01-21 03:43 <iamnoob> link: https://groups.google.com/forum/?fromgroups=#!topic/tryton/4mwhAFD4X6I
2013-01-21 03:46 <plantian> iamnoob: I think you want Eval instead of eval. You have to import Eval from trytond.pyson I think.
2013-01-21 03:46 <plantian> eval is probably a python builtin function, which is unrelated
2013-01-21 03:47 <plantian> iamnoob: Also I think you need to list GroupCode in a depends attribute of the Many2One field.
2013-01-21 03:47 <plantian> iamnoob: http://doc.tryton.org/2.4/trytond/doc/ref/models/fields.html?highlight=depends#trytond.model.fields.Field.depends
2013-01-21 03:48 <plantian> ie. ..., depends=['GroupCode'])
2013-01-21 03:51 <iamnoob> plantian: thanks.. ill be reviewing the link first. feed back you later plantian.. thanks again.
2013-01-21 04:00 <iamnoob> plantian: trying to do "from trytond.pyson import Eval" but getting ImportError: No module name pyson..
2013-01-21 04:00 <plantian> what tryton version are you using again?
2013-01-21 04:02 <iamnoob> plantian: i got a 1.4.3 trytond and a 1.4.1 tryton version
2013-01-21 04:05 <iamnoob> plantian: also using ubuntu 10.04(lucid)
2013-01-21 04:24 <plantian> iamnoob: yeah sorry, i was looking at the 2.4 docs
2013-01-21 04:29 <iamnoob> plantian: any idea how i can update my tryton version? i think mines a little old..
2013-01-21 04:30 <plantian> iamnoob: Do you have an existing deployment you have to update or are you just starting now to write custom modules?
2013-01-21 04:31 <iamnoob> plantian: im just starting now to write a custom module
2013-01-21 04:32 <plantian> iamnoob: Oh yeah, I think you should write your modules for the latest stable version if that is the case.
2013-01-21 04:33 <plantian> iamnoob: otherwise you won't be able to access newer modules and whatnot
2013-01-21 04:34 <iamnoob> plantian: yeah.. im really getting lost :).. actually i dont know where to start.. on how to upgrade my tryton/trytond version
2013-01-21 04:36 <iamnoob> plantian: im trying to reinstall tryon..(in a quest to use the updated one) following the code.google.com/p/tryton/wiki/InstallationOnDebian
2013-01-21 04:37 <iamnoob> but i got lost on the Dependecies section.. it seems the page for the client and server dependecies is not working anymore
2013-01-21 04:38 <plantian> iamnoob: yeah sorry, I don't mean to derail you from development, it just can be hard to upgrade api if you write to 1.4 and then later want to use later features
2013-01-21 04:40 <iamnoob> plantian: no biggie.. i got your point. thanks to that :)
2013-01-21 04:43 <plantian> iamnoob: Yeah I'm not sure how to use later version in Ubuntu, you might have to ask someone more familiar with Ubuntu. I install from the source. Maybe 2.6 isn't the best, but there must be something newer than 1.4.
2013-01-21 04:51 <iamnoob> plantian: can i ask what version are you using?
2013-01-21 04:52 <plantian> iamnoob: I was using 1.8 but the last 2 weeks I have been trying to update to 2.6.
2013-01-21 04:52 <plantian> I have been running 1.8 for about a year now I think.
2013-01-21 04:53 <iamnoob> plantian: cool, ok ill try to update mine first before continuing my development.. thanks
2013-01-21 09:14 <iamnoob> hi.. i got my 1.4 custom modules.. how come after i upgrade to 2.6.. its not appearing anymore in administation/Modules/Modules?
2013-01-21 09:42 -!- calbasi(~joan@14.66.14.37.dynamic.jazztel.es) has left #tryton
2013-01-21 09:54 <rmu> iamnoob: there have been numerous API-changes, modules-registration and intialization changed completely from 2.4->2.6
2013-01-21 10:01 <pilou> iamnoob: they should appear
2013-01-21 10:01 <iamnoob> rmu: can i still use my custom module made from version 1.4?
2013-01-21 10:02 <pilou> you must update your custom modules
2013-01-21 10:03 <iamnoob> pilou: hmmm .. what update do i need to change? is it i.e __tryton__.py?
2013-01-21 10:04 <pilou> Some steps are documented, most are not (http://code.google.com/p/tryton/wiki/ReleaseGeneral 2.0->2.1 & 2.2->2.4 are documented)
2013-01-21 10:05 <iamnoob> pilou: thanks ill go read it
2013-01-21 10:12 <rmu> iamnoob: this documents "active record migration" that happened from 2.4->2.6 http://www.b2ck.com/~ced/active_record_migration.txt
2013-01-21 10:54 <iamnoob> rmu: thanks ill try to figure it out
2013-01-21 18:58 -!- calbasi(~joan@14.66.14.37.dynamic.jazztel.es) has left #tryton
2013-01-21 20:37 <plantian> Is there a way to debug 500 Internal Server errors? The exception traceback in the client just shows "None".
2013-01-21 20:49 <pilou> plantian: maybe with "debug_mode = True" in trytond.conf ?
2013-01-21 21:16 <plantian> pilou: Thanks, I solved it by adding log statements in the client code. A default_* method was returning an object instead of an id.
2013-01-21 22:31 -!- Guest38422(~ronna@196.44.177.74) has left #tryton

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