Browse Source

Merge pull request #181 from KolushovAlexandr/12.0-mail_multi_website-uninstallation_issue

🚑 mail_multi_website issue related to module uninstallation
pull/185/head
Ivan Yelizariev 6 years ago
committed by GitHub
parent
commit
c73e609a26
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      mail_multi_website/__init__.py
  2. 2
      mail_multi_website/__manifest__.py
  3. 5
      mail_multi_website/doc/changelog.rst

10
mail_multi_website/__init__.py

@ -26,11 +26,11 @@ def uninstall_hook(cr, registry):
# remove properties # remove properties
field_ids = [ field_ids = [
env.ref('base.field_res_users_email').id,
env.ref('base.field_res_users_signature').id,
env.ref('mail.field_mail_template_body_html').id,
env.ref('mail.field_mail_template_mail_server_id').id,
env.ref('mail.field_mail_template_report_template').id,
env.ref('base.field_res_users__email').id,
env.ref('base.field_res_users__signature').id,
env.ref('mail.field_mail_template__body_html').id,
env.ref('mail.field_mail_template__mail_server_id').id,
env.ref('mail.field_mail_template__report_template').id,
] ]
env['ir.property'].search([('fields_id', 'in', field_ids)]).unlink() env['ir.property'].search([('fields_id', 'in', field_ids)]).unlink()

2
mail_multi_website/__manifest__.py

@ -7,7 +7,7 @@
"category": "Discuss", "category": "Discuss",
"live_test_url": "http://apps.it-projects.info/shop/product/website-multi-company?version=11.0", "live_test_url": "http://apps.it-projects.info/shop/product/website-multi-company?version=11.0",
"images": ["images/main.jpg"], "images": ["images/main.jpg"],
"version": "12.0.1.0.0",
"version": "12.0.1.0.1",
"application": False, "application": False,
"author": "IT-Projects LLC, Ivan Yelizariev", "author": "IT-Projects LLC, Ivan Yelizariev",

5
mail_multi_website/doc/changelog.rst

@ -1,3 +1,8 @@
`1.0.1`
-------
- **Fix:** Issue related to module uninstallation
`1.0.0` `1.0.0`
------- -------

Loading…
Cancel
Save