Commit Graph
3 Commits
Author SHA1 Message Date
Aaron Bohy 1f52c8edd3 [REF] *: remove form_view_initial_mode context key support
The purpose of this key was to force the form view to be in edit
mode directly when opening a record, in specific actions. This is
now automatically the case since form views are always in edit
mode. This commit thus removes the support of the key, and removes
all occurrences where it was set in the codebase.

Part of task 3179751

closes odoo/odoo#115172

Related: odoo/enterprise#38130
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-03-16 14:12:37 +01:00
Victor Feyens 24ccf7d9b0 [CLN] *: useless type info for actions
The type fields of actions already defaults to
the model name in the base model definition.

Therefore, specifying `ir.actions.server`, `ir.actions.act_window`
& so on as type is useless (and adds noise since it's the same as
the action model).

closes odoo/odoo#114539

Related: odoo/enterprise#37855
Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
2023-03-08 17:33:37 +01: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