← Back to team overview

openerp-india team mailing list archive

[Bug 927675] Re: update_list in base/module/module.py does not update the "icon" column

 

I would like the "icon" column of the ir_module_module table to be
updated when a module is updated, simple as that.

Currently, if I add an icon in /static/src/img/icon.png in my module
folder, it is not taken into account when the module is updated.

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

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/927675

Title:
  update_list in base/module/module.py does not update the "icon" column

Status in OpenERP Server:
  New

Bug description:
  Hi!

  I tried to add a /static/src/img/icon.png in my module, then I updated
  the list of modules; the "icon" column was not updated. Same thing if
  I remove the line corresponding to my module in ir_module_module table
  and then update the module list.

  Finally, after having looked at the 'update_list' method in base/module/module.py, it appears that only the fields available in the __openerp__.py file are updated, knowing:
          return {
              'description': terp.get('description', ''),
              'shortdesc': terp.get('name', ''),
              'author': terp.get('author', 'Unknown'),
              'maintainer': terp.get('maintainer', False),
              'contributors': ', '.join(terp.get('contributors', [])) or False,
              'website': terp.get('website', ''),
              'license': terp.get('license', 'AGPL-3'),
              'certificate': terp.get('certificate') or False,
              'complexity': terp.get('complexity', ''),
              'sequence': terp.get('sequence', 100),
              'application': terp.get('application', False),
              'auto_install': terp.get('auto_install', False),
          }

  No trace of the icon.

  Cheers!

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/927675/+subscriptions


References