c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #29626
[Bug 781619] Re: fields with many2one ir.attachment crash when saving object
Hello Franck,
Would you please check this again with latest updated code.
Currently I am closing this issue and if you still face the problem then
you can reopen this with more information.
Thanks.
** Changed in: openobject-server
Status: Expired => Invalid
--
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:
Invalid
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]
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/781619/+subscriptions
References