diff --git a/mail_activity_team/models/mail_activity_mixin.py b/mail_activity_team/models/mail_activity_mixin.py index f141d285f..4d844e8a3 100644 --- a/mail_activity_team/models/mail_activity_mixin.py +++ b/mail_activity_team/models/mail_activity_mixin.py @@ -80,7 +80,7 @@ class MailActivityMixin(models.AbstractModel): date_deadline=date_deadline, summary=summary, note=note, - **act_values + **act_values, ) @api.depends( diff --git a/mail_activity_team/models/mail_activity_type.py b/mail_activity_team/models/mail_activity_type.py index f6babceaa..73a2da784 100644 --- a/mail_activity_team/models/mail_activity_type.py +++ b/mail_activity_team/models/mail_activity_type.py @@ -5,7 +5,6 @@ from odoo import fields, models class MailActivityType(models.Model): - _inherit = "mail.activity.type" default_team_id = fields.Many2one(comodel_name="mail.activity.team") diff --git a/mail_activity_team/pyproject.toml b/mail_activity_team/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/mail_activity_team/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/mail_activity_team/readme/CONTRIBUTORS.md b/mail_activity_team/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..7a9a07938 --- /dev/null +++ b/mail_activity_team/readme/CONTRIBUTORS.md @@ -0,0 +1,9 @@ +- [ForgeFlow](https://www.forgeflow.com): + - Jordi Ballester Alomar () + - Miquel Raïch () + - Bernat Puig Font () +- Pedro Gonzalez () +- [Tecnativa](https://www.tecnativa.com): + - David Vidal +- [Dynapps](https://www.dynapps.eu): + - Raf Ven diff --git a/mail_activity_team/readme/CONTRIBUTORS.rst b/mail_activity_team/readme/CONTRIBUTORS.rst deleted file mode 100644 index 7216fd643..000000000 --- a/mail_activity_team/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,12 +0,0 @@ -* `ForgeFlow `_: - - * Jordi Ballester Alomar (jordi.ballester@forgeflow.com) - * Miquel Raïch (miquel.raich@forgeflow.com) - * Bernat Puig Font (bernat.puig@forgeflow.com) -* Pedro Gonzalez (pedro.gonzalez@pesol.es) -* `Tecnativa `_: - - * David Vidal -* `Dynapps `_: - - * Raf Ven diff --git a/mail_activity_team/readme/DESCRIPTION.rst b/mail_activity_team/readme/DESCRIPTION.md similarity index 100% rename from mail_activity_team/readme/DESCRIPTION.rst rename to mail_activity_team/readme/DESCRIPTION.md diff --git a/mail_activity_team/readme/USAGE.md b/mail_activity_team/readme/USAGE.md new file mode 100644 index 000000000..46d49d407 --- /dev/null +++ b/mail_activity_team/readme/USAGE.md @@ -0,0 +1,16 @@ +To set up new teams: + +1. Go to *Settings / Activate developer mode* +2. Go to *Settings / Technical / Email / Activity Teams* +3. Create a new Team and assign (optionally) the models in which it + will be used, and the members of the team. + +You can also assign a user to Activity teams going to *Settings / Users +& Companies / Users*, and in the *Preferences* tab, field Activity +Teams. + +When you create a new activity the application will propose the user's +assigned team. + +You can report on the activities assigned to a team going to *Dashboards +/ Activities*, and then filter by a specific team or group by teams.