From 3e497ea35f27953dcbc4f42f9d7b02031af4caee Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Tue, 5 May 2015 14:29:07 +0200 Subject: [PATCH 01/49] [FIX] registry: recompute `pure_function_fields` after every setup The lazy property `pure_function_fields` was not invalidated upon every setup of models, and hence could contain old instances of fields. As every model setup re-creates instances of fields, the property has to be recomputed. --- openerp/modules/registry.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openerp/modules/registry.py b/openerp/modules/registry.py index aa75e176a56..09267498d2a 100644 --- a/openerp/modules/registry.py +++ b/openerp/modules/registry.py @@ -173,6 +173,8 @@ class Registry(Mapping): :param partial: ``True`` if all models have not been loaded yet. """ + lazy_property.reset_all(self) + # load custom models ir_model = self['ir.model'] cr.execute('select model from ir_model where state=%s', ('manual',)) From 423720700009f8c99fc49908fbecccd41118bf2f Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Tue, 5 May 2015 10:35:58 +0200 Subject: [PATCH 02/49] [FIX] website_quote: css issue for mobile view When seen from a mobile, the shortcut menu was over the content of the quote and hid it. This fix sets the menu inline in the page when he has no place to be on a column on its own. opw-633890 --- addons/website_quote/static/src/css/website_quotation.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/website_quote/static/src/css/website_quotation.css b/addons/website_quote/static/src/css/website_quotation.css index 28bcf38efc1..a235ec889fe 100644 --- a/addons/website_quote/static/src/css/website_quotation.css +++ b/addons/website_quote/static/src/css/website_quotation.css @@ -36,6 +36,11 @@ font-size: 90%; } +@media (max-width: 991px) { + .o_website_quote .bs-sidebar { + position: static; + } +} @media (min-width: 992px) { .o_website_quote .bs-sidebar .nav > .active > ul { display: block; From a124988c524553197fe3e1f39e08723de6671ad0 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Tue, 5 May 2015 10:59:05 +0200 Subject: [PATCH 03/49] [FIX] website_quote: typo for accept button's modal Correcting typo introduced by commit 0d591ca. --- addons/website_quote/views/website_quotation.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_quote/views/website_quotation.xml b/addons/website_quote/views/website_quotation.xml index 5646bdbc0ce..2d64735d756 100644 --- a/addons/website_quote/views/website_quotation.xml +++ b/addons/website_quote/views/website_quotation.xml @@ -156,7 +156,7 @@