Entries encoding by lines : Impossible to add a new entry

Bug #317666 reported by Luc Maurer @ Camptocamp
2
Affects Status Importance Assigned to Milestone
OpenERP
Fix Released
Undecided
Unassigned

Bug Description

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

 affects openerp

version 5 revision : 1592 du server

If I would like to add a new entry by line, I got this message :

Traceback (most recent call last):
  File "/opt/openerp_trunk3/openerp/server/bin/netsvc.py", line 226, in
dispatch
    result = LocalService(service_name)(method, *params)
  File "/opt/openerp_trunk3/openerp/server/bin/netsvc.py", line 74, in
__call__
    return getattr(self, method)(*params)
  File "/opt/openerp_trunk3/openerp/server/bin/service/web_services.py",
line 452, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/opt/openerp_trunk3/openerp/server/bin/osv/osv.py", line 59, in
wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp_trunk3/openerp/server/bin/osv/osv.py", line 119, in
execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp_trunk3/openerp/server/bin/osv/osv.py", line 111, in
execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File
"/opt/openerp_trunk3/openerp/server/bin/addons/account/account_move_line.py",
line 55, in default_get
    data = self._default_get(cr, uid, fields, context)
  File
"/opt/openerp_trunk3/openerp/server/bin/addons/account/account_move_line.py",
line 200, in _default_get
    part = self.pool.get('res.partner').browse(cr, uid, partner_id)
  File "/opt/openerp_trunk3/openerp/server/bin/osv/orm.py", line 405, in
browse
    return browse_record(cr, uid, select, self, cache, context=context,
list_class=self._list_class, fields_process=fields_process)
  File "/opt/openerp_trunk3/openerp/server/bin/osv/orm.py", line 122, in
__init__
    assert id and isinstance(id, (int, long,)), _('Wrong ID for the
browse record, got %r, expected an integer.') % (id,)
AssertionError: Wrong ID for the browse record, got False, expected an
integer.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJb721hgG7fdis3UURAsESAKC57KU60/02gBcaMIgDugK8Tkv1sACfQ5S3
jcS+VazvkD1K4tAFhtojdfM=
=ZezY
-----END PGP SIGNATURE-----

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

you might have not selected the partner for the move line.
anyways, its fixed in rev 2090.
Thanks.

Changed in openerp:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.