=== modified file 'base_calendar/base_calendar.py' --- base_calendar/base_calendar.py 2013-06-27 10:48:33 +0000 +++ base_calendar/base_calendar.py 2013-07-29 05:24:38 +0000 @@ -127,96 +127,6 @@ res = obj.read(cr, uid, ids, ['object', 'name'], context=context) return [(r['object'], r['name']) for r in res] -html_invitation = """ - - - -%(name)s - - - - - - - - - - - - -
Hello,
You are invited for %(company)s Event.
Below are the details of event. Hours and dates expressed in %(timezone)s time.
- - - - - - - - -
-

%(name)s

-
- - - - - - - - - - - - - - - - - - - - - - - - -
-
Start Date
-
:%(start_date)s -
End Date
-
:%(end_date)s
Description:%(description)s
-
Location
-
:%(location)s
-
Event Attendees
-
: -
-
%(attendees)s
-
-
-
- - - - - - - - - - - - - -
From:
%(user)s
--------------------------
%(sign)s
- - -""" - class calendar_attendee(osv.osv): """ Calendar Attendee Information @@ -532,6 +442,95 @@ 'sign': sign, 'company': company } + html_invitation = """ + + +%(name)s + + + + + + + + + + + + +
""" + _('Hello,') + """
""" + _('You are invited for %(company)s Event.') + """
""" + _('Below are the details of event. Hours and dates expressed in %(timezone)s time.') + """
+ + + + + + + + +
+

%(name)s

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
+
""" + _('Start Date') + """
+
:%(start_date)s +
""" + _('End Date') + """
+
:%(end_date)s
""" + _('Description') + """:%(description)s
+
""" + _('Location') + """
+
:%(location)s
+
""" + _('Event Attendees') + """
+
: +
+
%(attendees)s
+
+
+
+ + + + + + + + + + + + + +
""" + _('From:') + """
%(user)s
--------------------------
%(sign)s
+ + +""" + body = html_invitation % body_vals if mail_to and email_from: ics_file = self.get_ics_file(cr, uid, res_obj, context=context) @@ -1133,15 +1132,16 @@ 'email': partner.email }, context=context) if partner.email: - mail_to = mail_to + " " + partner.email + mail_to = partner.email self.write(cr, uid, [event.id], { 'attendee_ids': [(4, att_id)] }, context=context) new_attendees.append(att_id) - if mail_to and current_user.email: - att_obj._send_mail(cr, uid, new_attendees, mail_to, - email_from = current_user.email, context=context) + if mail_to and current_user.email: + context.update({partner.lang and 'lang': partner.lang or 'en_US'}) + att_obj._send_mail(cr, uid, new_attendees, mail_to, + email_from = current_user.email, context=context) return True def default_organizer(self, cr, uid, context=None): === modified file 'base_calendar/i18n/base_calendar.pot' --- base_calendar/i18n/base_calendar.pot 2013-06-13 18:15:03 +0000 +++ base_calendar/i18n/base_calendar.pot 2013-07-29 05:24:38 +0000 @@ -89,6 +89,60 @@ msgstr "" #. module: base_calendar +#: code:addons/base_calendar/base_calendar.py:454 +#, python-format +msgid "Hello," +msgstr "" + +#. module: base_calendar +#: code:addons/base_calendar/base_calendar.py:457 +#, python-format +msgid "You are invited for %(company)s Event." +msgstr "" + +#. module: base_calendar +#: code:addons/base_calendar/base_calendar.py:460 +#, python-format +msgid "Below are the details of event. Hours and dates expressed in %(timezone)s time." +msgstr "" + +#. module: base_calendar +#: code:addons/base_calendar/base_calendar.py:478 +#, python-format +msgid "Start Date" +msgstr "" + +#. module: base_calendar +#: code:addons/base_calendar/base_calendar.py:483 +#, python-format +msgid "End Date" +msgstr "" + +#. module: base_calendar +#: code:addons/base_calendar/base_calendar.py:489 +#, python-format +msgid "Description" +msgstr "" + +#. module: base_calendar +#: code:addons/base_calendar/base_calendar.py:495 +#, python-format +msgid "Location" +msgstr "" + +#. module: base_calendar +#: code:addons/base_calendar/base_calendar.py:502 +#, python-format +msgid "Event Attendees" +msgstr "" + +#. module: base_calendar +#: code:addons/base_calendar/base_calendar.py:518 +#, python-format +msgid "From:" +msgstr "" + +#. module: base_calendar #: selection:calendar.event,byday:0 #: selection:calendar.todo,byday:0 #: selection:crm.meeting,byday:0