← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 822714] Re: Wrong type of argument in "create" and "write" of a osv_memory object

 

Hi,

Yes indeed you are right. In fact I realized my problem is a bit more
subtle than what I thought.

When I run a wizard from a view in which there is such a many2one with
widget "selection", even if I didn't change anything, the client thinks
the values changed because the value in the field many2one is a tuple,
and what it reads from DB is a integer -- so they are different.

Therefore, if I cancel the wizard and try to re-run it just after, the
client thinks there is a concurrency exception, since it tries to write
but there wa

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

Title:
  Wrong type of argument in "create" and "write" of a osv_memory object

Status in OpenERP Web Client:
  Incomplete

Bug description:
  I create a osv_memory object in which there is a many2one relationship
  to an (osv) object.

  I display this many2one as a selection field.

  When the function "create" is called for this osv_memory object, the
  value of the many2one field is a string instead of an integer.

  This can be problematic latter if "browse" is used (since it generates
  errors).

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client-web/+bug/822714/+subscriptions


References