Commit Graph
7 Commits
Author SHA1 Message Date
pedrambiria 1b0f7fb06e [FIX] *_mail_plugin: create a record with the partner's company
Before this commit: if the partner belonged to "Company B" and the
default company was "Company A", it would cause an issue during
the creation of the record (opportunity, ticket, ...) from the mail plugin.

Community PR: https://github.com/odoo/odoo/pull/112088

The solution is to use the partner's company to create.

opw-3141578

closes odoo/odoo#118831

X-original-commit: 21dc6cd01d9262fdf0007249194857e4b75e695e
Related: odoo/enterprise#39903
Signed-off-by: Stéphane Debauche (std) <std@odoo.com>
2023-04-18 08:26:23 +02:00
std-odoo 81d7b17c5c [IMP] mail_plugin: hide the create button if we do not have access right
Purpose
=======
Hide the "Create Partner" button if we do not have the "create" access
right.

Do not offer to create a project if the current user can't.

Do not try to enrich if we can't create a partner.

The write access on the partner is checked on the record itself because
of access rules.

Task-2826471

X-original-commit: b678a9bc1298e9a1973074740a8c8a1d471b6848
Part-of: odoo/odoo#93058
2022-06-08 12:27:08 +02:00
Fabio Barbero fc79bd1e0e [IMP] sm modules: "neutralise" genders
Purpose
=======
Change all masculine nouns in Odoo's code to neutral nouns (when
possible), making sure that demo data is correctly handled. This is
particularly important since our code is open source, and nowadays lots
of machine learning models are trained on open source repositories.

With this small change we contribute to training more "fair" models, and
teaching models that "employee" or "user" != "he".

This also affects some text visible by the user, hence making it more
inclusive for Odoo users.

Task-2853046

closes odoo/odoo#91292

Related: odoo/enterprise#27302
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-05-16 10:09:32 +02:00
std-odoo 5dd6c1f1d3 [FIX] *_mail_plugin: hide modules if the user doesn't have access
Bug
===
If the user doesn't have access to the project / CRM module, those
menus were visible on the addin side.

Now, the sections are not visible if the user doesn't have access to.

Task-2765323

closes odoo/odoo#89260

X-original-commit: 7b7aa72ecdc7e69e425ae08c28e1e7827e423548
Related: odoo/enterprise#26446
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-04-21 13:55:08 +02:00
Laurent Stukkens (LTU) 49fce6207e [FIX] project_mail_plugin: change user_id into user_ids
The `user_id` field was replaced in odoo/odoo#74087 by `user_ids`.
The field change was forgotten in in the returned action of the
`/mail_plugin/task/create` route.

task-2638359
closes #76166

X-original-commit: 7e7b6bec4d996a280475af5c691ec9db020fb048
2021-09-14 21:25:00 +02:00
std-odoo b96ff61808 [IMP] project_mail_plugin: add support for the gmail plugin
Purpose
=======
Allow users to connect their tasks to their Gmail mailbox.

Specifications
==============
Show the tasks related to the current partner (the sender of the opened
email) and allow to open them in Odoo.

Allow the users to create a task from the current email. He could
search the projects in which he want to create the task or even create
a new project.

Return the new of the newly created task.

Return the customer and his image when searching a project.

Task-2518668
See odoo/mail-client-extensions/pull/12
2021-07-27 06:57:27 +00:00
nounoubensebia 035afeb94e [ADD] project_mail_plugin: add support for project's tasks in mail plugin
Add support for tasks for the mail plugins via the new project_mail_plugin
module.

The new module provides the following new features:

- Enables the user to see tasks related to the selected contact, tasks where the
  contact is the customer

- Enables the user to log an email directly to a task as this can be useful when
  the user finds important information in the email

- Enable the user to create a task with the email message being directly set
  in the description field, as the user would probable want the email
  message to be included in the created task, this is done through the
  "create_task" method, which the plugins will use in order to
  create the task and send the related information, the plugin would then
  directly redirect the user to the task form view realted to the created
  record in edit mode.

Purpose is to allow users to connect their tasks to their mailbox.

Which allows for example to create a task from an email received,centralize data
regarding a customer on its task, check ongoing tasks for a customer, ...etc

UPG-PR: https://github.com/odoo/upgrade/pull/2488
Task-2518640

closes odoo/odoo#70943

Related: odoo/upgrade#2488
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-07-13 11:02:51 +00:00