Public bug reported:

Hi!

When a modify a o2m inside a o2m, I get the following error:

(Pdb) query
'update mymodule_myobject set "lang"=%s,write_uid=%s,write_date=now() where id 
IN %s'
(Pdb) params
['fr_FR', 1, ('one2many_v_id_1187',)]


Sometimes I have other errors of the same kind, in particular when I
modify a m2o in a o2m in a o2m. It tries to insert things like [2,"Name
of the object"] instead of 2.

I have a hard time finding stuff like that in existing modules in order
to show you proper examples, because there is no easy way to search for
structures like that, but I'm pretty sure they will arise sooner or
later. More generally, it seems to me that calls to the server are often
not well formed when playing with o2m and m2o. Internal data
representation of the web client is not well converted to python. Maybe
it means client needs a cleaner conversion mechanism than the existing
one.

** Affects: openerp-web
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/900777

Title:
  o2m in o2m : bad input for write method

Status in OpenERP Web:
  New

Bug description:
  Hi!

  When a modify a o2m inside a o2m, I get the following error:

  (Pdb) query
  'update mymodule_myobject set "lang"=%s,write_uid=%s,write_date=now() where 
id IN %s'
  (Pdb) params
  ['fr_FR', 1, ('one2many_v_id_1187',)]


  
  Sometimes I have other errors of the same kind, in particular when I modify a 
m2o in a o2m in a o2m. It tries to insert things like [2,"Name of the object"] 
instead of 2.

  I have a hard time finding stuff like that in existing modules in
  order to show you proper examples, because there is no easy way to
  search for structures like that, but I'm pretty sure they will arise
  sooner or later. More generally, it seems to me that calls to the
  server are often not well formed when playing with o2m and m2o.
  Internal data representation of the web client is not well converted
  to python. Maybe it means client needs a cleaner conversion mechanism
  than the existing one.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-web/+bug/900777/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to