Merge lp:~openerp-dev/openobject-addons/trunk-crm_claim_issue-ypa into lp:openobject-addons

Proposed by Yogesh Parekh(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-crm_claim_issue-ypa
Merge into: lp:openobject-addons
Diff against target: 60 lines (+12/-5)
4 files modified
crm_claim/crm_claim.py (+9/-1)
crm_claim/crm_claim_view.xml (+1/-2)
crm_claim/report/crm_claim_report.py (+1/-1)
portal_claim/security/portal_security.xml (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-crm_claim_issue-ypa
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+216032@code.launchpad.net

Description of the change

Hello,

   I have fixed the issues of crm_claim module.

Thanks,
ypa.

To post a comment you must log in.
9300. By Yogesh Parekh(OpenERP)

[IMP]:Improved the code of copy method and added 'copy' on subject/name

9301. By Yogesh Parekh(OpenERP)

[MERGE]: Merge with addons

9302. By Yogesh Parekh(OpenERP)

[MERGE] Merge with addons

Unmerged revisions

9302. By Yogesh Parekh(OpenERP)

[MERGE] Merge with addons

9301. By Yogesh Parekh(OpenERP)

[MERGE]: Merge with addons

9300. By Yogesh Parekh(OpenERP)

[IMP]:Improved the code of copy method and added 'copy' on subject/name

9299. By Yogesh Parekh(OpenERP)

[IMP]: Revert the changes

9298. By Yogesh Parekh(OpenERP)

[MERGE]: Merge with addons

9297. By Yogesh Parekh(OpenERP)

[MERGE]: Merge with addons

9296. By Yogesh Parekh(OpenERP)

[MERGE]: Merge with addons

9295. By Yogesh Parekh(OpenERP)

[MERGE]: Merge with addons

9294. By Yogesh Parekh(OpenERP)

[IMP]: Remove domain from catgory_id field which is not working

9293. By Yogesh Parekh(OpenERP)

[MERGE]: Merge with addons

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'crm_claim/crm_claim.py'
2--- crm_claim/crm_claim.py 2014-05-08 12:35:29 +0000
3+++ crm_claim/crm_claim.py 2014-05-16 11:30:40 +0000
4@@ -163,7 +163,15 @@
5
6 # context: no_log, because subtype already handle this
7 return super(crm_claim, self).create(cr, uid, vals, context=context)
8-
9+
10+ def copy(self, cr, uid, id, default=None, context=None):
11+ default = default or {}
12+ default.update({
13+ 'stage_id': self._get_default_stage_id(cr, uid, context=context),
14+ 'name': _('%s (copy)') % (self.browse(cr, uid, id, context=context).name)
15+ })
16+ return super(crm_claim, self).copy(cr, uid, id, default, context=context)
17+
18 # -------------------------------------------------------
19 # Mail gateway
20 # -------------------------------------------------------
21
22=== modified file 'crm_claim/crm_claim_view.xml'
23--- crm_claim/crm_claim_view.xml 2014-02-21 12:21:21 +0000
24+++ crm_claim/crm_claim_view.xml 2014-05-16 11:30:40 +0000
25@@ -124,8 +124,7 @@
26 <group colspan="2" col="2" groups="base.group_user">
27 <separator colspan="2" string="Responsibilities"/>
28 <field name="user_fault"/>
29- <field name="categ_id" widget="selection"
30- domain="[('object_id.model', '=', 'crm.claim')]"/>
31+ <field name="categ_id" widget="selection" domain="[('object_id.model', '=', 'crm.claim')]"/>
32 <field name="ref"/>
33 </group>
34 <separator colspan="4" string="Claim/Action Description" groups="base.group_user"/>
35
36=== modified file 'crm_claim/report/crm_claim_report.py'
37--- crm_claim/report/crm_claim_report.py 2014-02-14 11:49:37 +0000
38+++ crm_claim/report/crm_claim_report.py 2014-05-16 11:30:40 +0000
39@@ -51,7 +51,7 @@
40 'create_date': fields.datetime('Create Date', readonly=True, select=True),
41 'day': fields.char('Day', size=128, readonly=True),
42 'delay_close': fields.float('Delay to close', digits=(16,2),readonly=True, group_operator="avg",help="Number of Days to close the case"),
43- 'stage_id': fields.many2one ('crm.case.stage', 'Stage', readonly=True,domain="[('section_ids','=',section_id)]"),
44+ 'stage_id': fields.many2one ('crm.claim.stage', 'Stage', readonly=True,domain="[('section_ids','=',section_id)]"),
45 'categ_id': fields.many2one('crm.case.categ', 'Category',\
46 domain="[('section_id','=',section_id),\
47 ('object_id.model', '=', 'crm.claim')]", readonly=True),
48
49=== modified file 'portal_claim/security/portal_security.xml'
50--- portal_claim/security/portal_security.xml 2013-12-03 10:50:12 +0000
51+++ portal_claim/security/portal_security.xml 2014-05-16 11:30:40 +0000
52@@ -4,7 +4,7 @@
53 <record id="portal_claim_rule" model="ir.rule">
54 <field name="name">Portal Personal Claims</field>
55 <field ref="crm_claim.model_crm_claim" name="model_id"/>
56- <field name="domain_force">['|', ('message_follower_ids','in', [user.partner_id.id]), ('partner_id','=', user.partner_id.id)]</field>
57+ <field name="domain_force">['|', ('message_follower_ids','=', user.partner_id.id), '|', ('partner_id','=', user.partner_id.id), ('user_id', '=', user.id)]</field>
58 <field name="groups" eval="[(4, ref('base.group_portal'))]"/>
59 <field eval="0" name="perm_unlink"/>
60 <field eval="0" name="perm_write"/>

Subscribers

People subscribed via source and target branches

to all changes: