diff --git a/mail_multi_website/__init__.py b/mail_multi_website/__init__.py index df93f13..9e1e509 100644 --- a/mail_multi_website/__init__.py +++ b/mail_multi_website/__init__.py @@ -10,7 +10,9 @@ def post_init_hook(cr, registry): env = api.Environment(cr, SUPERUSER_ID, {}) - env.cr.execute("ALTER TABLE res_users ADD COLUMN email_multi_website VARCHAR") + env.cr.execute( + "ALTER TABLE res_users ADD COLUMN IF NOT EXISTS email_multi_website VARCHAR" + ) # fill new email column with values from partner for user in env["res.users"].with_context(active_test=False).search([]): diff --git a/mail_multi_website/__manifest__.py b/mail_multi_website/__manifest__.py index 58dc602..6f09890 100644 --- a/mail_multi_website/__manifest__.py +++ b/mail_multi_website/__manifest__.py @@ -4,9 +4,8 @@ "name": """Multi-Brand Mailing""", "summary": """Use single Backend to manage several Websites""", "category": "Discuss", - # "live_test_url": "http://apps.it-projects.info/shop/product/website-multi-company?version=11.0", "images": ["images/main.jpg"], - "version": "11.0.1.0.0", + "version": "11.0.1.0.1", "application": False, "author": "IT-Projects LLC, Ivan Yelizariev", "support": "apps@itpp.dev", @@ -25,14 +24,4 @@ "uninstall_hook": "uninstall_hook", "auto_install": False, "installable": True, - # "demo_title": "Email Addresses per Website", - # "demo_addons": [ - # ], - # "demo_addons_hidden": [ - # ], - # "demo_url": "DEMO-URL", - # "demo_summary": "Use single Backend to manage several Websites", - # "demo_images": [ - # "images/MAIN_IMAGE", - # ] } diff --git a/mail_multi_website/doc/changelog.rst b/mail_multi_website/doc/changelog.rst index 5583eb3..d154cfe 100644 --- a/mail_multi_website/doc/changelog.rst +++ b/mail_multi_website/doc/changelog.rst @@ -1,3 +1,8 @@ +`1.0.1` +------- + +**Fix:** bug after reinstallation + `1.0.0` -------