IRC logs of #tryton for Wednesday, 2013-01-23

chat.freenode.net #tryton log beginning Wed Jan 23 00:00:02 CET 2013
2013-01-23 05:34 <iamnoob> plantian: ping
2013-01-23 05:34 <plantian> iamnoob: hey
2013-01-23 05:38 <iamnoob> plantian:i keep having this application error.. and in having a hard time figuring whats wrong
2013-01-23 05:40 <iamnoob> plantian: here is the trace back error.. link: pastebin.com/VfXZ6ftM
2013-01-23 05:42 <iamnoob> plantian: here my XML file .. link: pastebin.com/WzKWcGrT
2013-01-23 05:42 <iamnoob> i keep having that problem after i updated my version to 2.6 :( do you have any idea what i did wrong?
2013-01-23 05:44 <plantian> iamnoob: Maybe the icon was removed, try changin this to something else: icon="tryton-users"/>
2013-01-23 05:45 <plantian> iamnoob: maybe tryton-party
2013-01-23 05:45 <plantian> iamnoob: icon="tryton-party"/>
2013-01-23 05:47 <iamnoob> plantian: already tried tryton-users .. keep having that error too.. what i also cant figure out.. in the official modules.. they are using "tryton-users" as icon.. and not having a problem
2013-01-23 05:47 <iamnoob> plantian: ill try tryton-party.. brb
2013-01-23 05:50 <iamnoob> plantian: no luck in "tryton-party" :(
2013-01-23 05:53 <plantian> What is the error now?
2013-01-23 05:53 <plantian> iamnoob: Did you update the module?
2013-01-23 05:55 <iamnoob> plantian: almost the same.. its Exception: ('ValidateError', u'The value "tryton-party" for the field "icon" is not in the selection')
2013-01-23 05:55 <iamnoob> plantian: actually im installing the module.. but failed to do so because i got this error
2013-01-23 05:59 <plantian> iamnoob: Are there any other errors about that error?
2013-01-23 06:06 <plantian> iamnoob: Randomly guessing over here, can you try: icon="tryton-tree"?
2013-01-23 06:06 <iamnoob> platian: so far im only having this error.. been looking into the official modules for some clue why this keeps happening..
2013-01-23 06:07 <plantian> iamnoob: Maybe in order to use the party icon you have to depend on the party module.
2013-01-23 06:07 <iamnoob> plantian: sure ill try that one too.. thanks :)
2013-01-23 06:07 <plantian> but I looked and the tryton-tree icon is in the ir module which you probably listing in your dependencies
2013-01-23 06:46 <iamnoob> plantian: oh.. do i have to also install the party module in order to use its icon? in starting from a clean database.. with no modules installed
2013-01-23 06:49 <plantian> iamnoob: well there are some built-in icons in the ir module which is part of trytond, so you'd have to try those
2013-01-23 06:49 <plantian> iamnoob: Did you try the tryton-tree icon?
2013-01-23 06:52 <iamnoob> plantian: it gives me another error. a diffrent one.. ill pastebin it so you can see
2013-01-23 06:53 <iamnoob> plantian: pastebin.com/6knDTSRi
2013-01-23 06:54 <iamnoob> plantian: ill try to check the ir module.. see what i can use
2013-01-23 06:56 <plantian> iamnoob: What does you tryton.cfg file look like?
2013-01-23 06:57 <iamnoob> plantian: its like this .. [tryton] version=2.6.1 xml: Catalog.xml
2013-01-23 06:59 <plantian> iamnoob: that second error seems to be real, in your pasted xml you have a tree tag with a closing form tag
2013-01-23 07:00 <iamnoob> plantian: i dont quit get what you mean.. can you tell me what line is it please?
2013-01-23 07:00 <plantian> iamnoob: also, you should list at least res and ir I think in the depends section of your tryton.cfg
2013-01-23 07:01 <plantian> iamnoob: line 28 a tree starts, but on line 31 a form tag closes the tree, ie. line 31 should be </tree>
2013-01-23 07:01 <plantian> iamnoob: in this file -- http://pastebin.com/WzKWcGrT
2013-01-23 07:02 <iamnoob> plantian: oh! i see... ill change those part.. feed back you i a short while.. thanks!
2013-01-23 07:12 <iamnoob> plantian: it works! cool.. although again got new problem after it succefully instaled
2013-01-23 07:13 <iamnoob> plantian: ill to figure the new problem myself.. thanks plantian
2013-01-23 07:39 -!- calbasi(~joan@14.66.14.37.dynamic.jazztel.es) has left #tryton
2013-01-23 08:20 <iamnoob> im having a list.index(x): x not in list - this happens after i install my custom modele.. then after i try open it. anyone have an idea why i getting the error? link: pastebin.com/SgK2iFnf
2013-01-23 09:31 <plantian> iamnoob: it looks like maybe you didn't paste the full traceback
2013-01-23 09:54 <iamnoob> plantian: hi.. i have updated the pastebin link : pastebin.com/SgK2iFnf
2013-01-23 09:58 <iamnoob> plantian: this happens after i installed my module.. then after i try to open it up..
2013-01-23 10:27 <iamnoob> plantian: found out the real problem.. thanks for the reply anyway :)
2013-01-23 10:54 <iamnoob> question here please.. how can i tell tryton to create the table in version 2.6?
2013-01-23 12:32 <katr> cedk: Hi! As to our conversation on saturday about invoices that are not saved to cache during confirmation.
2013-01-23 12:32 <katr> cedk: Should I file a bug report?
2013-01-23 12:39 <cedk> katr: yes
2013-01-23 12:42 <katr> cedk: O.K.
2013-01-23 13:07 <katr> cedk: Should I provide a patch?
2013-01-23 13:12 <cedk> katr: if you can
2013-01-23 13:14 <katr> cedk: Yes i can, but it will take some time until I migrate to 2.6.
2013-01-23 13:16 <cedk> katr: don't understand
2013-01-23 13:24 <katr> cedk: I'm still working with 2.4. You want the patches against trunk or 2.6?
2013-01-23 13:31 <katr> cedk: The wiki answers my question: "Test your issue on the latest development version."
2013-01-23 19:06 -!- calbasi(~joan@14.66.14.37.dynamic.jazztel.es) has left #tryton
2013-01-23 19:52 <plantian> Is it possible to override a classmethod with an instance method? For example, if I were to override the ShipmentOut.assign_try classmethod.
2013-01-23 19:55 <cedk> plantian: no
2013-01-23 19:59 <plantian> cedk: okay, it seems to not really make sense to have assign_try apply to more than one shipment, if a single shipment in the list of shipments doesn't assign then all the shipments fail to assign
2013-01-23 20:08 <cedk> plantian: but as it is a button it must be a classmethod
2013-01-23 21:34 <giedrius> hi guys
2013-01-23 21:35 <giedrius> is it just me, or move line reconciliation is not working for you too?
2013-01-23 21:36 <giedrius> i get error "AttributeError: 'account.move.reconcile_lines.writeoff' Model has no attribute 'journal': None", but when i check this object, i see that journal is defined on it :/ really strange
2013-01-23 21:38 <rmu> giedrius: got the same problem
2013-01-23 21:38 <rmu> didn't have time to report yet
2013-01-23 21:39 <giedrius> i guess it is trytond related and not trytond_account itself
2013-01-23 21:40 <rmu> it seems the field writeoff is not initialized to "None" but some instance that represents "None" but isn't
2013-01-23 21:41 <rmu> i temporarily fixed it with a "try:" ... "except AttributeError" around those "if wizard.journal: "... lines where the error happened
2013-01-23 21:41 <rmu> sorry to be vague ;-)
2013-01-23 21:43 <giedrius> thanks, it should be okay for quick workaround :)
2013-01-23 22:09 <plantian> Just to check my understanding of wizards, this method is not actually necessary right? http://hg.tryton.org/modules/stock/file/1b315604e53e/shipment.py#l2073
2013-01-23 22:56 <cedk> giedrius: for me, reconcile lines with writeoff works
2013-01-23 23:04 <giedrius> cedk: have you tried to reconcile lines without writeoff?
2013-01-23 23:05 <cedk> giedrius: no
2013-01-23 23:07 <giedrius> seems that when lines are reconciled without writeoff, the StateView is not initialized, so it throws errors when trying to access self.writeoff.journal at transition_reconcile
2013-01-23 23:17 <rmu> cedk: in my case, the error happens on this line: http://hg.tryton.org/modules/account/file/d4520789dc48/move.py#l1505
2013-01-23 23:17 <rmu> cedk: with attribute error.
2013-01-23 23:17 <rmu> cedk: i will file issue
2013-01-23 23:18 <rmu> printing self.writeoff shows account.move.reconcile_lines.writeoff,None
2013-01-23 23:19 <cedk> rmu: I'm on it
2013-01-23 23:22 <cedk> rmu, giedrius: http://codereview.tryton.org/649002
2013-01-23 23:24 <rmu> cedk: i can test on weekend
2013-01-23 23:27 <giedrius> cedk: looks good
2013-01-23 23:27 <rmu> cedk: i did also try the getattr-thing, but this "account.move.reconcile_lines.writeoff,None" does have a journal attribute, but accessing it did result in same error
2013-01-23 23:32 <cedk> rmu: don't understand
2013-01-23 23:33 <rmu> cedk: nevermind. i will check on weekend. off to bed for today. thx

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