[IMP] module: rename field 'image' to 'icon_image' (leaving 'image' for other kinds of module images)
bzr revid: rco@openerp.com-20120612091041-fpamk1r8b4e42k9v
This commit is contained in:
@@ -161,7 +161,7 @@ class module(osv.osv):
|
||||
res[key][k] = "\n".join(sorted(v))
|
||||
return res
|
||||
|
||||
def _get_image(self, cr, uid, ids, field_name=None, arg=None, context=None):
|
||||
def _get_icon_image(self, cr, uid, ids, field_name=None, arg=None, context=None):
|
||||
res = dict.fromkeys(ids, '')
|
||||
for module in self.browse(cr, uid, ids, context=context):
|
||||
path = addons.get_module_resource(module.name, 'static', 'src', 'img', 'icon.png')
|
||||
@@ -224,7 +224,7 @@ class module(osv.osv):
|
||||
'certificate' : fields.char('Quality Certificate', size=64, readonly=True),
|
||||
'application': fields.boolean('Application', readonly=True),
|
||||
'icon': fields.char('Icon URL', size=128),
|
||||
'image': fields.function(_get_image, string='Icon', type="binary"),
|
||||
'icon_image': fields.function(_get_icon_image, string='Icon', type="binary"),
|
||||
}
|
||||
|
||||
_defaults = {
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
</header>
|
||||
<sheet>
|
||||
<div class="oe_right oe_form_button_box">
|
||||
<field name="image" widget="image"/>
|
||||
<field name="icon_image" widget="image"/>
|
||||
</div>
|
||||
<div class="oe_form_title">
|
||||
<label for="shortdesc" class="oe_form_readonly_hidden"/>
|
||||
|
||||
Reference in New Issue
Block a user