IRC Channels

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

Tuesday, 2010-06-29

*** rationalperseus has quit IRC00:23
*** yangoon_rm has joined #openobject00:23
*** Spiralmatrix has joined #openobject00:43
*** cedk has quit IRC00:47
*** ovnicraft has joined #openobject00:50
*** ovnicraft has quit IRC00:57
*** koo5 has quit IRC01:28
*** zigzapgabe_ has joined #openobject01:30
*** ovnicraft has joined #openobject01:32
*** koo5 has joined #openobject01:35
*** digitalsatori has joined #openobject01:59
appollodxanyone here?02:04
appollodxi need some help please02:04
appollodxi have problems installing on ubuntu 10.0402:06
appollodxi cannot create the file openerp-server that should be located in /etc/init.d/02:06
*** yangoon_rm has quit IRC02:23
*** koo5 has quit IRC03:10
*** ovnicraft has quit IRC03:37
*** yangoon has quit IRC05:20
*** yangoon has joined #openobject05:35
*** zigzapgabe__ has joined #openobject05:47
*** zigzapgabe_ has quit IRC05:50
*** zigzapgabe__ has quit IRC06:05
*** mr_amit has joined #openobject06:43
*** julian1828 has joined #openobject07:08
*** cedk has joined #openobject07:54
*** rationalperseus has joined #openobject08:14
*** dukai has joined #openobject08:32
*** eLBati has joined #openobject08:35
*** mrcast has joined #openobject08:49
*** simahawk has joined #openobject08:54
*** cjeske_ has joined #openobject09:00
*** cedk has quit IRC09:05
*** enlightx has joined #openobject09:07
*** Spiralmatrix has quit IRC09:35
*** KangOl has joined #openobject09:38
*** ChanServ sets mode: +o KangOl09:38
*** cedk has joined #openobject09:39
*** Janneman1 has joined #openobject09:43
*** stijnbe has joined #openobject09:57
*** bechamel has joined #openobject10:04
*** Nyx has joined #openobject10:11
*** Red15 has joined #openobject10:20
*** appollodx has quit IRC10:32
*** cedk has quit IRC10:50
*** kalymero has joined #openobject11:02
*** cedk has joined #openobject11:04
*** hsm has joined #openobject11:24
hsmI'm trying to show a sum of hours on ALL timesheets of a user within one single timesheet view. I use a functional field which calls the function pasted on http://openerp.pastebin.com/Dvw5MhcP11:27
hsmThe only problem: I get an error( because of the return value I guess)11:27
hsmdoes anyone know how to specify the return value differently?11:28
hsmThe error I get: http://openerp.pastebin.com/6zPUg13M11:30
hsmanyone?11:35
eLBatihsm, what do you pass to fields.function( ?11:37
eLBatihsm, uhm maybe you should use result[YOUR_RECORD_ID] = {11:41
hsmthank elBati, lets see:  fields.function(_total_all, method=True, type="float", string="Flex saldo",),11:41
eLBatior11:41
eLBatiresult[YOUR_RECORD_ID] = total11:41
eLBatiuhm11:42
hsmeLBati: I think so to, I think I'm doing this by ids[0] : total11:42
*** Nyx has quit IRC11:42
eLBatiright11:42
hsmeLBati: so, what's going wrong? do you think11:43
hsmeLBati: if I use result[ids[0]] = total , i get exactly the same error..11:47
hsmeLBati: well, maybe I'm calling the wrong object, I will try to find out..11:47
hsmeLBati: No, I'm using the right object.11:50
*** mr_amit has quit IRC11:50
hsmWhat should a function normally return?11:50
*** enlightx has quit IRC11:51
eLBatihsm, the type you want11:51
eLBatior a dictionary if you use "multi"11:52
hsmeLBati: well, a functional fields expect a dictionary, doc says: "it must return a dictionary of values of the form {id’_1_’:  value’_1_’, id’_2_’: value’_2_’,...}."11:54
*** mr_amit has joined #openobject11:55
hsmeLBati: do you think I need a method="False" ?11:56
eLBatiI meant, a dictionary within the dictionary :-)11:56
hsmeLBati: lets try..thanks btw!11:58
eLBatihsm, method=False if the function is outside  the class12:01
hsmeLBati: Ok thanks! dictionary in a dictionary didnt work (i used: result = {12:03
hsm{ids[0] : total},12:03
hsm}12:03
hsm..sorry..12:03
hsmeLBati: I found a way! It is not counting correctly, but it is working..12:06
hsmeLBati: It seems I need to return mutliple values, not only one12:08
eLBatihsm, about using dictionary, take a look at http://bazaar.launchpad.net/~openerp/openobject-addons/trunk/annotate/head:/sale/sale.py#L7912:08
hsmeLBati: Since I have 3 timesheets, I need to return a dictionary with 3 pairs12:08
hsmeLBati: Thanks, I will have a look12:08
eLBatidoes anybody know why this warning is raised:12:13
eLBatibin/osv/orm.py:416: UnicodeWarning: Unicode unequal comparison failed to convert both arguments to Unicode - interpreting them as being unequal12:13
eLBati  if cols[k][key] != vals[key]:12:13
eLBatiand how could I investigate12:13
hsmeLBati: I'm sorry I can't help you, but I want to thank you for your responses! Something I learned recently is the debugging option in Python. Are you familiar with that?12:18
eLBatihsm, I use pdb daily12:20
hsmeLBati: :) ok, good! Need to go now!12:22
eLBatihsm, but the line I mentioned is executed hundreds times12:23
eLBatiso I can't put set_trace()12:23
eLBatiand I don't know how to catch a warning , if possible12:24
hsmeLBati: What I would do is comment-out the code until it works again, then try to narrow the scope in which the warning appears..12:26
simahawkeLBati,12:30
simahawk"A new warning, UnicodeWarning, is triggered when you attempt to compare a Unicode string and an 8-bit string that can’t be converted to Unicode using the default ASCII encoding. The result of the comparison is false:"12:30
simahawkhttp://docs.python.org/whatsnew/2.5.html12:30
eLBatihsm, but that "if" is within a for http://bazaar.launchpad.net/~openerp/openobject-server/trunk/annotate/head:/bin/osv/orm.py#L47812:30
simahawkeLBati, you can place a try/except on a forced conversion like "unicode(this_string)"12:31
eLBatisimahawk, but I need to know which string raises that12:31
simahawkeLBati, try/except -> pdb12:31
simahawk:)12:31
simahawk"try: unicode(mystring); except: import pdb;pdb.set_trace()" should do the job12:32
eLBatisimahawk, uh ok grazie12:32
simahawkecarreras,12:33
simahawkooopps12:33
simahawk:)12:33
simahawkeLBati, prego12:33
ecarreras:) don't worry12:33
*** hsm has left #openobject12:39
*** enlightx has joined #openobject12:40
*** cjeske_ has quit IRC12:44
*** hjmf has quit IRC13:12
*** hjmf has joined #openobject13:27
*** Janneman1 has left #openobject13:37
*** simahawk is now known as simahawk|lunch13:37
*** digitalsatori has quit IRC13:49
*** eLBati has quit IRC14:12
*** koo5 has joined #openobject14:21
*** cjdevlin has left #openobject14:32
*** simahawk|lunch is now known as simahawk14:36
*** edannenbe has joined #openobject14:37
*** digitalsatori has joined #openobject15:05
*** dukai has quit IRC15:09
*** dukai has joined #openobject15:10
*** eLBati has joined #openobject15:16
*** Janneman1 has joined #openobject15:20
*** hawodi has joined #openobject15:22
*** hawodi_ has joined #openobject15:38
hawodiI  created a custom field in a form view and wondering how to access the field in a report. eg. o.partner_id.name.15:39
*** hawodi_ has quit IRC15:49
*** dukai has quit IRC16:02
*** Janneman1 has quit IRC16:03
Red15hawodi, did you also create this custom field in the model ?16:06
Red15in that case you should be able to just address it like you show16:06
hawodiRed15: What I did what was to click on Modify View and from there I created a custom view. I checked in the db and saw that a field was created. Am assuming that, that is the model. the model is pos_order_lines.16:10
Red15uh you used the webclient then ?16:10
Red15so the field name starts with x_ ?16:10
hawodiI have tried retrieving the field with line.x_code.name without luck.16:14
hawodiRed15: yes. I used the webclient and the field name starts with x_.16:14
Red15then just use o.partner_id.x_name or so ?16:14
hawodiok. the field is in pos_order_lines.16:23
*** mozmck has quit IRC16:42
*** hawodi has quit IRC16:45
*** hawodi has joined #openobject16:46
*** Byt|Eee has joined #openobject16:52
*** LucaSub has joined #openobject17:02
*** LucaSub has left #openobject17:03
*** mozmck has joined #openobject17:12
*** LucaSub has joined #openobject17:19
*** LucaSub has left #openobject17:19
*** zigzapgabe has quit IRC17:24
*** zigzapgabe has joined #openobject17:27
*** mr_amit has quit IRC17:27
*** Nyx has joined #openobject17:27
*** Nyx has quit IRC17:35
*** Nyx has joined #openobject17:37
*** la_loOse has joined #openobject17:45
la_loOsehi there17:45
la_loOseis there any way to export a full list without having to show all lines in the client ?17:45
la_loOse( using the regular export function )17:46
*** edannenbe has quit IRC17:47
*** bechamel has quit IRC17:50
Red15la_loOse, unfortunatly not (afaik)17:56
*** edannenbe has joined #openobject17:56
la_loOseRed15: and there's also nothing to make search arguments ( filters ) more precise or efficient17:57
la_loOse?17:57
Red15depends on what you want to do ?17:57
Red15and/or/not kind of statements ?17:57
la_loOseand or not yes17:58
la_loOseand especially "starting with"17:58
la_loOseespecially for numeric fields17:59
*** koo5 has quit IRC17:59
Red15starting with on numeric fields ?17:59
Red15woa18:00
la_loOsetry to extract partners from a defined region18:00
la_loOse( a simple and regular crm task )18:00
la_loOseanyway if i can't extract all lines ....18:06
*** zodman has joined #openobject18:07
la_loOseRed15: you know if something will be done about these limits in v6 ?18:12
Red15not sure about export18:12
Red15but i know filters are a lot better18:12
Red15you can do and/or/not and negate and such18:12
la_loOseand use a wildcard ?18:12
Red15you can use wildcards today too18:13
Red15just use %18:13
la_loOseand not a simple like %searched%18:13
la_loOseoh really ?18:13
Red15well when entering them keep in mind it will do this :18:13
la_loOsedoesn't work on the web client18:13
Red15if you type : SO%118:13
Red15it will transform it to %SO%1%18:13
la_loOsehmmm ok so it works but not as i would like to18:14
la_loOsei cant get 35* zipcodes without having *35* for example18:15
Red15true18:16
la_loOsesad18:16
la_loOse:)18:16
Red15but prefixing your zipcodes with another uniquely starting character is a trick18:16
la_loOse?18:16
Red15when inputting them18:16
*** stijnbe has quit IRC18:16
Red15prefix the zipcode with Z for example18:16
*** enlightx has quit IRC18:16
la_loOsea zipcode has a regular form, i cant decide how it has to be18:16
Red15then you can search "Z35%"18:17
Red15but the Z would have no real value other than to mark the begining18:17
Red15or make your users prefix it with a space18:17
Red15it's hacks/tricks i know18:17
la_loOseyeah and when i will have to print them for every document, ill need to filter this18:17
la_loOseno way18:17
Red15why do you need such complex filters on zipcodes ?18:18
la_loOseit's not really complex18:18
la_loOsei just want to extract customers from a particular region / country18:18
Red15then why woud %35% not yield the result you look for ?18:18
la_loOsenot18:18
la_loOseno*18:18
Red15or use states18:18
Red15or partner categories18:19
*** Byt|Eee has quit IRC18:19
la_loOsecause 13500 is not the same as 35000 at all18:19
pelzi_zip codes are hierarchical.18:19
Red15la_loOse, override the zip code search function then ?18:19
Red15http://doc.openerp.com/developer/2_5_Objects_Fields_Methods/methods.html#osv.osv.osv.search18:20
Red15have to run now18:21
Red15cya18:21
*** Red15 has quit IRC18:22
la_loOsehmmm yeah i was thinking of that, but i don't care that much as long as the users cannot export the full list18:23
la_loOse...18:23
*** edannenbe has quit IRC18:32
*** zodman has quit IRC18:33
*** digitalsatori has quit IRC18:35
*** cedk has quit IRC19:05
*** cedk has joined #openobject19:05
*** kalymero has quit IRC19:38
*** mr_amit has joined #openobject19:39
*** ToadP has joined #openobject19:52
*** ToadP1 has joined #openobject19:52
*** julian1828 has joined #openobject20:01
*** hawodi has quit IRC20:01
*** Spiralmatrix has joined #openobject20:08
*** eLBati has quit IRC20:11
*** mrcast has quit IRC20:17
*** pheller has joined #openobject20:30
phellerany openerp partners here?20:34
*** simahawk has quit IRC20:44
*** KangOl has quit IRC20:48
*** pheller has quit IRC20:49
*** pheller has joined #openobject20:51
*** Nyx has left #openobject21:01
*** pheller has quit IRC21:14
*** pheller has joined #openobject21:15
*** mr_amit has quit IRC21:54
*** KangOl has joined #openobject21:55
*** ChanServ sets mode: +o KangOl21:55
*** stijnbe has joined #openobject21:57
*** julian1828 has left #openobject22:09
*** pheller has quit IRC22:34
*** stijnbe has quit IRC22:55
*** kook_ has joined #openobject22:58
*** javivf has quit IRC23:14
*** bechamel has joined #openobject23:14
*** komsas has joined #openobject23:15
*** rfxr has joined #openobject23:16
rfxrHello all!  I am trying to find out if there is an OpenERP office in San Jose, CA, USA.  Anyone know and have address/contact information?  I checked the website but I saw only training information.23:17
*** javivf has joined #openobject23:29
*** kook_ has quit IRC23:36
*** rationalperseus has quit IRC23:52
*** zanaga has quit IRC00:11