← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 781619] Re: fields with many2one ir.attachment crash when saving object

 

Hello Franck,

I have checked this issue but did not face any problem at my end. Would
you please provide me steps to reproduce the related traceback.

Thanks.

** Changed in: openobject-server
       Status: New => Incomplete

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

Title:
  fields with many2one ir.attachment crash when saving object

Status in OpenERP Server:
  Incomplete

Bug description:
  Didn't really know if it's a bug or not but trying to add attachment
  to an object through a form with photo =
  fields.many2one('ir.attachment', 'photo_primary') throw an error.

  [code]
  +VObp6UinIGMUuhMrW2emjHcHp0opBwMUtLqZvyYVGTkEen/AOr+dPzjr+AqJj1OepqkhrzG1Mrk
  jHQVF1pAefpVNXXoa3b66kxcce9Rl+wPWmk0zPNCig136/cSCpVJ6cVCDVlO3FKei1JbSd/6ZaiP
  IzzzitORCICT121nRDLKMdSK15xi3Y47VlFXu1pqvxZrh3evCz1ck7X2eh//2Q==
   »
  LIGNE 1 : ...ULL,NULL,E'False',2,E'manual_periodic',1,E'False',E'/9j/4R6T...
                                                                 ^

  > /home/franck/.virtualenvs/openerp6.0/src/server/bin/sql_db.py(131)execute()
  -> res = self._obj.execute(query, params)
  (Pdb) 'insert into "product_product" (id,product_tmpl_id,"ean13","price_extra","default_code","variants","track_outgoing","label","valuation","main_artist","track_incoming","photo_secondary","active","catalog_number","photo_primary","track_production","price_margin",create_uid,create_date) values (50,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,now())'

  [/code]


References