[IMP] Improved warning messages for marketing campaign module
bzr revid: pso@tinyerp.com-20120722080539-i9uqjddn205ztvor
This commit is contained in:
parent
2bfb826825
commit
e85181b2ec
|
@ -638,7 +638,7 @@ msgstr ""
|
|||
#. module: marketing_campaign
|
||||
#: code:addons/marketing_campaign/marketing_campaign.py:148
|
||||
#, python-format
|
||||
msgid "The campaign cannot be started: it doesn't have any starting activity. Modify campaign's activities to mark one as the starting point."
|
||||
msgid "The campaign cannot be started. It does not have any starting activity. Modify campaign's activities to mark one as the starting point."
|
||||
msgstr ""
|
||||
|
||||
#. module: marketing_campaign
|
||||
|
@ -797,7 +797,7 @@ msgstr ""
|
|||
#. module: marketing_campaign
|
||||
#: code:addons/marketing_campaign/marketing_campaign.py:136
|
||||
#, python-format
|
||||
msgid "The campaign cannot be started: there are no activitie's in it."
|
||||
msgid "The campaign cannot be started. There are no activities in it."
|
||||
msgstr ""
|
||||
|
||||
#. module: marketing_campaign
|
||||
|
|
|
@ -133,7 +133,7 @@ Normal - the campaign runs normally and automatically sends all emails and repor
|
|||
campaign = self.browse(cr, uid, ids[0])
|
||||
|
||||
if not campaign.activity_ids:
|
||||
raise osv.except_osv(_("Error"), _("The campaign cannot be started: there are no activitie's in it."))
|
||||
raise osv.except_osv(_("Error"), _("The campaign cannot be started. There are no activities in it."))
|
||||
|
||||
has_start = False
|
||||
has_signal_without_from = False
|
||||
|
@ -145,7 +145,7 @@ Normal - the campaign runs normally and automatically sends all emails and repor
|
|||
has_signal_without_from = True
|
||||
|
||||
if not has_start and not has_signal_without_from:
|
||||
raise osv.except_osv(_("Error"), _("The campaign cannot be started: it doesn't have any starting activity. Modify campaign's activities to mark one as the starting point."))
|
||||
raise osv.except_osv(_("Error"), _("The campaign cannot be started. It does not have any starting activity. Modify campaign's activities to mark one as the starting point."))
|
||||
|
||||
return self.write(cr, uid, ids, {'state': 'running'})
|
||||
|
||||
|
@ -505,7 +505,7 @@ class marketing_campaign_activity(osv.osv):
|
|||
method = '_process_wi_%s' % (activity.type,)
|
||||
action = getattr(self, method, None)
|
||||
if not action:
|
||||
raise NotImplementedError('Method %r in not implemented on %r object' % (method, self))
|
||||
raise NotImplementedError('Method %r is not implemented on %r object.' % (method, self))
|
||||
|
||||
workitem_obj = self.pool.get('marketing.campaign.workitem')
|
||||
workitem = workitem_obj.browse(cr, uid, wi_id, context=context)
|
||||
|
|
Loading…
Reference in New Issue