Browse Source

💚 fixing trailing comma

pull/261/head
Ivan Yelizariev 5 years ago
parent
commit
6692a6816b
No known key found for this signature in database GPG Key ID: 93F14FB6A8B57057
  1. 4
      mail_all/__manifest__.py
  2. 6
      mail_archives/__manifest__.py
  3. 2
      mail_base/__manifest__.py
  4. 4
      mail_check_immediately/__manifest__.py
  5. 6
      mail_move_message/__manifest__.py
  6. 4
      mail_move_message/mail_move_message_models.py
  7. 2
      mail_multi_website/__manifest__.py
  8. 2
      mail_multi_website/tests/test_fetch.py
  9. 4
      mail_multi_website/tests/test_render.py
  10. 2
      mail_multi_website/tests/test_send.py
  11. 4
      mail_private/__manifest__.py
  12. 2
      mail_recovery/__manifest__.py
  13. 4
      mail_reply/__manifest__.py
  14. 6
      mail_sent/__manifest__.py
  15. 6
      mail_to/__manifest__.py
  16. 2
      mail_to/tests/test_default.py
  17. 6
      mailgun/__manifest__.py
  18. 2
      res_partner_company_messages/__manifest__.py
  19. 2
      res_partner_mails_count/__manifest__.py

4
mail_all/__manifest__.py

@ -18,8 +18,8 @@
"currency": "EUR", "currency": "EUR",
"depends": ["mail"], "depends": ["mail"],
"external_dependencies": {"python": [], "bin": []}, "external_dependencies": {"python": [], "bin": []},
"data": ["views/templates.xml",],
"qweb": ["static/src/xml/menu.xml",],
"data": ["views/templates.xml"],
"qweb": ["static/src/xml/menu.xml"],
"demo": [], "demo": [],
"post_load": None, "post_load": None,
"pre_init_hook": None, "pre_init_hook": None,

6
mail_archives/__manifest__.py

@ -10,8 +10,8 @@
"license": "LGPL-3", "license": "LGPL-3",
"price": 40.00, "price": 40.00,
"currency": "EUR", "currency": "EUR",
"depends": ["mail",],
"data": ["views/templates.xml",],
"qweb": ["static/src/xml/menu.xml",],
"depends": ["mail"],
"data": ["views/templates.xml"],
"qweb": ["static/src/xml/menu.xml"],
"installable": False, "installable": False,
} }

2
mail_base/__manifest__.py

@ -11,6 +11,6 @@
"price": 9.00, "price": 9.00,
"currency": "EUR", "currency": "EUR",
"depends": ["base", "mail"], "depends": ["base", "mail"],
"data": ["views/templates.xml",],
"data": ["views/templates.xml"],
"installable": False, "installable": False,
} }

4
mail_check_immediately/__manifest__.py

@ -9,7 +9,7 @@
"price": 9.00, "price": 9.00,
"currency": "EUR", "currency": "EUR",
"depends": ["base", "web", "fetchmail", "mail"], "depends": ["base", "web", "fetchmail", "mail"],
"data": ["views.xml",],
"qweb": ["static/src/xml/main.xml",],
"data": ["views.xml"],
"qweb": ["static/src/xml/main.xml"],
"installable": False, "installable": False,
} }

6
mail_move_message/__manifest__.py

@ -16,8 +16,8 @@
"website": "https://twitter.com/yelizariev", "website": "https://twitter.com/yelizariev",
"price": 100.00, "price": 100.00,
"currency": "EUR", "currency": "EUR",
"depends": ["mail_all",],
"data": ["mail_move_message_views.xml", "data/mail_move_message_data.xml",],
"qweb": ["static/src/xml/mail_move_message_main.xml",],
"depends": ["mail_all"],
"data": ["mail_move_message_views.xml", "data/mail_move_message_data.xml"],
"qweb": ["static/src/xml/mail_move_message_main.xml"],
"installable": False, "installable": False,
} }

4
mail_move_message/mail_move_message_models.py

@ -413,7 +413,7 @@ class MailMessage(models.Model):
return return
if not self.author_id: if not self.author_id:
self.write( self.write(
{"author_id": author.id,}
{"author_id": author.id}
) )
vals = {} vals = {}
@ -447,7 +447,7 @@ class MailMessage(models.Model):
"is_read": False, "is_read": False,
} }
self.write( self.write(
{"notification_ids": [(0, 0, notification)],}
{"notification_ids": [(0, 0, notification)]}
) )
for r in self.all_child_ids: for r in self.all_child_ids:

2
mail_multi_website/__manifest__.py

@ -22,7 +22,7 @@
"test_mail", "test_mail",
], ],
"external_dependencies": {"python": [], "bin": []}, "external_dependencies": {"python": [], "bin": []},
"data": ["views/website_views.xml",],
"data": ["views/website_views.xml"],
"demo": [], "demo": [],
"qweb": [], "qweb": [],
"post_load": None, "post_load": None,

2
mail_multi_website/tests/test_fetch.py

@ -14,7 +14,7 @@ class TestFetch(TestMail):
def setUp(self): def setUp(self):
super(TestFetch, self).setUp() super(TestFetch, self).setUp()
self.website = self.env["website"].create( self.website = self.env["website"].create(
{"name": "Test Website", "domain": "example.com",}
{"name": "Test Website", "domain": "example.com"}
) )
self.company = self.env["res.company"].create({"name": "New Test Website"}) self.company = self.env["res.company"].create({"name": "New Test Website"})
self.website.company_id = self.company self.website.company_id = self.company

4
mail_multi_website/tests/test_render.py

@ -22,7 +22,7 @@ class TestRender(TestMail):
self.company = self.env["res.company"].create({"name": "New Test Website"}) self.company = self.env["res.company"].create({"name": "New Test Website"})
self.website.company_id = self.company self.website.company_id = self.company
self.mail_server_id = self.env["ir.mail_server"].create( self.mail_server_id = self.env["ir.mail_server"].create(
{"name": "mail server", "smtp_host": "mail.example.com",}
{"name": "mail server", "smtp_host": "mail.example.com"}
) )
self.website.mail_server_id = self.mail_server_id self.website.mail_server_id = self.mail_server_id
@ -84,7 +84,7 @@ class TestRender(TestMail):
self.env.user.backend_website_id = None self.env.user.backend_website_id = None
TestModel = self.env["mail.test"].with_context( TestModel = self.env["mail.test"].with_context(
{"mail_create_nolog": True, "mail_create_nosubscribe": True,}
{"mail_create_nolog": True, "mail_create_nosubscribe": True}
) )
self.test_pigs = TestModel.create( self.test_pigs = TestModel.create(
{ {

2
mail_multi_website/tests/test_send.py

@ -57,7 +57,7 @@ class TestSendMail(TransactionCase):
original_email = "original@email1" original_email = "original@email1"
new_email = "new@email2" new_email = "new@email2"
partner = self.env["res.partner"].create( partner = self.env["res.partner"].create(
{"name": "test", "email": original_email,}
{"name": "test", "email": original_email}
) )
self.switch_user_website() self.switch_user_website()
# update partner's email # update partner's email

4
mail_private/__manifest__.py

@ -17,9 +17,9 @@
"currency": "EUR", "currency": "EUR",
"depends": ["mail"], "depends": ["mail"],
"external_dependencies": {"python": [], "bin": []}, "external_dependencies": {"python": [], "bin": []},
"data": ["template.xml", "full_composer_wizard.xml",],
"data": ["template.xml", "full_composer_wizard.xml"],
"demo": [], "demo": [],
"qweb": ["static/src/xml/mail_private.xml",],
"qweb": ["static/src/xml/mail_private.xml"],
"post_load": None, "post_load": None,
"pre_init_hook": None, "pre_init_hook": None,
"post_init_hook": None, "post_init_hook": None,

2
mail_recovery/__manifest__.py

@ -11,6 +11,6 @@
"images": ["images/mail_recovery.png"], "images": ["images/mail_recovery.png"],
"vesion": "13.0.1.0.0", "vesion": "13.0.1.0.0",
"depends": ["mail"], "depends": ["mail"],
"data": ["data.xml",],
"data": ["data.xml"],
"installable": False, "installable": False,
} }

4
mail_reply/__manifest__.py

@ -10,10 +10,10 @@
"license": "LGPL-3", "license": "LGPL-3",
"price": 40.00, "price": 40.00,
"currency": "EUR", "currency": "EUR",
"depends": ["mail_base",],
"depends": ["mail_base"],
"external_dependencies": {"python": [], "bin": []}, "external_dependencies": {"python": [], "bin": []},
"data": ["templates.xml"], "data": ["templates.xml"],
"qweb": ["static/src/xml/reply_button.xml",],
"qweb": ["static/src/xml/reply_button.xml"],
"demo": [], "demo": [],
"installable": False, "installable": False,
"auto_install": False, "auto_install": False,

6
mail_sent/__manifest__.py

@ -10,8 +10,8 @@
"license": "LGPL-3", "license": "LGPL-3",
"price": 40.00, "price": 40.00,
"currency": "EUR", "currency": "EUR",
"depends": ["mail",],
"data": ["views/templates.xml",],
"qweb": ["static/src/xml/menu.xml",],
"depends": ["mail"],
"data": ["views/templates.xml"],
"qweb": ["static/src/xml/menu.xml"],
"installable": False, "installable": False,
} }

6
mail_to/__manifest__.py

@ -10,10 +10,10 @@
"license": "LGPL-3", "license": "LGPL-3",
"price": 40.00, "price": 40.00,
"currency": "EUR", "currency": "EUR",
"depends": ["mail",],
"depends": ["mail"],
"external_dependencies": {"python": [], "bin": []}, "external_dependencies": {"python": [], "bin": []},
"data": ["templates.xml",],
"qweb": ["static/src/xml/recipient.xml",],
"data": ["templates.xml"],
"qweb": ["static/src/xml/recipient.xml"],
"demo": [], "demo": [],
"installable": False, "installable": False,
"auto_install": False, "auto_install": False,

2
mail_to/tests/test_default.py

@ -36,7 +36,7 @@ class TestUi(odoo.tests.HttpCase):
# notifications for everyone # notifications for everyone
for p in partner_ids.ids: for p in partner_ids.ids:
env["mail.notification"].create( env["mail.notification"].create(
{"res_partner_id": p, "mail_message_id": msg.id, "is_read": False,}
{"res_partner_id": p, "mail_message_id": msg.id, "is_read": False}
) )
code = """ code = """
setTimeout(function () { setTimeout(function () {

6
mailgun/__manifest__.py

@ -14,9 +14,9 @@
"license": "LGPL-3", "license": "LGPL-3",
"price": 195.00, "price": 195.00,
"currency": "EUR", "currency": "EUR",
"depends": ["mail",],
"depends": ["mail"],
"external_dependencies": {"python": [], "bin": []}, "external_dependencies": {"python": [], "bin": []},
"data": ["data/ir_cron_data.xml",],
"data": ["data/ir_cron_data.xml"],
"demo": [], "demo": [],
"qweb": [], "qweb": [],
"post_load": None, "post_load": None,
@ -30,5 +30,5 @@
"demo_addons_hidden": [], "demo_addons_hidden": [],
"demo_url": "mailgun", "demo_url": "mailgun",
"demo_summary": "Easy to send outgoing and fetch incoming messages by using Mailgun", "demo_summary": "Easy to send outgoing and fetch incoming messages by using Mailgun",
"demo_images": ["images/mailgun_main.png",],
"demo_images": ["images/mailgun_main.png"],
} }

2
res_partner_company_messages/__manifest__.py

@ -10,6 +10,6 @@
"website": "https://twitter.com/yelizariev", "website": "https://twitter.com/yelizariev",
"images": ["images/child.png", "images/parent.png"], "images": ["images/child.png", "images/parent.png"],
"depends": ["mail"], "depends": ["mail"],
"data": ["views.xml",],
"data": ["views.xml"],
"installable": False, "installable": False,
} }

2
res_partner_mails_count/__manifest__.py

@ -15,7 +15,7 @@
# 'web_tour_extra', # 'web_tour_extra',
], ],
"external_dependencies": {"python": [], "bin": []}, "external_dependencies": {"python": [], "bin": []},
"data": ["views/res_partner_mails_count.xml", "templates.xml",],
"data": ["views/res_partner_mails_count.xml", "templates.xml"],
"demo": [], "demo": [],
"installable": False, "installable": False,
"auto_install": False, "auto_install": False,

Loading…
Cancel
Save