Browse Source

Merge pull request #339 from trojikman/11.0-mail_multi_website

commit is created by 👷‍♂️ Merge Bot: https://odoo-devops.readthedocs.io/en/latest/git/github-merge-bot.html
pull/343/head
Mitchell Admin 4 years ago
committed by GitHub
parent
commit
4d28379cef
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      mail_multi_website/__init__.py
  2. 13
      mail_multi_website/__manifest__.py
  3. 5
      mail_multi_website/doc/changelog.rst

4
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([]):

13
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",
# ]
}

5
mail_multi_website/doc/changelog.rst

@ -1,3 +1,8 @@
`1.0.1`
-------
**Fix:** bug after reinstallation
`1.0.0`
-------

Loading…
Cancel
Save