From 682ae1cc64e663ef46464083e86916106434d716 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 22 May 2018 14:33:08 +0200 Subject: [PATCH 1/2] [FIX] website_form: set meta field Before this commit, if you enable website_form_enable_metadata, that will crash with a "KeyError: 'meta'" This commit closes #24848 --- addons/website_form/controllers/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/website_form/controllers/main.py b/addons/website_form/controllers/main.py index f0ef484f1a9..5632d97f916 100644 --- a/addons/website_form/controllers/main.py +++ b/addons/website_form/controllers/main.py @@ -111,6 +111,7 @@ class WebsiteForm(http.Controller): 'record': {}, # Values to create record 'attachments': [], # Attached files 'custom': '', # Custom fields values + 'meta': '', # Add metadata if enabled } authorized_fields = model.sudo()._get_form_writable_fields() From d1df278f01b2bf2e2c269e38f5adf3587a9827bf Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Tue, 22 May 2018 15:00:47 +0200 Subject: [PATCH 2/2] [FIX] stock: portal user can see pack operations Have a delivery for a client, with pack operations Connect on this user's portal Go on the SO and then on the delivery Before this commit, there was an Error 500 because access to fields of pack_operations was forbidden After this commit, the report downloads well OPW 1849520 closes #24849 --- addons/stock/report/report_deliveryslip.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/stock/report/report_deliveryslip.xml b/addons/stock/report/report_deliveryslip.xml index e32f519c2d8..920f9004316 100644 --- a/addons/stock/report/report_deliveryslip.xml +++ b/addons/stock/report/report_deliveryslip.xml @@ -78,7 +78,9 @@ - + + +