Merge lp:~openerp-dev/openobject-addons/trunk-bug-689577-asr into lp:openobject-addons

Proposed by Ashutosh Srivastava(Open ERP)
Status: Merged
Approved by: tfr (Openerp)
Approved revision: no longer in the source branch.
Merged at revision: 4700
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-689577-asr
Merge into: lp:openobject-addons
Diff against target: 66 lines (+38/-0)
2 files modified
crm_claim/crm_claim.py (+8/-0)
crm_claim/crm_claim_view.xml (+30/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-689577-asr
Reviewer Review Type Date Requested Status
Bhumika Shrimali (community) Needs Fixing
Review via email: mp+61200@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Bhumika Shrimali (sbh-openerp) wrote :

Remove unused space and set proper format in xml .

review: Needs Fixing

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 2011-03-16 12:38:21 +0000
3+++ crm_claim/crm_claim.py 2011-05-17 08:55:35 +0000
4@@ -32,6 +32,7 @@
5 crm.AVAILABLE_STATES[4][0], # Pending
6 )
7
8+
9 class crm_claim(crm.crm_case, osv.osv):
10 """
11 Crm claim
12@@ -265,6 +266,13 @@
13
14 crm_claim()
15
16+class res_partner(osv.osv):
17+
18+ _inherit = 'res.partner'
19+ _columns = {
20+ 'claims_ids': fields.one2many('crm.claim', 'partner_id', 'Claims'),
21+ }
22+res_partner()
23
24 class crm_stage_claim(osv.osv):
25
26
27=== modified file 'crm_claim/crm_claim_view.xml'
28--- crm_claim/crm_claim_view.xml 2011-04-14 10:35:37 +0000
29+++ crm_claim/crm_claim_view.xml 2011-05-17 08:55:35 +0000
30@@ -306,6 +306,36 @@
31 </field>
32 </record>
33
34+ <record id="base.view_crm_partner_info_History1" model="ir.ui.view">
35+ <field name="name">res.partner.crm.history.inherit1</field>
36+ <field name="model">res.partner</field>
37+ <field name="type">form</field>
38+ <field name="inherit_id" ref="base.view_partner_form"/>
39+ <field name="arch" type="xml">
40+ <xpath expr="/form/notebook/page[@string='History']" position="attributes">
41+ <attribute name="invisible">False</attribute>
42+ </xpath>
43+ </field>
44+ </record>
45+ <record id="view_claim_partner_info_form1" model="ir.ui.view">
46+ <field name="name">res.partner.claim.info.form</field>
47+ <field name="model">res.partner</field>
48+ <field name="type">form</field>
49+ <field name="inherit_id" ref="base.view_partner_form"/>
50+ <field name="priority">20</field>
51+ <field name="arch" type="xml">
52+ <data>
53+ <xpath expr="/form/notebook/page[@string='History']" position="inside">
54+ <field name="claims_ids" colspan="4" nolabel="1">
55+ <tree string="Partners Claim" editable="bottom">
56+ <field name="name"/>
57+ </tree>
58+ </field>
59+ </xpath>
60+ </data>
61+ </field>
62+ </record>
63+
64 <act_window
65 context="{'search_default_partner_id': [active_id], 'default_partner_id': active_id}"
66 id="act_claim_partner"

Subscribers

People subscribed via source and target branches

to all changes: