[ADD] Patches Survey core module

This commit is contained in:
Jorge Enrique Gómez Gómez 2023-07-13 17:55:28 -05:00
parent da1f140b89
commit d80664d8cd
2 changed files with 15 additions and 1 deletions

View File

@ -37,11 +37,12 @@ pt_core ()
#git apply $OPTIONS $SRC/patches/20210603_auth-oauth_redirects-to-root.patch #git apply $OPTIONS $SRC/patches/20210603_auth-oauth_redirects-to-root.patch
#git apply $OPTIONS $SRC/patches/20220131_purchase-requisition_match-variant.patch #git apply $OPTIONS $SRC/patches/20220131_purchase-requisition_match-variant.patch
#git apply $OPTIONS $SRC/patches/20230309_ir-attachment_allow-portal-users-attachment-access.patch #git apply $OPTIONS $SRC/patches/20230309_ir-attachment_allow-portal-users-attachment-access.patch
#git apply $OPTIONS $SRC/patches/20230425_stock_picking-type-from-return.patch
# Included in 2023-03-09 patch: # Included in 2023-03-09 patch:
#git apply $OPTIONS $SRC/patches/20230206_ir-attachment_allow-portal-users-attachment-access.patch #git apply $OPTIONS $SRC/patches/20230206_ir-attachment_allow-portal-users-attachment-access.patch
# Reverted in https://github.com/odoo/odoo/commit/8d1d62a8c0746abb30f97290304b761f74111a89: # Reverted in https://github.com/odoo/odoo/commit/8d1d62a8c0746abb30f97290304b761f74111a89:
#git apply $OPTIONS $SRC/patches/20220204_mail_re-enables-buttons-in-notifications.patch #git apply $OPTIONS $SRC/patches/20220204_mail_re-enables-buttons-in-notifications.patch
git apply $OPTIONS $SRC/patches/20230425_stock_picking-type-from-return.patch git apply $OPTIONS $SRC/patches/20230713_survey_include-post-in-answer.patch
popd popd
} }

View File

@ -0,0 +1,13 @@
diff --git a/addons/survey/controllers/main.py b/addons/survey/controllers/main.py
index 35094d3f..7763bbcd 100644
--- a/addons/survey/controllers/main.py
+++ b/addons/survey/controllers/main.py
@@ -235,7 +235,7 @@ class Survey(http.Controller):
survey_sudo, answer_sudo = access_data['survey_sudo'], access_data['answer_sudo']
if not answer_sudo:
try:
- answer_sudo = survey_sudo._create_answer(user=request.env.user, email=email)
+ answer_sudo = survey_sudo._create_answer(user=request.env.user, email=email, **post)
except UserError:
answer_sudo = False