Merge lp:~openerp-dev/openobject-client/6.1-opw-573333-ado into lp:openobject-client/6.1
Proposed by
Amit Dodiya (OpenERP)
Status: | Merged |
---|---|
Approved by: | Naresh(OpenERP) |
Approved revision: | 2075 |
Merged at revision: | 2075 |
Proposed branch: | lp:~openerp-dev/openobject-client/6.1-opw-573333-ado |
Merge into: | lp:openobject-client/6.1 |
Diff against target: |
10 lines (+1/-0) 1 file modified
bin/widget/view/form_gtk/image.py (+1/-0) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-client/6.1-opw-573333-ado |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Naresh(OpenERP) (community) | Approve | ||
Amit Dodiya (OpenERP) (community) | Needs Resubmitting | ||
Xavier ALT | Pending | ||
Review via email: mp+100075@code.launchpad.net |
Description of the change
Hello,
"[FIX] Set filename when uploading an image is broken on 6.1"
Steps:
1). Goto : Settings/
2). Open product.normal.form
3). Add "<field name="product_
4). Try to upload image in product.
After adding filename tag "reference" is fill with the name but the field "product_images" is empty.
Thanks,
Amit
To post a comment you must log in.
Hello Amit,
The issue is due to lack of setting the fields value in the model field while adding new image ! your fix will just bypass the root cause. It should be something like: ~/workspace/ OpenERP2012/ 6.1/client/ bin$ bzr diff view/form_ gtk/image. py' view/form_ gtk/image. py 2011-09-26 12:53:49 +0000 view/form_ gtk/image. py 2012-07-17 11:06:16 +0000
self. _value = encodestring( file(filename, 'rb').read())
self. update_ img() value(self. _view.model, self._view. model.mgroup. mfields[ self.attrs[ 'name'] ]) model.mgroup. mfields:
self. _view.model. set({self. has_filename: os.path. basename( filename) }, modified=True)
nch@Naresh:
=== modified file 'bin/widget/
--- bin/widget/
+++ bin/widget/
@@ -114,9 +114,11 @@
if filename:
+ self.set_
if self.has_filename and self.has_filename in self._view.
can you please test this and update your MP accordingly ?
Thanks,
Naresh