From cc6ecce5f01e18eaaad548e46b27bca2295f8f1d Mon Sep 17 00:00:00 2001 From: damr Date: Wed, 17 Jan 2024 15:35:56 +0100 Subject: [PATCH] [FIX] base,*: remove force_email from the context in views ba1a550#diff-36973ac6e1f20b32a00fbcdc1f811c923bbb44ca15a0e068018e904ff565644fR97 The previous PR added some constraints on what can be used on the context of views. The key word 'force-email' is no longer relevant and will be removed from the context before reaching the next view/python code. This commit's purpose is to remove the force_email that were forgotten. In order to still open the simplified partner form view, the ref of the view is given in the context instead. While at it, we also fix the create option given on the partner_ids field that was inconsistent. affected version 17.0 - master task - 3538000 https://www.odoo.com/web#id=3538000&menu_id=4720&cids=1&action=333&active_id=4105&model=project.task&view_type=form Please enter the commit message for your changes. Lines starting closes odoo/odoo#149806 Related: odoo/enterprise#54549 Signed-off-by: Xavier Bol (xbo) --- addons/account/wizard/account_move_send_views.xml | 3 ++- addons/calendar/views/calendar_views.xml | 6 ++++-- addons/mail/wizard/mail_compose_message_views.xml | 2 +- addons/mail/wizard/mail_wizard_invite_views.xml | 3 ++- addons/project/wizard/project_share_wizard_views.xml | 2 +- addons/sale/wizard/sale_order_cancel_views.xml | 5 ++--- addons/survey/wizard/survey_invite_views.xml | 4 ++-- addons/website_slides/wizard/slide_channel_invite_views.xml | 3 ++- odoo/addons/base/models/res_partner.py | 2 -- odoo/addons/base/views/res_partner_views.xml | 2 +- 10 files changed, 17 insertions(+), 15 deletions(-) diff --git a/addons/account/wizard/account_move_send_views.xml b/addons/account/wizard/account_move_send_views.xml index 051f2462727..8e3efa7354e 100644 --- a/addons/account/wizard/account_move_send_views.xml +++ b/addons/account/wizard/account_move_send_views.xml @@ -54,7 +54,8 @@ + options="{'no_quick_create': True}" + context="{'show_email': True, 'form_view_ref': 'base.view_partner_simple_form'}"/>