← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 756343] Re: O2M: D&D should not call write if the model is not saved.

 

** Branch linked: lp:~openerp-dev/openobject-client/trunk-bug-756343-nch

-- 
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/756343

Title:
  O2M: D&D should not call write if the model is not saved.

Status in OpenERP GTK Client:
  Fix Committed

Bug description:
   for example in the product supplier view.
  I add a new line of supplier and when i try to reorder lines with drag and drop without saving the new lines, I obtain this message.

  ERROR:db.cursor:bad query: insert into "product_supplierinfo" (id,"name","product_uom","sequence","company_id","qty","delay","min_qty","product_code","product_name",create_uid,create_date) values (34,2,1,1,1,0.0,1,0.0,NULL,NULL,1,now())
  Traceback (most recent call last):
    File "/media/StorageForDev/workspace/oerp_602/server/bin/sql_db.py", line 131, in execute
      res = self._obj.execute(query, params)
  IntegrityError: ERREUR:  une valeur NULL viole la contrainte NOT NULL de la colonne « product_id »

  This error is only in the GTK client.

  I observe this bug on ubuntu 10.04 and on debian squeeze, in all V6.0
  until this message.

  Bruno Guibert
  Héonium.



References