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
1=== modified file 'crm/crm_action_rule.py'
2--- crm/crm_action_rule.py 2012-08-28 07:41:39 +0000
3+++ crm/crm_action_rule.py 2012-11-07 12:23:22 +0000
4@@ -124,7 +124,7 @@
5 def state_get(self, cr, uid, context=None):
6 """Gets available states for crm"""
7 res = super(base_action_rule, self).state_get(cr, uid, context=context)
8- return res + crm.AVAILABLE_STATES
9+ return res + [(state[0], _(state[1])) for state in crm.AVAILABLE_STATES]
10
11 def priority_get(self, cr, uid, context=None):
12 res = super(base_action_rule, self).priority_get(cr, uid, context=context)
13
14=== modified file 'crm/i18n/crm.pot'
15--- crm/i18n/crm.pot 2012-02-08 01:08:30 +0000
16+++ crm/i18n/crm.pot 2012-11-07 12:23:22 +0000
17@@ -108,6 +108,36 @@
18 msgstr ""
19
20 #. module: crm
21+#: code:addons/crm/crm_action_rule.py:128
22+#, python-format
23+msgid "New"
24+msgstr ""
25+
26+#. module: crm
27+#: code:addons/crm/crm_action_rule.py:128
28+#, python-format
29+msgid "In Progress"
30+msgstr ""
31+
32+#. module: crm
33+#: code:addons/crm/crm_action_rule.py:128
34+#, python-format
35+msgid "Cancelled"
36+msgstr ""
37+
38+#. module: crm
39+#: code:addons/crm/crm_action_rule.py:128
40+#, python-format
41+msgid "Closed"
42+msgstr ""
43+
44+#. module: crm
45+#: code:addons/crm/crm_action_rule.py:128
46+#, python-format
47+msgid "Pending"
48+msgstr ""
49+
50+#. module: crm
51 #: code:addons/crm/wizard/crm_add_note.py:28
52 #, python-format
53 msgid "Can not add note!"