For open discussions, an IRC Channel have been set up for Open ERP and Open Object: irc://irc.freenode.net/#openobject.
| *** rationalperseus has quit IRC | 00:23 | |
| *** yangoon_rm has joined #openobject | 00:23 | |
| *** Spiralmatrix has joined #openobject | 00:43 | |
| *** cedk has quit IRC | 00:47 | |
| *** ovnicraft has joined #openobject | 00:50 | |
| *** ovnicraft has quit IRC | 00:57 | |
| *** koo5 has quit IRC | 01:28 | |
| *** zigzapgabe_ has joined #openobject | 01:30 | |
| *** ovnicraft has joined #openobject | 01:32 | |
| *** koo5 has joined #openobject | 01:35 | |
| *** digitalsatori has joined #openobject | 01:59 | |
| appollodx | anyone here? | 02:04 |
|---|---|---|
| appollodx | i need some help please | 02:04 |
| appollodx | i have problems installing on ubuntu 10.04 | 02:06 |
| appollodx | i cannot create the file openerp-server that should be located in /etc/init.d/ | 02:06 |
| *** yangoon_rm has quit IRC | 02:23 | |
| *** koo5 has quit IRC | 03:10 | |
| *** ovnicraft has quit IRC | 03:37 | |
| *** yangoon has quit IRC | 05:20 | |
| *** yangoon has joined #openobject | 05:35 | |
| *** zigzapgabe__ has joined #openobject | 05:47 | |
| *** zigzapgabe_ has quit IRC | 05:50 | |
| *** zigzapgabe__ has quit IRC | 06:05 | |
| *** mr_amit has joined #openobject | 06:43 | |
| *** julian1828 has joined #openobject | 07:08 | |
| *** cedk has joined #openobject | 07:54 | |
| *** rationalperseus has joined #openobject | 08:14 | |
| *** dukai has joined #openobject | 08:32 | |
| *** eLBati has joined #openobject | 08:35 | |
| *** mrcast has joined #openobject | 08:49 | |
| *** simahawk has joined #openobject | 08:54 | |
| *** cjeske_ has joined #openobject | 09:00 | |
| *** cedk has quit IRC | 09:05 | |
| *** enlightx has joined #openobject | 09:07 | |
| *** Spiralmatrix has quit IRC | 09:35 | |
| *** KangOl has joined #openobject | 09:38 | |
| *** ChanServ sets mode: +o KangOl | 09:38 | |
| *** cedk has joined #openobject | 09:39 | |
| *** Janneman1 has joined #openobject | 09:43 | |
| *** stijnbe has joined #openobject | 09:57 | |
| *** bechamel has joined #openobject | 10:04 | |
| *** Nyx has joined #openobject | 10:11 | |
| *** Red15 has joined #openobject | 10:20 | |
| *** appollodx has quit IRC | 10:32 | |
| *** cedk has quit IRC | 10:50 | |
| *** kalymero has joined #openobject | 11:02 | |
| *** cedk has joined #openobject | 11:04 | |
| *** hsm has joined #openobject | 11:24 | |
| hsm | I'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/Dvw5MhcP | 11:27 |
| hsm | The only problem: I get an error( because of the return value I guess) | 11:27 |
| hsm | does anyone know how to specify the return value differently? | 11:28 |
| hsm | The error I get: http://openerp.pastebin.com/6zPUg13M | 11:30 |
| hsm | anyone? | 11:35 |
| eLBati | hsm, what do you pass to fields.function( ? | 11:37 |
| eLBati | hsm, uhm maybe you should use result[YOUR_RECORD_ID] = { | 11:41 |
| hsm | thank elBati, lets see: fields.function(_total_all, method=True, type="float", string="Flex saldo",), | 11:41 |
| eLBati | or | 11:41 |
| eLBati | result[YOUR_RECORD_ID] = total | 11:41 |
| eLBati | uhm | 11:42 |
| hsm | eLBati: I think so to, I think I'm doing this by ids[0] : total | 11:42 |
| *** Nyx has quit IRC | 11:42 | |
| eLBati | right | 11:42 |
| hsm | eLBati: so, what's going wrong? do you think | 11:43 |
| hsm | eLBati: if I use result[ids[0]] = total , i get exactly the same error.. | 11:47 |
| hsm | eLBati: well, maybe I'm calling the wrong object, I will try to find out.. | 11:47 |
| hsm | eLBati: No, I'm using the right object. | 11:50 |
| *** mr_amit has quit IRC | 11:50 | |
| hsm | What should a function normally return? | 11:50 |
| *** enlightx has quit IRC | 11:51 | |
| eLBati | hsm, the type you want | 11:51 |
| eLBati | or a dictionary if you use "multi" | 11:52 |
| hsm | eLBati: 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 #openobject | 11:55 | |
| hsm | eLBati: do you think I need a method="False" ? | 11:56 |
| eLBati | I meant, a dictionary within the dictionary :-) | 11:56 |
| hsm | eLBati: lets try..thanks btw! | 11:58 |
| eLBati | hsm, method=False if the function is outside the class | 12:01 |
| hsm | eLBati: 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 |
| hsm | eLBati: I found a way! It is not counting correctly, but it is working.. | 12:06 |
| hsm | eLBati: It seems I need to return mutliple values, not only one | 12:08 |
| eLBati | hsm, about using dictionary, take a look at http://bazaar.launchpad.net/~openerp/openobject-addons/trunk/annotate/head:/sale/sale.py#L79 | 12:08 |
| hsm | eLBati: Since I have 3 timesheets, I need to return a dictionary with 3 pairs | 12:08 |
| hsm | eLBati: Thanks, I will have a look | 12:08 |
| eLBati | does anybody know why this warning is raised: | 12:13 |
| eLBati | bin/osv/orm.py:416: UnicodeWarning: Unicode unequal comparison failed to convert both arguments to Unicode - interpreting them as being unequal | 12:13 |
| eLBati | if cols[k][key] != vals[key]: | 12:13 |
| eLBati | and how could I investigate | 12:13 |
| hsm | eLBati: 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 |
| eLBati | hsm, I use pdb daily | 12:20 |
| hsm | eLBati: :) ok, good! Need to go now! | 12:22 |
| eLBati | hsm, but the line I mentioned is executed hundreds times | 12:23 |
| eLBati | so I can't put set_trace() | 12:23 |
| eLBati | and I don't know how to catch a warning , if possible | 12:24 |
| hsm | eLBati: 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 |
| simahawk | eLBati, | 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 |
| simahawk | http://docs.python.org/whatsnew/2.5.html | 12:30 |
| eLBati | hsm, but that "if" is within a for http://bazaar.launchpad.net/~openerp/openobject-server/trunk/annotate/head:/bin/osv/orm.py#L478 | 12:30 |
| simahawk | eLBati, you can place a try/except on a forced conversion like "unicode(this_string)" | 12:31 |
| eLBati | simahawk, but I need to know which string raises that | 12:31 |
| simahawk | eLBati, try/except -> pdb | 12:31 |
| simahawk | :) | 12:31 |
| simahawk | "try: unicode(mystring); except: import pdb;pdb.set_trace()" should do the job | 12:32 |
| eLBati | simahawk, uh ok grazie | 12:32 |
| simahawk | ecarreras, | 12:33 |
| simahawk | ooopps | 12:33 |
| simahawk | :) | 12:33 |
| simahawk | eLBati, prego | 12:33 |
| ecarreras | :) don't worry | 12:33 |
| *** hsm has left #openobject | 12:39 | |
| *** enlightx has joined #openobject | 12:40 | |
| *** cjeske_ has quit IRC | 12:44 | |
| *** hjmf has quit IRC | 13:12 | |
| *** hjmf has joined #openobject | 13:27 | |
| *** Janneman1 has left #openobject | 13:37 | |
| *** simahawk is now known as simahawk|lunch | 13:37 | |
| *** digitalsatori has quit IRC | 13:49 | |
| *** eLBati has quit IRC | 14:12 | |
| *** koo5 has joined #openobject | 14:21 | |
| *** cjdevlin has left #openobject | 14:32 | |
| *** simahawk|lunch is now known as simahawk | 14:36 | |
| *** edannenbe has joined #openobject | 14:37 | |
| *** digitalsatori has joined #openobject | 15:05 | |
| *** dukai has quit IRC | 15:09 | |
| *** dukai has joined #openobject | 15:10 | |
| *** eLBati has joined #openobject | 15:16 | |
| *** Janneman1 has joined #openobject | 15:20 | |
| *** hawodi has joined #openobject | 15:22 | |
| *** hawodi_ has joined #openobject | 15:38 | |
| hawodi | I 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 IRC | 15:49 | |
| *** dukai has quit IRC | 16:02 | |
| *** Janneman1 has quit IRC | 16:03 | |
| Red15 | hawodi, did you also create this custom field in the model ? | 16:06 |
| Red15 | in that case you should be able to just address it like you show | 16:06 |
| hawodi | Red15: 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 |
| Red15 | uh you used the webclient then ? | 16:10 |
| Red15 | so the field name starts with x_ ? | 16:10 |
| hawodi | I have tried retrieving the field with line.x_code.name without luck. | 16:14 |
| hawodi | Red15: yes. I used the webclient and the field name starts with x_. | 16:14 |
| Red15 | then just use o.partner_id.x_name or so ? | 16:14 |
| hawodi | ok. the field is in pos_order_lines. | 16:23 |
| *** mozmck has quit IRC | 16:42 | |
| *** hawodi has quit IRC | 16:45 | |
| *** hawodi has joined #openobject | 16:46 | |
| *** Byt|Eee has joined #openobject | 16:52 | |
| *** LucaSub has joined #openobject | 17:02 | |
| *** LucaSub has left #openobject | 17:03 | |
| *** mozmck has joined #openobject | 17:12 | |
| *** LucaSub has joined #openobject | 17:19 | |
| *** LucaSub has left #openobject | 17:19 | |
| *** zigzapgabe has quit IRC | 17:24 | |
| *** zigzapgabe has joined #openobject | 17:27 | |
| *** mr_amit has quit IRC | 17:27 | |
| *** Nyx has joined #openobject | 17:27 | |
| *** Nyx has quit IRC | 17:35 | |
| *** Nyx has joined #openobject | 17:37 | |
| *** la_loOse has joined #openobject | 17:45 | |
| la_loOse | hi there | 17:45 |
| la_loOse | is 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 IRC | 17:47 | |
| *** bechamel has quit IRC | 17:50 | |
| Red15 | la_loOse, unfortunatly not (afaik) | 17:56 |
| *** edannenbe has joined #openobject | 17:56 | |
| la_loOse | Red15: and there's also nothing to make search arguments ( filters ) more precise or efficient | 17:57 |
| la_loOse | ? | 17:57 |
| Red15 | depends on what you want to do ? | 17:57 |
| Red15 | and/or/not kind of statements ? | 17:57 |
| la_loOse | and or not yes | 17:58 |
| la_loOse | and especially "starting with" | 17:58 |
| la_loOse | especially for numeric fields | 17:59 |
| *** koo5 has quit IRC | 17:59 | |
| Red15 | starting with on numeric fields ? | 17:59 |
| Red15 | woa | 18:00 |
| la_loOse | try to extract partners from a defined region | 18:00 |
| la_loOse | ( a simple and regular crm task ) | 18:00 |
| la_loOse | anyway if i can't extract all lines .... | 18:06 |
| *** zodman has joined #openobject | 18:07 | |
| la_loOse | Red15: you know if something will be done about these limits in v6 ? | 18:12 |
| Red15 | not sure about export | 18:12 |
| Red15 | but i know filters are a lot better | 18:12 |
| Red15 | you can do and/or/not and negate and such | 18:12 |
| la_loOse | and use a wildcard ? | 18:12 |
| Red15 | you can use wildcards today too | 18:13 |
| Red15 | just use % | 18:13 |
| la_loOse | and not a simple like %searched% | 18:13 |
| la_loOse | oh really ? | 18:13 |
| Red15 | well when entering them keep in mind it will do this : | 18:13 |
| la_loOse | doesn't work on the web client | 18:13 |
| Red15 | if you type : SO%1 | 18:13 |
| Red15 | it will transform it to %SO%1% | 18:13 |
| la_loOse | hmmm ok so it works but not as i would like to | 18:14 |
| la_loOse | i cant get 35* zipcodes without having *35* for example | 18:15 |
| Red15 | true | 18:16 |
| la_loOse | sad | 18:16 |
| la_loOse | :) | 18:16 |
| Red15 | but prefixing your zipcodes with another uniquely starting character is a trick | 18:16 |
| la_loOse | ? | 18:16 |
| Red15 | when inputting them | 18:16 |
| *** stijnbe has quit IRC | 18:16 | |
| Red15 | prefix the zipcode with Z for example | 18:16 |
| *** enlightx has quit IRC | 18:16 | |
| la_loOse | a zipcode has a regular form, i cant decide how it has to be | 18:16 |
| Red15 | then you can search "Z35%" | 18:17 |
| Red15 | but the Z would have no real value other than to mark the begining | 18:17 |
| Red15 | or make your users prefix it with a space | 18:17 |
| Red15 | it's hacks/tricks i know | 18:17 |
| la_loOse | yeah and when i will have to print them for every document, ill need to filter this | 18:17 |
| la_loOse | no way | 18:17 |
| Red15 | why do you need such complex filters on zipcodes ? | 18:18 |
| la_loOse | it's not really complex | 18:18 |
| la_loOse | i just want to extract customers from a particular region / country | 18:18 |
| Red15 | then why woud %35% not yield the result you look for ? | 18:18 |
| la_loOse | not | 18:18 |
| la_loOse | no* | 18:18 |
| Red15 | or use states | 18:18 |
| Red15 | or partner categories | 18:19 |
| *** Byt|Eee has quit IRC | 18:19 | |
| la_loOse | cause 13500 is not the same as 35000 at all | 18:19 |
| pelzi_ | zip codes are hierarchical. | 18:19 |
| Red15 | la_loOse, override the zip code search function then ? | 18:19 |
| Red15 | http://doc.openerp.com/developer/2_5_Objects_Fields_Methods/methods.html#osv.osv.osv.search | 18:20 |
| Red15 | have to run now | 18:21 |
| Red15 | cya | 18:21 |
| *** Red15 has quit IRC | 18:22 | |
| la_loOse | hmmm yeah i was thinking of that, but i don't care that much as long as the users cannot export the full list | 18:23 |
| la_loOse | ... | 18:23 |
| *** edannenbe has quit IRC | 18:32 | |
| *** zodman has quit IRC | 18:33 | |
| *** digitalsatori has quit IRC | 18:35 | |
| *** cedk has quit IRC | 19:05 | |
| *** cedk has joined #openobject | 19:05 | |
| *** kalymero has quit IRC | 19:38 | |
| *** mr_amit has joined #openobject | 19:39 | |
| *** ToadP has joined #openobject | 19:52 | |
| *** ToadP1 has joined #openobject | 19:52 | |
| *** julian1828 has joined #openobject | 20:01 | |
| *** hawodi has quit IRC | 20:01 | |
| *** Spiralmatrix has joined #openobject | 20:08 | |
| *** eLBati has quit IRC | 20:11 | |
| *** mrcast has quit IRC | 20:17 | |
| *** pheller has joined #openobject | 20:30 | |
| pheller | any openerp partners here? | 20:34 |
| *** simahawk has quit IRC | 20:44 | |
| *** KangOl has quit IRC | 20:48 | |
| *** pheller has quit IRC | 20:49 | |
| *** pheller has joined #openobject | 20:51 | |
| *** Nyx has left #openobject | 21:01 | |
| *** pheller has quit IRC | 21:14 | |
| *** pheller has joined #openobject | 21:15 | |
| *** mr_amit has quit IRC | 21:54 | |
| *** KangOl has joined #openobject | 21:55 | |
| *** ChanServ sets mode: +o KangOl | 21:55 | |
| *** stijnbe has joined #openobject | 21:57 | |
| *** julian1828 has left #openobject | 22:09 | |
| *** pheller has quit IRC | 22:34 | |
| *** stijnbe has quit IRC | 22:55 | |
| *** kook_ has joined #openobject | 22:58 | |
| *** javivf has quit IRC | 23:14 | |
| *** bechamel has joined #openobject | 23:14 | |
| *** komsas has joined #openobject | 23:15 | |
| *** rfxr has joined #openobject | 23:16 | |
| rfxr | Hello 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 #openobject | 23:29 | |
| *** kook_ has quit IRC | 23:36 | |
| *** rationalperseus has quit IRC | 23:52 | |
| *** zanaga has quit IRC | 00:11 | |