I thought I had this one sorted, but it turns out that this field doesn't work 
when I try to save the record.

I click on the magnifying glass and it shows me only the Partners in the 
"Competitors" category, which is great. I select the one that I want and it 
looks fine. But then I try to save the entry and I get an error. Here's the 
"details":


Environment Information : 
System : Linux-2.6.22.19-0.4-default-i686-with-SuSE-10.3-i586
OS Name : posix
LSB Version:    
core-2.0-noarch:core-3.0-noarch:core-2.0-ia32:core-3.0-ia32:desktop-3.1-ia32:desktop-3.1-noarch:graphics-2.0-ia32:graphics-2.0-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: SUSE LINUX
Description:    openSUSE 10.3 (i586)
Release:        10.3
Codename:       n/a
Operating System Release : 2.6.22.19-0.4-default
Operating System Version : #1 SMP 2009-08-14 02:09:16 +0200
Operating System Architecture : 32bit
Operating System Locale : en_GB.UTF8
Python Version : 2.5.1
OpenERP-Client Version : 5.0.3
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call 
last):
  File "/usr/local/lib/python2.5/site-packages/openerp-server/netsvc.py", line 
242, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/usr/local/lib/python2.5/site-packages/openerp-server/netsvc.py", line 
73, in __call__
    return getattr(self, method)(*params)
  File 
"/usr/local/lib/python2.5/site-packages/openerp-server/service/web_services.py",
 line 583, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/usr/local/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 
59, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 
119, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 
111, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 
2467, in write
    self._validate(cr, user, ids, context)
  File "/usr/local/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 
833, in _validate
    if not fun(self, cr, uid, ids):
  File 
"/usr/local/lib/python2.5/site-packages/openerp-server/addons/base_vat/partner.py",
 line 41, in check_vat
    if not partner.vat:
  File "/usr/local/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 
229, in __getattr__
    return self[name]
  File "/usr/local/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 
217, in __getitem__
    data[n] = browse_record(self._cr, self._uid, ids2, obj, self._cache, 
context=self._context, list_class=self._list_class, 
fields_process=self._fields_process)
  File "/usr/local/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 
146, in __init__
    raise BrowseRecordError(_('Wrong ID for the browse record, got %r, expected 
an integer.') % (id,))
BrowseRecordError: Wrong ID for the browse record, got u'333', expected an 
integer.

It seems to be trying to save a string instead of the ID. Why is that happening?

Cheers

MattLG




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=46946#46946

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to