From a9c5da180f7743999dc1c212bd3777baa54fc8f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Fontaine?= Date: Fri, 12 Oct 2018 11:31:09 +0000 Subject: [PATCH 1/2] [CLA] signature for Linekio --- doc/cla/individual/linekio.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 doc/cla/individual/linekio.md diff --git a/doc/cla/individual/linekio.md b/doc/cla/individual/linekio.md new file mode 100644 index 00000000000..7c905b998ba --- /dev/null +++ b/doc/cla/individual/linekio.md @@ -0,0 +1,11 @@ +France, 2018-10-12 + +I hereby agree to the terms of the Odoo Individual Contributor License +Agreement v1.0. + +I declare that I am authorized and able to make this agreement and sign this +declaration. + +Signed, + +BenoƮt Fontaine https://github.com/Linekio From 347a3bd94820cf637e41e28793e3d31ab749ea81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Fontaine?= Date: Fri, 12 Oct 2018 11:33:23 +0000 Subject: [PATCH 2/2] [FIX] web: use correct context attribue Disable the possibility to create partner from calendar's sidebar The option "can_create: false" was present but badly referred Fixes odoo/odoo#27666 --- addons/web/static/src/js/views/calendar/calendar_renderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/views/calendar/calendar_renderer.js b/addons/web/static/src/js/views/calendar/calendar_renderer.js index dd0b79c7bc7..6565cbb8385 100644 --- a/addons/web/static/src/js/views/calendar/calendar_renderer.js +++ b/addons/web/static/src/js/views/calendar/calendar_renderer.js @@ -73,7 +73,7 @@ var SidebarFilter = Widget.extend(FieldManagerMixin, { self.model.get(recordID), { mode: 'edit', - can_create: false, + attrs: {can_create: false}, }); }); defs.push(def);