IRC logs of #tryton for Thursday, 2013-01-17

chat.freenode.net #tryton log beginning Thu Jan 17 00:00:02 CET 2013
2013-01-17 00:40 <plantian> cedk: Okay thanks. I couldn't find where they were called, does the client call them on the server? Or are they called by the model somewhere?
2013-01-17 00:46 <cedk> plantian: the client call them but RPC do the glue
2013-01-17 00:47 <plantian> cedk: okay, thanks
2013-01-17 03:43 <iamnoob> hi can anyone please tell me why im having an error on creating a field.Many2One
2013-01-17 03:48 <iamnoob> i got this code
2013-01-17 03:48 <iamnoob> Stocknumber = fields.Many2One('catgroup.manager','NSN',required=True,states=STATES,
2013-01-17 03:48 <iamnoob> on_change=['nsn','datecreated'])
2013-01-17 03:49 <iamnoob> now 'catgroup.manager' is a model from another module
2013-01-17 03:50 <iamnoob> now when im upgrading my module with this changes.. i keep having an error on 'catgroup.manager'
2013-01-17 05:23 <plantian> iamnoob: Can you put the traceback in a pastebin?
2013-01-17 05:24 <plantian> iamnoob: What does your catgroup.manager model look like? You could pastebin that too.
2013-01-17 06:19 <iamnoob> thanks for the reply plantian.. ok ill use pastebin..
2013-01-17 06:31 <iamnoob> plantian: here my code (link: pastebin.com/tXRSE8F2) this is my inventory.py im having error problem on line 126 it seems it cant find the model i want.. and that model is in another module (in a seperate folder too)
2013-01-17 06:32 <iamnoob> here the other module (link: pastebin.com/aBPxXNz7) the one where 'catgroup.manager' model is
2013-01-17 06:35 <plantian> iamnoob: What version of trytond are you using?
2013-01-17 06:37 <plantian> iamnoob: Can you pastebin the exception/traceback?
2013-01-17 06:37 <iamnoob> platian: i got 1.4.3 trytond and 1.4.1 tryton i got it using synaptic package manager
2013-01-17 06:37 <iamnoob> ok thanks.. ill pastebin it
2013-01-17 06:40 <iamnoob> plantian: here is the traceback (link: pastebin.com/20BwQYpz)
2013-01-17 06:44 <plantian> iamnoob: I am a little bit of a tryton noob myself but did you make sure your catalog is in your imports in __init__.py ?
2013-01-17 06:46 <iamnoob> plantian: i did some playing around with the __init__.py and see what happens.. when i include catalog.py on it gives me a different error
2013-01-17 06:47 <plantian> iamnoob: What is the other error?
2013-01-17 06:48 <iamnoob> plantion: actually i dont know whats wrong. i did make a Many2One field similar to this problem.. and its working ok.. you can see it on (link: pastebin.com/aBPxXNz7) line 103
2013-01-17 06:48 <iamnoob> plation: ok ill pastebin the other error.
2013-01-17 06:50 <plantian> iamnoob: the KeyError error seems like the other model is not being loaded at all
2013-01-17 06:52 <iamnoob> plantian: here the other trace back.. when i include CatalogGroup in the __init__
2013-01-17 06:52 <iamnoob> (link: pastebin.com/PzNk4Xdg)
2013-01-17 06:56 <iamnoob> platian: i dont know how it cant load the model i wanted.. unlike the other one i made.. its working ok. still thinking whats i did wrong
2013-01-17 06:58 <plantian> iamnoob: I think this error is probably the real error.
2013-01-17 06:59 <plantian> iamnoob: Did you run trytond -u yourmodulename?
2013-01-17 07:00 <plantian> iamnoob: It might be that you made a character field with the same name beforehand and the database is not updated.
2013-01-17 07:00 <plantian> I see you have this line -- #Stocknumber = fields.Char('National Stock Number') -- did you used to have a character field before the Many2One ?
2013-01-17 07:01 <iamnoob> plantian: yes i did use #Stocknumber = fields.Char('National Stock Number') just to see if changing it will remove the problem. for me to identify
2013-01-17 07:02 <plantian> iamnoob: A manual check might be to open your database using a command line tool and inspect the table inventory_manager and see what column type the Stocknumber column is.
2013-01-17 07:03 <iamnoob> plantian: im trying trytond -u, yourmodulename .. you mean the filename of my .py file?
2013-01-17 07:03 <iamnoob> plantian: ok ill do that.. thanks! ill give you a feedback right away.. thanks again
2013-01-17 07:03 <plantian> iamnoob: I think it is the name of the tryton module, not just the file.
2013-01-17 07:04 <plantian> iamnoob: I might be wrong though, but more people will start showing up in a few hours and they will probably be quicker to debug your problem.
2013-01-17 07:42 <iamnoob> plantian:thanks for the time .. i appriciate it really. gave me idea where to start checking again. just had a quick meal.. cant think with an empty stomack :)
2013-01-17 08:18 -!- Guest70828(~ronald@196.44.177.76) has left #tryton
2013-01-17 09:26 <iamnoob> platian: your right about the real problem. i drop my current database and created a new one. also include the catalog on the __init__.py
2013-01-17 10:19 <plantian> iamnoob: cool, so it works?
2013-01-17 10:41 <iamnoob> platian: yes thanks.. :) drop my old database and let tryton create a new one
2013-01-17 11:30 <rmu> i'm trying to get to the root of another rounding problem in production/bom tree
2013-01-17 11:31 <rmu> given a bom that uses 4m² of product A, and another bom that transforms 1 piece of product B into 10m² of product A
2013-01-17 11:31 <rmu> the bom tree for 1 piece of that bom shows 0 pieces of B are used to produce 4m² of product A
2013-01-17 11:41 <rmu> seems somewhere round is used where ceil should be
2013-01-17 11:49 <udono> rmu: Hi, IIUC it is a bug. But your scenario could be more clear.
2013-01-17 11:58 <rmu> udono: i'm currently checking what is happening when executing the production order
2013-01-17 12:18 <udono> rmu: Thanks but I meant the setup of your BOM calculation is not very clear to me. It would be good for me to have also information about the numbers you would expect.
2013-01-17 12:19 <rmu> udono: i was on the phone
2013-01-17 12:19 <udono> rmu: All in all, I think it is save to put all the information in a new issue.
2013-01-17 12:20 <rmu> udono: i will try to come up with a scenario...
2013-01-17 12:20 <udono> rmu: good.
2013-01-17 12:20 <rmu> the number i would expect is that 1 piece of B is used to produce 10m² of product A
2013-01-17 12:21 <rmu> and then 4m² of those 10m² are used to produce the final product
2013-01-17 12:21 <rmu> bom tree shows that 0 pieces of product B are used to product 4m² of product A
2013-01-17 18:58 <eriam> Hello, I'm trying to find the tryton-dev.py mentionned on a wiki for a FreeBSD install
2013-01-17 18:58 <eriam> here http://code.google.com/p/tryton/wiki/InstallationFreeBSD
2013-01-17 18:58 <eriam> it seems it dissapeared from the repo
2013-01-17 18:59 <eriam> s/dissa/disap/
2013-01-17 19:00 <cedk> eriam: use hgnested
2013-01-17 19:01 <eriam> cedk: ok, I'll look at that, thanks
2013-01-17 19:09 <eriam> cedk: works fine, thanks !
2013-01-17 19:11 <eriam> cedk: hum it's actually complaining when I run a hg nclone http://hg.tryton.org/trytond/
2013-01-17 19:12 <eriam> cedk: http://pastebin.com/u2F2pFXu
2013-01-17 19:15 <cedk> eriam: it works here so probably connection issue
2013-01-17 19:17 <eriam> cedk: ok I'll check that, thanks
2013-01-17 20:46 <plantian> Hi, I'm still trying to understand some elements of Tryton, I think I have found a few action keywords in the client toolbar, but they don't seem to all be there, what is the purpose of action keywords? Why the word "keyword"?
2013-01-17 21:04 <cedk> plantian: keyword is used to define where to show the action
2013-01-17 21:23 <plantian> cedk: Okay thanks, I think I am getting it, what is the "tree_action" keyword? It seems to not be used. Is it deprecated?
2013-01-17 21:28 <cedk> plantian: it is action launch when double clicking on list view
2013-01-17 21:29 <plantian> cedk: I thought that is "tree_open"?
2013-01-17 23:06 <zodman> ping cedk how make grunt works ?¿ http://paste2.org/p/2763723
2013-01-17 23:11 <zodman> not work
2013-01-17 23:11 <zodman> http://paste2.org/p/2763750
2013-01-17 23:11 <zodman> :(
2013-01-17 23:13 <cedk> zodman: you must install the grunt-contrib-*
2013-01-17 23:14 <cedk> zodman: for the second, I think it is because you don't use grunt 0.4.*
2013-01-17 23:15 <zodman> ok
2013-01-17 23:20 <cedk> zodman: but I must say that the js lib are not the more stable I have seen
2013-01-17 23:23 <zodman> nodejs it like ruby on stability :S
2013-01-17 23:47 <zodman> grrr
2013-01-17 23:49 <zodman> really i will replace the Gruntfile for a makefile the minify and watchdog for changes

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