diff --git a/addons/base_address_city/models/res_partner.py b/addons/base_address_city/models/res_partner.py index f6fcbf61d42..abf94f02165 100644 --- a/addons/base_address_city/models/res_partner.py +++ b/addons/base_address_city/models/res_partner.py @@ -20,10 +20,10 @@ class Partner(models.Model): @api.model def _fields_view_get_address(self, arch): arch = super(Partner, self)._fields_view_get_address(arch) - if not self._context.get('no_address_format'): - return arch # render the partner address accordingly to address_view_id doc = etree.fromstring(arch) + if doc.xpath("//field[@name='city_id']"): + return arch for city_node in doc.xpath("//field[@name='city']"): replacement_xml = """
diff --git a/addons/base_automation/models/base_automation.py b/addons/base_automation/models/base_automation.py index 68698fe6ef7..2ec39294348 100644 --- a/addons/base_automation/models/base_automation.py +++ b/addons/base_automation/models/base_automation.py @@ -307,7 +307,7 @@ class BaseAutomation(models.Model): if action.trg_date_calendar_id and action.trg_date_range_type == 'day': return action.trg_date_calendar_id.plan_days( action.trg_date_range, - day_date=fields.Datetime.from_string(record_dt), + fields.Datetime.from_string(record_dt), compute_leaves=True, ) else: diff --git a/addons/calendar/models/calendar.py b/addons/calendar/models/calendar.py index 69415976574..643d3adc3df 100644 --- a/addons/calendar/models/calendar.py +++ b/addons/calendar/models/calendar.py @@ -1471,7 +1471,7 @@ class Meeting(models.Model): if not fields: fields = list(self._fields) fields2 = fields and fields[:] - EXTRAFIELDS = ('privacy', 'user_id', 'duration', 'allday', 'start', 'start_date', 'start_datetime', 'rrule') + EXTRAFIELDS = ('privacy', 'user_id', 'duration', 'allday', 'start', 'rrule') for f in EXTRAFIELDS: if fields and (f not in fields): fields2.append(f) diff --git a/addons/calendar/tests/test_calendar.py b/addons/calendar/tests/test_calendar.py index e34aaec376c..464e4a8501d 100644 --- a/addons/calendar/tests/test_calendar.py +++ b/addons/calendar/tests/test_calendar.py @@ -23,6 +23,20 @@ class TestCalendar(TransactionCase): 'name': 'Technical Presentation' }) + def test_calender_simple_event(self): + m = self.CalendarEvent.create({ + 'name': "Test compute", + 'start': '2017-07-12 14:30:00', + 'allday': False, + 'stop': '2017-07-12 15:00:00', + }) + + self.assertEqual( + (m.start_datetime, m.stop_datetime), + (u'2017-07-12 14:30:00', u'2017-07-12 15:00:00'), + "Sanity check" + ) + def test_calender_event(self): # Now I will set recurrence for this event to occur monday and friday of week data = { diff --git a/addons/l10n_nl/data/account_account_tag.xml b/addons/l10n_nl/data/account_account_tag.xml index 56682e177cd..db9cc9ca93f 100644 --- a/addons/l10n_nl/data/account_account_tag.xml +++ b/addons/l10n_nl/data/account_account_tag.xml @@ -32,7 +32,7 @@ accounts - Algemen kosten + Algemene kosten accounts diff --git a/addons/project/views/project_views.xml b/addons/project/views/project_views.xml index e268684f38c..432d4f1ecca 100644 --- a/addons/project/views/project_views.xml +++ b/addons/project/views/project_views.xml @@ -117,7 +117,7 @@
- + @@ -133,7 +133,7 @@ - +