diff --git a/addons/account_report/i18n/bs.po b/addons/account_report/i18n/bs.po index 3fd898408ff..bd0c14775ad 100644 --- a/addons/account_report/i18n/bs.po +++ b/addons/account_report/i18n/bs.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.4\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2010-07-07 09:59+0000\n" +"PO-Revision-Date: 2010-07-09 06:46+0000\n" "Last-Translator: Bojan Markovic \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-07-08 03:50+0000\n" +"X-Launchpad-Export-Date: 2010-07-10 04:02+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account_report @@ -26,17 +26,17 @@ msgstr "" #. module: account_report #: wizard_field:print.indicators.pdf,init,file:0 msgid "Select a PDF File" -msgstr "" +msgstr "Odaberi PDF datoteku" #. module: account_report #: constraint:ir.actions.act_window:0 msgid "Invalid model name in the action definition." -msgstr "" +msgstr "Neispravan naziv modela u definiciji zadatka." #. module: account_report #: view:account.report.report:0 msgid "Operators:" -msgstr "" +msgstr "Operatori:" #. module: account_report #: field:account.report.report,parent_id:0 @@ -46,12 +46,12 @@ msgstr "Sintetika" #. module: account_report #: field:account.report.report,disp_graph:0 msgid "Display As Graph" -msgstr "" +msgstr "Prikaži kao grafikon" #. module: account_report #: view:account.report.report:0 msgid "Account Debit:" -msgstr "" +msgstr "Dugovanje konta:" #. module: account_report #: selection:account.report.report,type:0 @@ -66,12 +66,12 @@ msgstr "" #. module: account_report #: rml:print.indicators:0 msgid "Tabular Summary" -msgstr "" +msgstr "Tablični sažetak" #. module: account_report #: view:account.report.report:0 msgid "Notes" -msgstr "" +msgstr "Bilješke" #. module: account_report #: view:account.report.report:0 diff --git a/addons/base_action_rule/base_action_rule.py b/addons/base_action_rule/base_action_rule.py index be1a53046a7..79b883c0236 100644 --- a/addons/base_action_rule/base_action_rule.py +++ b/addons/base_action_rule/base_action_rule.py @@ -22,7 +22,8 @@ from datetime import datetime from osv import fields, osv, orm from tools.translate import _ -import mx.DateTime +from datetime import datetime +from datetime import timedelta import pooler import re import time @@ -105,7 +106,9 @@ the rule to mark CC(mail to any other person defined in actions)."), 'act_mail_to_email': fields.char('Mail to these Emails', size=128, \ help="Email-id of the persons whom mail is to be sent"), 'act_mail_body': fields.text('Mail body', help="Content of mail"), - 'regex_name': fields.char('Regular Expression on Model Name', size=128), + 'regex_name': fields.char('Regex on Resource Name', size=128, help="Regular expression for mathching name of the resource\ +\ne.g.: urgent.* will search for records having name starting with urgent\ +\nNote: This is case sensitive search."), 'server_action_id': fields.many2one('ir.actions.server', 'Server Action', help="Describes the action name.\neg:on which object which action to be taken on basis of which condition"), 'filter_id':fields.many2one('ir.filters', 'Filter', required=False), 'domain':fields.char('Domain', size=124, required=False, readonly=False), @@ -352,23 +355,23 @@ the rule to mark CC(mail to any other person defined in actions)."), base = False if hasattr(obj, 'create_date') and action.trg_date_type=='create': - base = mx.DateTime.strptime(obj.create_date[:19], '%Y-%m-%d %H:%M:%S') + base = datetime.strptime(obj.create_date[:19], '%Y-%m-%d %H:%M:%S') elif hasattr(obj, 'create_date') and action.trg_date_type=='action_last': if hasattr(obj, 'date_action_last') and obj.date_action_last: - base = mx.DateTime.strptime(obj.date_action_last, '%Y-%m-%d %H:%M:%S') + base = datetime.strptime(obj.date_action_last, '%Y-%m-%d %H:%M:%S') else: - base = mx.DateTime.strptime(obj.create_date[:19], '%Y-%m-%d %H:%M:%S') + base = datetime.strptime(obj.create_date[:19], '%Y-%m-%d %H:%M:%S') elif hasattr(obj, 'date_deadline') and action.trg_date_type=='deadline' \ and obj.date_deadline: - base = mx.DateTime.strptime(obj.date_deadline, '%Y-%m-%d %H:%M:%S') + base = datetime.strptime(obj.date_deadline, '%Y-%m-%d %H:%M:%S') elif hasattr(obj, 'date') and action.trg_date_type=='date' and obj.date: - base = mx.DateTime.strptime(obj.date, '%Y-%m-%d %H:%M:%S') + base = datetime.strptime(obj.date, '%Y-%m-%d %H:%M:%S') if base: fnct = { - 'minutes': lambda interval: mx.DateTime.RelativeDateTime(minutes=interval), - 'day': lambda interval: mx.DateTime.RelativeDateTime(days=interval), - 'hour': lambda interval: mx.DateTime.RelativeDateTime(hours=interval), - 'month': lambda interval: mx.DateTime.RelativeDateTime(months=interval), + 'minutes': lambda interval: timedelta(minutes=interval), + 'day': lambda interval: timedelta(days=interval), + 'hour': lambda interval: timedelta(hours=interval), + 'month': lambda interval: timedelta(months=interval), } d = base + fnct[action.trg_date_range_type](action.trg_date_range) dt = d.strftime('%Y-%m-%d %H:%M:%S') diff --git a/addons/base_action_rule/base_action_rule_view.xml b/addons/base_action_rule/base_action_rule_view.xml index c9164962439..36140e62649 100644 --- a/addons/base_action_rule/base_action_rule_view.xml +++ b/addons/base_action_rule/base_action_rule_view.xml @@ -24,7 +24,7 @@ - + diff --git a/addons/base_calendar/base_calendar.py b/addons/base_calendar/base_calendar.py index 9458e3e01a6..85ec16bda8d 100644 --- a/addons/base_calendar/base_calendar.py +++ b/addons/base_calendar/base_calendar.py @@ -379,6 +379,9 @@ property or property parameter."), _defaults = { 'state': 'needs-action', 'user_id': lambda self, cr, uid, ctx: uid, + 'role': 'req-participant', + 'rsvp': True, + 'cutype': 'individual', } def copy(self, cr, uid, id, default=None, context=None): @@ -543,13 +546,13 @@ property or property parameter."), context = {} for vals in self.browse(cr, uid, ids, context=context): - user = vals.user_id - if user: - mod_obj = self.pool.get(vals.ref._name) - if vals.ref: - if vals.ref.user_id.id != user.id: - defaults = {'user_id': user.id} - new_event = mod_obj.copy(cr, uid, vals.ref.id, default=defaults, context=context) + #user = vals.user_id + #if user: + # mod_obj = self.pool.get(vals.ref._name) + # if vals.ref: + # if vals.ref.user_id.id != user.id: + # defaults = {'user_id': user.id} + # new_event = mod_obj.copy(cr, uid, vals.ref.id, default=defaults, context=context) self.write(cr, uid, vals.id, {'state': 'accepted'}, context) return True @@ -1417,6 +1420,8 @@ true, it will allow you to hide the event alarm information without removing it. until_date = arg[2] res = super(calendar_event, self).search(cr, uid, args_without_date, \ offset, limit, order, context, count) + #Search Event ID which are invitted + return self.get_recurrent_ids(cr, uid, res, start_date, until_date, limit) diff --git a/addons/base_calendar/base_calendar_view.xml b/addons/base_calendar/base_calendar_view.xml index bb0412a2247..cb2ca806afa 100644 --- a/addons/base_calendar/base_calendar_view.xml +++ b/addons/base_calendar/base_calendar_view.xml @@ -76,13 +76,26 @@ tree - - - - + + + - - + +