IRC Channels

For open discussions, an IRC Channel have been set up for Open ERP and Open Object: irc://irc.freenode.net/#openobject.

Friday, 2010-07-30

*** Gavin_Achado has joined #openobject00:34
*** Gavin_Achado has left #openobject00:34
*** ovnicraft has quit IRC00:50
*** julian18282 has quit IRC01:56
*** pepeu has quit IRC02:38
*** ovnicraft has joined #openobject02:42
*** ovnicraft has quit IRC03:27
*** r3c4ll has quit IRC04:18
*** ToadP has quit IRC04:31
*** ToadP1 has quit IRC04:31
*** ToadP1 has joined #openobject04:35
*** ToadP has joined #openobject04:35
*** ToadP has quit IRC04:42
*** ToadP1 has quit IRC04:42
*** r3c4ll has joined #openobject04:42
*** ToadP has joined #openobject04:43
*** ToadP1 has joined #openobject04:43
*** ToadP1 has left #openobject04:43
r3c4llwhat is th better IDE, Geany or Anjuta?05:04
*** ToadP has quit IRC05:44
*** r3c4ll has quit IRC05:48
*** Gavin_Achado has joined #openobject05:57
*** Gavin_Achado has left #openobject05:57
*** mr_amit has joined #openobject06:44
*** Nyx has joined #openobject07:25
*** Nyx has quit IRC07:35
*** mr_amit has quit IRC07:57
*** mrcast has joined #openobject08:32
*** mr_amit has joined #openobject08:36
*** matrixise has quit IRC08:37
*** _3pm_ has joined #openobject08:41
*** mrcast has quit IRC08:43
*** mrcast has joined #openobject08:47
*** enlightx has joined #openobject08:49
*** cedk has quit IRC08:59
*** julian1828 has joined #openobject09:04
*** julian1828 has left #openobject09:05
*** mrcast has quit IRC09:06
*** r3c4ll has joined #openobject09:07
*** rationalperseus has joined #openobject09:12
*** rona1 has joined #openobject09:21
*** simahawk has joined #openobject09:24
*** rona1 has left #openobject09:24
*** javivf has joined #openobject09:24
*** cedk has joined #openobject09:28
*** eLBati has joined #openobject09:34
*** bechamel has joined #openobject09:45
*** Flydoire|Taktik has joined #openobject09:47
*** Flydoire|Taktik has joined #openobject09:47
*** KangOl has joined #openobject09:49
*** ChanServ sets mode: +o KangOl09:49
*** hjmf has quit IRC10:21
*** edannenbe has joined #openobject10:32
*** hjmf has joined #openobject10:34
*** matrixise has joined #openobject10:42
*** ChanServ sets mode: +o matrixise10:42
*** hawodi has joined #openobject10:46
*** Red15 has joined #openobject10:47
hawodiHello all.10:49
*** hjmf has joined #openobject10:51
*** quodt has joined #openobject10:52
*** xrg_ has quit IRC10:53
*** xrg_ has joined #openobject10:53
*** hjmf has quit IRC10:55
*** hjmf has joined #openobject10:55
*** dex__ has joined #openobject10:56
hawodiAm trying to raise a warning to notify the user that ordered stock is above what is available. I have written the following code to do that but it's not working. What is wrong please? http://pastebin.com/kctLtkCA11:01
*** xrg_ has quit IRC11:04
Red15hawodi, why do you do it in uos_change ?11:08
Red15did you create the view changes for that on_change tot be triggered ?11:08
*** hjmf has joined #openobject11:12
hawodiRed15: Thanks again.  Am yet to fully understand the complete working of openerp so I modified the following code to implement it. The seems to have the same logic. I did not create the view because i didn't create a view for the product_id_change and that one is running well. Have I missed something?11:16
Red15you need to make sure your uos_change function is called whenever a user changes the uos on the view11:16
Red15unless i'm completely mistaken the uos field on the sale.order.line view does actually already call the product_id_change method11:17
hawodiRed15: http://pastebin.com/kW0fmQFN11:17
Red15because uos and uom influence your product and price11:17
Red15why is that not sufficient for you then ?11:18
hawodiRed15: the complete code: http://pastebin.com/KQ8w3X3B11:19
Red15fyi, are you sure you want to check your quantity like that ?11:21
Red15uos_change is called when you change unit of sales11:21
Red15most of the time that doesnt matter, what gets taken out of stock is the other quantity on the sale order11:21
Red15not the unit of sale11:22
Red15changing your unit of sales will automatically change your "regular" quantity and thus then call the first functions which checks stock quantity11:22
Red15so dont worry about that uos_change function11:22
*** kalymero has joined #openobject11:22
hawodiRed15: hmm, like I said, am still trying to understand much of the code and I appreciate the help I have gotten. So, do I call a function on from the sale order to do the test? any code snippet to achieve the above?11:24
*** hjmf has joined #openobject11:29
Red15hawodi, actually i didnt realize that uos_change is indeed called by the sale order line view already11:31
Red15but still I don't think you should change the code there11:31
Red15because the qty you are receiving in that function is not in the same UoM as the qty you are keeping stock in11:31
Red15product_uos_qty <> product_uom_qty11:32
Red15if you want to check if the user entered more than is available in stock, change the " < 1" part in the product_id_change code11:33
hawodiRed15: Ok.11:33
Red15replace " < 1" with " < qty"11:33
Red15because "qty" is in the product_id_change function signature11:33
Red15and will contain the UoM qty entered by the user.11:33
*** hjmf has quit IRC11:34
hawodiRed15: Thanks again. btw, where can  I get Openerp ApI documentation?11:34
Red15doc.openerp.com11:35
Red15or go follow a training :)11:35
Red15technical training ofc11:35
hawodiRed15: I would love a technical training but I can't afford the cost right now and I wish they is an online training that I can pay for. It would be easier and wondering why no one has thought about it.11:40
Red15well online training isn't really the same imo11:41
hawodiRed15: It is working now. Thanks again.11:41
Red15but my experience with online trainings isn't extensive enough to know what kind of trainings would be worth paying for11:42
hawodiIt may not be the same but one can still get along with them. They could be video that one can subscribe to ...11:43
hawodiOr a good how to "develop book with openerp"11:44
hawodiThere is such book for drupal and joomla.11:45
*** hjmf has joined #openobject11:46
Red15there are books for openerp11:50
Red15not sure if the books for developing are ready yet though11:50
Red15i don't follow them that closely11:50
hawodiI think the best will be a good online content like the virtual oracle university.11:51
hawodiThe only book I have seen is the Retail management one.11:51
*** Gavin_Achado has joined #openobject11:52
*** hjmf has joined #openobject12:03
hawodiRed15: Any idea on how I can grey out the sale button if the "<qty"12:10
Red15nope, there's no way afaik12:15
enlightxRed15: give custom colours to the fields is a very common needs... i was wondering how to achieve this. we'd need to patch both server and client(s)12:19
*** hjmf has joined #openobject12:20
Red15enlightx, quite big change, not impossible but will require some cooperation from openerp12:23
Red15i think12:23
enlightxRed15: sure12:23
enlightxi'll check if there's an open blueprint for the12:23
Red15i'd suggest you start with blueprint yea12:23
enlightxyep12:23
Red15then create a branch in the community group12:23
Red15so everyone can write to that branch12:24
Red15as opposed to branching it to ~enlightx/openobject-addons/color-branch or something12:24
enlightxRed15: agree12:25
enlightxi'll do that asap12:25
Red15i just joined openerp-community group, wasnt actually member of it (only indirectly through openerp-commiters)12:26
Red15enlightx, are you thinking of adding something like a tag called background-color to a field in the view definition or what ?12:27
enlightxRed15: esactly, just like you can do in trees right now12:28
Red15hmm, shall we add both background  and text-color ?12:28
Red15and name them like css attributes are called (instead of inventing new names)12:28
enlightxRed15: umh...you're right12:29
simahawkRed15, that's good12:29
Red15it would also allow to create a poor mans "password" fields12:29
Red15with white on white colors12:29
enlightxRed15: openerp 6 allow to specify html tags in forms/trees12:29
Red15oh wait password fields are already implemented now arent they ?12:29
simahawkmmm, it'd be better to create a proper widget cuz users can't se chars tyoing12:30
Red15enlightx, but doesnt that only work on the webclient then ? not in gtk ?12:30
simahawktyoing/typing12:30
enlightxRed15: don't know, never tested12:30
Red15well how else is the view on res.users done12:30
Red15you can't read the password there12:30
Red15                    <field name="password" password="True"/>12:31
enlightxRed15: btw, mandatory fields already have a different color...12:31
Red15yea so what happens with those, override the color from the background-color property or no t?12:32
Red15i'd say we should override it12:32
enlightxRed15: i think so12:32
Red15only when the view complains about missing required fields it should still turn the fields red though12:33
enlightxso, my holyday homeworks are decided :)12:33
Red15haha12:34
simahawkRed15, enlightx colors will be easy to overrides. we should get rid of this hardcoded settings12:36
simahawkcolors = {12:36
simahawk    'invalid':'#ff6969',12:36
simahawk    'readonly':'#eeebe7',12:36
simahawk    'required':'#d2d2ff',12:36
simahawk    'normal':'white'12:36
simahawk}12:36
enlightxsimahawk: that's for the web client12:36
simahawkecarreras, nope12:37
simahawkops12:37
simahawkenlightx, nope12:37
simahawkopenerp-client-5.0.11/bin$ vim ./common/common.py12:37
enlightxah, good12:37
Red15nice, any easy way from gtk to get those rgb.txt names working ?12:37
Red15like 'lightblue' etc12:37
enlightxRed15: don't think so (natively)12:38
*** hawodi has quit IRC12:38
*** hjmf has quit IRC12:38
*** Gavin_Achado has quit IRC12:39
simahawkenlightx, well they used "white"...12:39
*** hjmf has joined #openobject12:39
enlightxsimahawk: i guess it's an hardcoded map12:39
simahawklet me search... :)12:39
Red15do believe gtk has some builtins for searching that though12:40
enlightxgdk_color_parse12:40
enlightxyes, gtk recognizes a string as color12:40
simahawkenlightx, no mapping12:41
Red15btw what if user wants to change only the label and not the textbox colors ?12:41
simahawkand "white" is used as default12:41
simahawkcolour = widget.get_colormap().alloc_color(common.colors.get(name,'white'))12:41
Red15should we then just make the use a seperate <label string="Custom label" color="black"> and <field nolabel="1">12:41
simahawkRed15, back to you point before... we should use 'background-color="black"'12:42
simahawkas well as "color" ...yes :)12:42
*** hjmf has quit IRC12:43
Red15simahawk, and you agree it should actually alter only the value field ? not the label12:44
Red15unless ofcourse the color (or background-color) is on a <label> tag specifically12:44
enlightxRed15: yes, i agree12:45
*** PeterL has joined #openobject12:45
Red15most of the time you will only want to change the input field colors12:45
*** enlightx is now known as enlightx|away12:45
simahawkRed15, yep12:45
Red15afk lunch12:45
*** simahawk is now known as simahawk|lunch12:48
*** bechamel has quit IRC12:48
*** bechamel has joined #openobject12:48
*** eLBati has quit IRC12:54
*** hawodi has joined #openobject12:56
*** hjmf has joined #openobject12:57
*** david00 has joined #openobject12:57
david00hi all12:57
david00Is it possible to use a tree view from within a wizard?12:58
david00I tried to use one but my fields weren't displayed at all12:58
*** hawodi has quit IRC13:11
*** hawodi has joined #openobject13:12
*** hawodi has quit IRC13:14
*** hjmf has quit IRC13:14
*** hawodi has joined #openobject13:15
*** hjmf has joined #openobject13:15
*** hawodi has quit IRC13:17
*** hawodi has joined #openobject13:18
Red15david00, in theory yes, but never tried it13:22
*** hjmf has joined #openobject13:32
david00Red15: I managed to get one by declaring a field of type many2many13:39
*** hjmf has joined #openobject13:48
Red15oh i thought you wanted a list view of the wizard itself13:50
*** simahawk|lunch is now known as simahawk13:51
*** enlightx|away is now known as enlightx13:51
edannenbehmm suppose i got a many2many widget in a view, can i put a domain on the entries you can choose from?13:51
Red15edannenbe, why not ?13:52
edannenbeRed15, i dunno, just cant seem to manage it.. i can put a domain on the entries displayed in the widget, but no idea how to do it for the entries you can add to the widget13:54
*** hawodi has quit IRC13:58
*** hawodi has joined #openobject13:59
*** hawodi has quit IRC14:00
*** hawodi has joined #openobject14:01
Red15edannenbe, it should also apply to new entries automatically, maybe it's a bug on osv_memory ?14:01
*** hawodi has quit IRC14:03
*** hawodi has joined #openobject14:04
edannenbeRed15, hmm wouldnt surprise me after the 5.0.11 update :p .. just to make it clear again, i want the domain to be applied on the popup window you get when you want to add entries to the many2many widget14:04
Red15have you tried putting the domain on the field itself instead of only on the view ?14:04
tuxicktrying to find bugtracker on the site, is it so chaotic or should i get back to sleep?14:05
*** hjmf has joined #openobject14:05
Red15http://bugs.launchpad.net/openobject-addons ?14:05
Red15tuxick, bugs for client/server/addons ?14:05
tuxickclient and server14:06
tuxicksince both are using *insane* amounts of memory14:07
tuxickand the guy maintaining the installation says we just have to add ram14:07
Red15tuxick, are you actually getting out-of-memory errors ?14:08
tuxicki get nothing, it was outsourced14:08
tuxicki just get request to add another 12G ram to the 4G server has14:09
tuxickand that the clients need over 1.5G14:09
*** hawodi has quit IRC14:09
tuxickon 50k records14:09
tuxicki just can't believe those figures14:12
Red1550k records of what ?14:12
tuxick'members'14:12
tuxickmanagement decided to outsource this stuff, so i get very very little info14:13
tuxickbut 16G ram for such a small database sounds absurd to me14:13
tuxickso i suspect memory leak14:14
tuxickor very bad code14:14
tuxickor config error14:14
edannenbewell test it14:16
tuxickas i said, it's been outsourced14:18
tuxicki only maintain the server where they run it in xen14:18
Red15you can see the database no ?14:19
Red15check the table definition of that 'members'14:19
*** Nyx has joined #openobject14:20
*** hjmf has joined #openobject14:22
tuxickno, i don't even have access there14:26
tuxicki was just wondering if this insane memory usage is 'normal'14:27
Red15put your server in debug mode and check the logs ?14:27
Red15put it in debug_rpc mode even14:27
tuxicki don't have access!!!14:27
Red15then you will see data in the logfile :D14:27
Red15ah k ...14:27
tuxickit's running in xen14:27
Red15well I run 4 servers (relatively small companies) in 2gb of ram14:28
tuxicktrying to remember name of that table14:28
tuxickit was as standard as it gets14:28
tuxicki did get openerp training when project started14:29
tuxickbut then they outsourced the project14:29
tuxickand i simply don't believe adding ram will fix things if it's leaking14:29
tuxickmemory for HP doesn't come cheap!14:30
tuxickoh well14:31
tuxickshould consider it Not My Problem14:32
*** javivf has quit IRC14:32
*** javivf has joined #openobject14:34
*** javivf has joined #openobject14:34
*** hawodi has joined #openobject14:36
*** javivf has quit IRC14:38
*** hjmf has joined #openobject14:39
*** javivf has joined #openobject14:39
*** javivf has joined #openobject14:39
david00How can I get data from the current model into a field in a wizard?14:41
david00The way I found is to define an action, then browse for data['id'] in the pool of objects of type data['model']14:43
*** tuxick has left #openobject14:43
*** ToadP has joined #openobject14:43
david00This seems a bit manual though, I would think there would be a way to declare a field of a certain type and have the equivalent field from the model automatically copied into the wizard field14:44
*** ToadP1 has joined #openobject14:44
*** javivf has quit IRC14:44
*** javivf has joined #openobject14:44
*** hjmf has joined #openobject14:56
edannenbedavid00, in the action calling the wizard try <field name="context">{'action_id': active_id}</field>14:56
edannenbeaction_id in the wizard is then id of current model14:56
simahawkdavid00, you can also define context on the button calling the wiz15:12
*** hjmf has joined #openobject15:12
*** eLBati has joined #openobject15:12
simahawk<button ... context="{'foo_id':foo_id}" />15:13
*** hjmf has quit IRC15:17
*** hjmf has joined #openobject15:17
*** ToadP has quit IRC15:20
*** ToadP1 has quit IRC15:20
*** hjmf has quit IRC15:21
*** hjmf has joined #openobject15:22
*** kalymero has quit IRC15:23
*** kalymero has joined #openobject15:26
*** zigzapgabe has quit IRC15:29
*** zigzapgabe has joined #openobject15:35
*** eLBati has quit IRC15:39
*** hjmf has quit IRC15:40
*** hjmf has joined #openobject15:40
*** pheller has joined #openobject15:41
*** eLBati has joined #openobject15:41
*** Nyx has quit IRC15:41
*** hounddog has joined #openobject15:43
*** dex__ has quit IRC15:44
*** pepeu has joined #openobject15:45
slidesingerTrying to get US city support installed.  Came across this:  https://bugs.launchpad.net/openobject-server/+bug/581141:   jsherk  wrote   on 2010-05-17:   Ok I have attached the XML version in the format suggested by Parthiv above. Assuming that the xml format is correct, this can be added directly to base_data.xml15:46
slidesingerI can't find any docs indicating how to do this.  Does anyone know what he is talking about or where to find instructions on this?   I will keep looking meantime.15:46
*** hawodi has quit IRC15:47
*** hawodi has joined #openobject15:48
*** hawodi has quit IRC15:53
*** hjmf has joined #openobject15:57
*** ToadP has joined #openobject16:01
*** ToadP has quit IRC16:05
*** r3c4ll has quit IRC16:09
*** hjmf has joined #openobject16:14
*** hawodi has joined #openobject16:16
*** hjmf has quit IRC16:18
*** hjmf has joined #openobject16:18
*** edannenbe has quit IRC16:21
*** mozmck_work has joined #openobject16:22
*** hounddog has quit IRC16:24
david00edannenbe, simahawk: however I still need to use an action (as in the actions key in the state dictionary) to get the data into the field, right?16:25
david00Even once I have the context.   is there a way to do it without specifying an action in the state dictionary?16:26
simahawkdavid00, don't get u sorry? you question was "How can I get data from the current model into a field in a wizard?" that's the way16:27
simahawkyou can access the data from the wiz by context.get('mydata')16:27
simahawkif you want that val to appear in the wiz by default you can override the default_get method of the wiz obj16:28
simahawk(talking about new-style wiz based on osv_memory)16:29
david00simahawk: just one question, do I have to define an action in the 'actions' key of the state dictionary in order to put data from the model into fields?16:29
simahawkwhat's action for u? what' model for you? what's state dictionary for you? :)16:31
simahawkif you are calling the wiz from a objX the way to pass a value from objX to wiz is: put it in the context var16:32
simahawkor read the value (again) from the wiz using the objX id that you'll find in the "data" var16:32
david00 states = {'init': {'actions': [_trans_rec_get], ...}}16:33
david00here, _trans_rec_get is the action16:33
simahawkdavid00, that's not a new-style wiz for sure :)16:34
david00really?  erk16:34
david00I must have learnt the old API by accident16:34
*** ovnicraft has joined #openobject16:35
simahawkdavid00, http://doc.openerp.com/developer/3_10_wizard/index.html#osv-memory-wizard-system16:35
*** hjmf has quit IRC16:36
simahawkdavid00, grep -R "osv_memory" into bin/addons to get some examples16:36
*** hjmf has joined #openobject16:36
david00cheers simahawk16:39
enlightxRed15: can you kindly point me (again) to your patch regarding the threading issue?16:47
hawodislidesinger: look at this: http://www.openerp.com/forum/topic15082.html?sid=19ff5d7328276ed8e0db24ae911a8b0e16:48
*** mozmck_work has quit IRC16:53
*** hjmf has joined #openobject16:54
*** mozmck_work has joined #openobject16:57
*** david00 has left #openobject17:05
*** hjmf has joined #openobject17:11
*** bechamel has quit IRC17:17
Red15enlightx, one sec17:18
Red15http://launchpadlibrarian.net/52593983/sigint.patch17:18
Red15this is the one that only fixes xmlrpc though17:18
Red15so disable netrpc if you want to test17:18
enlightxRed15: ah ok, i was missing this latest thing :)17:19
Red15to do that just replace timeout = self.server.socket.get_timeout() (or something) with timeout = 0.517:19
*** markvd has joined #openobject17:22
*** mr_amit has quit IRC17:25
*** hjmf has joined #openobject17:28
*** markvd has quit IRC17:28
*** quodt has quit IRC17:29
*** Flydoire|Taktik has quit IRC17:34
*** marc0s has quit IRC17:40
*** marc0s has joined #openobject17:40
*** pepeu has quit IRC17:40
*** pepeu has joined #openobject17:41
*** simahawk has quit IRC17:42
*** hjmf has joined #openobject17:45
*** hjmf has quit IRC17:49
*** hjmf has joined #openobject17:49
slidesingerhawodi: That did it, thanks.  I think that should be included in the tutorial.  When I reread that, I'll do an edit and submit it.17:58
hawodislidesinger: Glad I was of help. Including it in the doc will be cool.17:59
*** _3pm_ has quit IRC18:03
*** enlightx has quit IRC18:03
*** Red15 has quit IRC18:05
*** hjmf has joined #openobject18:06
*** Nyx has joined #openobject18:19
*** hjmf has joined #openobject18:22
slidesingerSomething else that is not in the doc's with respect to the Partner form.  What is the "code" field for?18:29
*** rationalperseus has quit IRC18:29
*** enlightx has joined #openobject18:30
*** rationalperseus has joined #openobject18:33
*** rationalperseus has quit IRC18:36
*** rationalperseus has joined #openobject18:37
*** hjmf has quit IRC18:40
*** hjmf has joined #openobject18:41
*** matrixise has quit IRC18:41
*** cedk has quit IRC18:46
*** cedk has joined #openobject18:46
*** hjmf has joined #openobject18:58
*** KangOl has quit IRC18:59
*** KangOl has joined #openobject19:00
*** ChanServ sets mode: +o KangOl19:00
*** KangOl has quit IRC19:03
*** simahawk has joined #openobject19:09
*** hjmf has joined #openobject19:15
*** enlightx has quit IRC19:18
*** kalymero has quit IRC19:24
*** simahawk has quit IRC19:26
*** hjmf has joined #openobject19:31
*** hjmf has joined #openobject19:48
*** Mark_Neobis has joined #openobject20:04
*** hjmf has joined #openobject20:06
*** ovnicraft has quit IRC20:10
*** hawodi has quit IRC20:11
*** LucaSub1 has joined #openobject20:21
*** hjmf has joined #openobject20:22
*** LucaSub1 has left #openobject20:23
*** ovnicraft has joined #openobject20:23
*** julian18281 has joined #openobject20:35
*** KangOl has joined #openobject20:38
*** ChanServ sets mode: +o KangOl20:38
*** pheller has quit IRC20:51
*** Nyx has quit IRC21:00
*** Nyx has joined #openobject21:06
*** pepeu has quit IRC21:07
*** pepeu has joined #openobject21:13
*** quodt has joined #openobject21:38
*** enlightx has joined #openobject21:46
*** mozmck_work has quit IRC21:48
*** mozmck_work has joined #openobject21:50
*** ovnicraft has quit IRC21:56
*** PeterL has quit IRC21:56
max3903Red15 : thanks for your help. we solved the bug : https://bugs.launchpad.net/openobject-addons/+bug/61146721:58
*** Mark_Neobis has quit IRC22:02
*** Mark_Neobis has joined #openobject22:18
*** ToadP has joined #openobject22:28
*** ToadP1 has joined #openobject22:28
*** eLBati has quit IRC22:29
*** ToadP1 has quit IRC22:31
*** ToadP has quit IRC22:31
*** quodt has quit IRC22:51
*** max3903 has quit IRC23:04
*** ToadP has joined #openobject23:18
*** ToadP1 has joined #openobject23:18
*** ToadP has quit IRC23:18
*** ToadP1 has quit IRC23:18
*** enlightx has quit IRC23:34
*** ovnicraft has joined #openobject23:45
*** ovnicraft has quit IRC23:46
*** matrixise has joined #openobject00:10
*** Mark_Neobis has quit IRC00:11