From efe1e4a183867aa19a2f4d3063091c0e373ddda6 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Fri, 7 Feb 2014 16:54:54 +0100 Subject: [PATCH 01/12] [FIX] website test: remove hack for runbot bzr revid: chm@openerp.com-20140207155454-jf3pwp3hl9nvay6m --- addons/website/tests/test_ui.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/addons/website/tests/test_ui.py b/addons/website/tests/test_ui.py index e79a2eb13ec..eafe791c204 100644 --- a/addons/website/tests/test_ui.py +++ b/addons/website/tests/test_ui.py @@ -86,10 +86,6 @@ class WebsiteUiSuite(unittest.TestSuite): self._options['timeout'] = self._timeout self._options['port'] = tools.config.get('xmlrpc_port', 80) self._options['db'] = tools.config.get('db_name', '') - # FIX for runbot test - if hasattr(os, 'uname') and os.uname()[1].startswith('runbot.'): - self._options['host'] = tools.config.get('db_name', '') + ".runbot.openerp.com" - if 'user' not in self._options: self._options['user'] = 'admin' self._options['password'] = 'admin' From 234aa3928584fe1a83def860df1ae9d706b02ea3 Mon Sep 17 00:00:00 2001 From: jke-openerp Date: Fri, 7 Feb 2014 18:16:37 +0100 Subject: [PATCH 02/12] [FIX] Fix bug when an event with date_startand date_stop (and not datetime as calendar) have always 1 days in more. bzr revid: jke@openerp.com-20140207171637-j37cnt63cywstrtj --- addons/web_calendar/static/src/js/web_calendar.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/addons/web_calendar/static/src/js/web_calendar.js b/addons/web_calendar/static/src/js/web_calendar.js index b283f8b5cb1..ef84f8a2784 100644 --- a/addons/web_calendar/static/src/js/web_calendar.js +++ b/addons/web_calendar/static/src/js/web_calendar.js @@ -492,11 +492,7 @@ openerp.web_calendar = function(instance) { all_day = this.all_day ? evt[this.all_day] : false, res_computed_text = '', the_title = '', - attendees = []; - - if (this.date_stop && this.fields[this.date_stop].type == 'date') { - date_stop.addDay(1); - } + attendees = []; if (this.info_fields) { var temp_ret = {}; From 38b7c38e32575e736251e0a7c52a40dfee31ca9d Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Fri, 7 Feb 2014 18:21:57 +0100 Subject: [PATCH 03/12] [FIX] website: config settings does write the values on the website model This config contains only related fields of the website_id many2one. The problem is that applying the change CREATE a res config settings And the create orm method does not forward and write the values on the related fields. Write does. The best fix should be to change all these related fields to char fields, and to create the set_ method who will acutally set the value to the website_id. But, unfortunately, this is a stable branch And we cannot alter the database structure in stable branches. bzr revid: dle@openerp.com-20140207172157-6upyhuin93qlkrfa --- addons/website/models/res_config.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/addons/website/models/res_config.py b/addons/website/models/res_config.py index 9823d286f37..1ae491388a3 100644 --- a/addons/website/models/res_config.py +++ b/addons/website/models/res_config.py @@ -29,6 +29,14 @@ class website_config_settings(osv.osv_memory): values[fname] = v[0] if v and self._columns[fname]._type == 'many2one' else v return {'value' : values} + # FIXME in trunk for god sake. Change the fields above to fields.char instead of fields.related, + # and create the function set_website who will set the value on the website_id + # create does not forward the values to the related many2one. Write does. + def create(self, cr, uid, vals, context=None): + config_id = super(website_config_settings, self).create(cr, uid, vals, context=context) + self.write(cr, uid, config_id, vals, context=context) + return config_id + _defaults = { 'website_id': lambda self,cr,uid,c: self.pool.get('website').search(cr, uid, [], context=c)[0], } From 0b831e4df064d31eac32a3afd8b0786b2b24e29c Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Fri, 7 Feb 2014 19:48:29 +0100 Subject: [PATCH 04/12] [FIX] auth_oauth_signup: handle the case when there is no providers bzr revid: chs@openerp.com-20140207184829-qdy0jbx5pku1z072 --- addons/auth_oauth_signup/views/auth_oauth_signup.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/auth_oauth_signup/views/auth_oauth_signup.xml b/addons/auth_oauth_signup/views/auth_oauth_signup.xml index e6735ebd58a..139f36a4c0f 100644 --- a/addons/auth_oauth_signup/views/auth_oauth_signup.xml +++ b/addons/auth_oauth_signup/views/auth_oauth_signup.xml @@ -5,7 +5,7 @@