From b5cba529d1ac1805f85fb40aec22558bf76cc8ad Mon Sep 17 00:00:00 2001 From: David Monjoie Date: Tue, 23 Dec 2014 09:19:23 +0100 Subject: [PATCH 1/3] [FIX] l10n_ro: changed module author as requested in issue 621105 --- addons/l10n_ro/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/l10n_ro/__openerp__.py b/addons/l10n_ro/__openerp__.py index e8bc9b869ad..ebc1085e1fe 100644 --- a/addons/l10n_ro/__openerp__.py +++ b/addons/l10n_ro/__openerp__.py @@ -21,7 +21,7 @@ { "name" : "Romania - Accounting", "version" : "1.0", - "author" : "TOTAL PC SYSTEMS", + "author" : "ERPsystems Solutions", "website": "http://www.erpsystems.ro", "category" : "Localization/Account Charts", "depends" : ['account','account_chart','base_vat'], From e607f03fd067aec0be5f5a0ce6ebeb25eb4e47d0 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Tue, 23 Dec 2014 13:31:28 +0100 Subject: [PATCH 2/3] [FIX] packaging: debian: references to README.md removed --- MANIFEST.in | 1 - debian/install | 1 - 2 files changed, 2 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index d40be07c00d..898ba87c5e1 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,4 @@ include LICENSE -include README.md recursive-include openerp *.css recursive-include openerp *.csv recursive-include openerp *.gif diff --git a/debian/install b/debian/install index 94d4cfee3e0..77e74bb236d 100644 --- a/debian/install +++ b/debian/install @@ -1,2 +1 @@ debian/openerp-server.conf /etc/openerp -README.md /usr/share/doc/openerp From 63723134948a55f6f91660673543e57405076675 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Wed, 24 Dec 2014 11:30:58 +0100 Subject: [PATCH 3/3] [FIX] web: datetime value parsing without time If the date format language was changed to invert month & day values (so, changed to the classic european format instead of the american format) Then, when entering manually a datetime without the time (so just '01/02/2014' instead of '01/02/2014 00:00:00', the day and month were inverted (the datetime was set to 02/01/2014 instead of 01/02/2014) because the datetime entered did not exactly match the date + time pattern. We therefore added a fallback case, to test to parse the value with the date pattern alone (without the time) --- addons/web/static/src/js/formats.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/js/formats.js b/addons/web/static/src/js/formats.js index aa40975e0ab..80719d708ab 100644 --- a/addons/web/static/src/js/formats.js +++ b/addons/web/static/src/js/formats.js @@ -266,9 +266,16 @@ instance.web.parse_value = function (value, descriptor, value_if_empty) { value, (date_pattern + ' ' + time_pattern)); if (datetime !== null) return instance.web.datetime_to_str(datetime); - datetime = Date.parseExact(value.toString().replace(/\d+/g, function(m){ + datetime = Date.parseExact(value, (date_pattern)); + if (datetime !== null) + return instance.web.datetime_to_str(datetime); + var leading_zero_value = value.toString().replace(/\d+/g, function(m){ return m.length === 1 ? "0" + m : m ; - }), (date_pattern + ' ' + time_pattern)); + }); + datetime = Date.parseExact(leading_zero_value, (date_pattern + ' ' + time_pattern)); + if (datetime !== null) + return instance.web.datetime_to_str(datetime); + datetime = Date.parseExact(leading_zero_value, (date_pattern)); if (datetime !== null) return instance.web.datetime_to_str(datetime); datetime = Date.parse(value);