Browse Source

[REN] rename to web_advanced_filters

pull/29/head
Holger Brunn 10 years ago
parent
commit
48e9c42a1c
  1. 0
      web_advanced_filters/__init__.py
  2. 1
      web_advanced_filters/__openerp__.py
  3. 6
      web_advanced_filters/data/migration.xml
  4. 0
      web_advanced_filters/i18n/advanced_filter.pot
  5. 0
      web_advanced_filters/i18n/nl.po
  6. 0
      web_advanced_filters/model/__init__.py
  7. 17
      web_advanced_filters/model/ir_filters.py
  8. 0
      web_advanced_filters/static/src/css/advanced_filters.css
  9. 0
      web_advanced_filters/static/src/img/icon.png
  10. 0
      web_advanced_filters/static/src/js/advanced_filters.js
  11. 0
      web_advanced_filters/view/ir_filters.xml
  12. 0
      web_advanced_filters/wizard/__init__.py
  13. 0
      web_advanced_filters/wizard/ir_filters_combine_with_existing.py
  14. 0
      web_advanced_filters/wizard/ir_filters_combine_with_existing.xml

0
advanced_filters/__init__.py → web_advanced_filters/__init__.py

1
advanced_filters/__openerp__.py → web_advanced_filters/__openerp__.py

@ -56,6 +56,7 @@ this query before uninstalling to avoid that:
'web',
],
"data": [
"data/migration.xml",
"wizard/ir_filters_combine_with_existing.xml",
"view/ir_filters.xml",
],

6
web_advanced_filters/data/migration.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data noupdate="1">
<function name="_migrate_name_change" model="ir.filters" />
</data>
</openerp>

0
advanced_filters/i18n/advanced_filter.pot → web_advanced_filters/i18n/advanced_filter.pot

0
advanced_filters/i18n/nl.po → web_advanced_filters/i18n/nl.po

0
advanced_filters/model/__init__.py → web_advanced_filters/model/__init__.py

17
advanced_filters/model/ir_filters.py → web_advanced_filters/model/ir_filters.py

@ -148,3 +148,20 @@ class IrFilters(Model):
cr.execute(
'ALTER table %s RENAME domain TO domain_this' % self._table)
return super(IrFilters, self)._auto_init(cr, context=context)
def _migrate_name_change(self, cr, uid, context=None):
cr.execute(
"select id from ir_module_module where name='advanced_filters' "
"and author='Therp BV'")
old_name_installed = cr.fetchall()
if not old_name_installed:
return
cr.execute(
"delete from ir_model_data where module='web_advanced_filters'")
cr.execute(
"update ir_model_data set module='web_advanced_filters' "
"where module='advanced_filters'")
cr.execute(
"update ir_module_module set state='to remove' where "
"name='advanced_filters' and state not in "
"('uninstalled', 'to remove')")

0
advanced_filters/static/src/css/advanced_filters.css → web_advanced_filters/static/src/css/advanced_filters.css

0
advanced_filters/static/src/img/icon.png → web_advanced_filters/static/src/img/icon.png

Before

Width: 128  |  Height: 128  |  Size: 16 KiB

After

Width: 128  |  Height: 128  |  Size: 16 KiB

0
advanced_filters/static/src/js/advanced_filters.js → web_advanced_filters/static/src/js/advanced_filters.js

0
advanced_filters/view/ir_filters.xml → web_advanced_filters/view/ir_filters.xml

0
advanced_filters/wizard/__init__.py → web_advanced_filters/wizard/__init__.py

0
advanced_filters/wizard/ir_filters_combine_with_existing.py → web_advanced_filters/wizard/ir_filters_combine_with_existing.py

0
advanced_filters/wizard/ir_filters_combine_with_existing.xml → web_advanced_filters/wizard/ir_filters_combine_with_existing.xml

Loading…
Cancel
Save