openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #27517
[Bug 1251773] Re: [project][field][doc_count] wrong type
Hello,
Thanks for the report and patch, it was merged in 7.0
revno: 9938 [merge]
revision-id: mat@xxxxxxxxxxx-20140328114737-bk29fqfdyabx4r65
** Changed in: openobject-addons
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1251773
Title:
[project][field][doc_count] wrong type
Status in OpenERP Community Backports (Addons):
New
Status in OpenERP Community Backports (Addons) 7.0 series:
New
Status in OpenERP Addons (modules):
Fix Released
Bug description:
Function field with wrong type int instead of integer
1) Steps to reproduce the issue you have observed
run the following webservice:
import oerplib
oerp = oerplib.OERP(server='localhost', port='10000', timeout=4000)
oerp.login(database='hu_owner')
user_story_obj = oerp.get('user.story')
user_story_ids = user_story_obj.search([])
us_brw = user_story_obj.browse( user_story_ids[0] )
us_brw.project_id
2) The result you observed
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/oerplib/service/osv/fields.py", line 249, in __get__
self.relation, id_[0], context)
File "/usr/local/lib/python2.7/dist-packages/oerplib/oerp.py", line 404, in browse
return self.get(model).browse(ids, context)
File "/usr/local/lib/python2.7/dist-packages/oerplib/oerp.py", line 558, in get
return osv.Model(self, model)
File "/usr/local/lib/python2.7/dist-packages/oerplib/service/osv/osv.py", line 65, in __init__
self._browse_class = self._generate_browse_class()
File "/usr/local/lib/python2.7/dist-packages/oerplib/service/osv/osv.py", line 114, in _generate_browse_class
self, field_name, field_data)
File "/usr/local/lib/python2.7/dist-packages/oerplib/service/osv/fields.py", line 538, in generate_field
txt.format(field_name=name, field_type=data['type']))
InternalError: Can't instanciate the field 'doc_count', 'int' type unknown
3) The result you expected
browse_record('project.project', 11)
4) The platform you are using (and browser version, if relevant)
Debian - Gnome - 64 bits
5) The OpenERP version you are using (e.g. 6.1.1-20120910-233309), if
possible including the specific revision (e.g. r.2824) if you use the
source repositories.
versión Openerp 7.0
6) Solution:
https://code.launchpad.net/~vauxoo/openobject-
addons/7.0-project_fix_doc_count
To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-addons/+bug/1251773/+subscriptions