Merge lp:~openerp-dev/openobject-addons/6.1-opw-579715-nep into lp:openobject-addons/6.1

Proposed by Nehal Panchal (OpenERP)
Status: Approved
Approved by: Naresh(OpenERP)
Approved revision: 7059
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-579715-nep
Merge into: lp:openobject-addons/6.1
Diff against target: 53 lines (+31/-1)
2 files modified
crm/crm_action_rule.py (+1/-1)
crm/i18n/crm.pot (+30/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-579715-nep
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Pending
Review via email: mp+133229@code.launchpad.net

Description of the change

Hello,

In automated action ,state field is not translated in user's language if crm module is installed.

This fixes the issue.

Thanks

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

This bug was qualified as Confirmed on Trunk (means still existing and reproducible). A Merge Proposal for trunk was created to fix it. Here is the link to follow the MP on Launchpad https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-579715-port-mma/+merge/136580 and be informed once it's been merged in trunk: ... If this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.

Thanks,
Naresh Soni

Unmerged revisions

7059. By Nehal Panchal (OpenERP)

[FIX] crm : State in automated actions are not translated in user's language

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'crm/crm_action_rule.py'
--- crm/crm_action_rule.py 2012-08-28 07:41:39 +0000
+++ crm/crm_action_rule.py 2012-11-07 12:23:22 +0000
@@ -124,7 +124,7 @@
124 def state_get(self, cr, uid, context=None):124 def state_get(self, cr, uid, context=None):
125 """Gets available states for crm"""125 """Gets available states for crm"""
126 res = super(base_action_rule, self).state_get(cr, uid, context=context)126 res = super(base_action_rule, self).state_get(cr, uid, context=context)
127 return res + crm.AVAILABLE_STATES127 return res + [(state[0], _(state[1])) for state in crm.AVAILABLE_STATES]
128128
129 def priority_get(self, cr, uid, context=None):129 def priority_get(self, cr, uid, context=None):
130 res = super(base_action_rule, self).priority_get(cr, uid, context=context)130 res = super(base_action_rule, self).priority_get(cr, uid, context=context)
131131
=== modified file 'crm/i18n/crm.pot'
--- crm/i18n/crm.pot 2012-02-08 01:08:30 +0000
+++ crm/i18n/crm.pot 2012-11-07 12:23:22 +0000
@@ -108,6 +108,36 @@
108msgstr ""108msgstr ""
109109
110#. module: crm110#. module: crm
111#: code:addons/crm/crm_action_rule.py:128
112#, python-format
113msgid "New"
114msgstr ""
115
116#. module: crm
117#: code:addons/crm/crm_action_rule.py:128
118#, python-format
119msgid "In Progress"
120msgstr ""
121
122#. module: crm
123#: code:addons/crm/crm_action_rule.py:128
124#, python-format
125msgid "Cancelled"
126msgstr ""
127
128#. module: crm
129#: code:addons/crm/crm_action_rule.py:128
130#, python-format
131msgid "Closed"
132msgstr ""
133
134#. module: crm
135#: code:addons/crm/crm_action_rule.py:128
136#, python-format
137msgid "Pending"
138msgstr ""
139
140#. module: crm
111#: code:addons/crm/wizard/crm_add_note.py:28141#: code:addons/crm/wizard/crm_add_note.py:28
112#, python-format142#, python-format
113msgid "Can not add note!"143msgid "Can not add note!"