Merge lp:~openerp-dev/openobject-addons/trunk-bug-1112985-cga into lp:openobject-addons

Proposed by Chandni Gandhi(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1112985-cga
Merge into: lp:openobject-addons
Diff against target: 60 lines (+16/-4)
3 files modified
crm/res_partner_view.xml (+8/-2)
purchase/partner_view.xml (+4/-1)
sale/res_partner_view.xml (+4/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1112985-cga
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+146371@code.launchpad.net

Description of the change

Hello,

Add the condition in view.

Thanks

To post a comment you must log in.

Unmerged revisions

8531. By Chandni Gandhi(OpenERP)

[FIX]:Add the condition in view

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'crm/res_partner_view.xml'
2--- crm/res_partner_view.xml 2012-11-29 22:26:45 +0000
3+++ crm/res_partner_view.xml 2013-02-04 09:55:40 +0000
4@@ -78,12 +78,18 @@
5 <field name="meeting_count"/>
6 </field>
7 <xpath expr="//div[@class='oe_kanban_partner_links']" position="inside">
8- <a name="%(relate_partner_opportunities)d" type="action" t-if="record.opportunity_count.value>0">
9+ <a name="%(relate_partner_opportunities)d" type="action" t-if="record.opportunity_count.value&gt;1">
10 <t t-esc="record.opportunity_count.value"/> Opportunities
11 </a>
12- <a name="%(crm_meeting_partner)d" type="action" t-if="record.meeting_count.value>0">
13+ <a name="%(relate_partner_opportunities)d" type="action" t-if="record.opportunity_count.value==1">
14+ <t t-esc="record.opportunity_count.value"/> Opportunity
15+ </a>
16+ <a name="%(crm_meeting_partner)d" type="action" t-if="record.meeting_count.value&gt;1">
17 <t t-esc="record.meeting_count.value"/> Meetings
18 </a>
19+ <a name="%(crm_meeting_partner)d" type="action" t-if="record.meeting_count.value==1">
20+ <t t-esc="record.meeting_count.value"/> Meeting
21+ </a>
22 </xpath>
23 </field>
24 </record>
25
26=== modified file 'purchase/partner_view.xml'
27--- purchase/partner_view.xml 2012-11-29 22:26:45 +0000
28+++ purchase/partner_view.xml 2013-02-04 09:55:40 +0000
29@@ -41,9 +41,12 @@
30 <field name="purchase_order_count"/>
31 </field>
32 <xpath expr="//div[@class='oe_kanban_partner_links']" position="inside">
33- <a name="%(purchase.act_res_partner_2_purchase_order)d" type="action" t-if="record.purchase_order_count.value>0">
34+ <a name="%(purchase.act_res_partner_2_purchase_order)d" type="action" t-if="record.purchase_order_count.value&gt;1">
35 <t t-esc="record.purchase_order_count.value"/> Purchases
36 </a>
37+ <a name="%(purchase.act_res_partner_2_purchase_order)d" type="action" t-if="record.purchase_order_count.value==1">
38+ <t t-esc="record.purchase_order_count.value"/> Purchase
39+ </a>
40 </xpath>
41 </field>
42 </record>
43
44=== modified file 'sale/res_partner_view.xml'
45--- sale/res_partner_view.xml 2012-12-20 11:43:56 +0000
46+++ sale/res_partner_view.xml 2013-02-04 09:55:40 +0000
47@@ -34,9 +34,12 @@
48 <field name="sale_order_count"/>
49 </field>
50 <xpath expr="//div[@class='oe_kanban_partner_links']" position="inside">
51- <a name="%(sale.act_res_partner_2_sale_order)d" type="action" t-if="record.sale_order_count.value>0">
52+ <a name="%(sale.act_res_partner_2_sale_order)d" type="action" t-if="record.sale_order_count.value&gt;1">
53 <t t-esc="record.sale_order_count.value"/> Sales
54 </a>
55+ <a name="%(sale.act_res_partner_2_sale_order)d" type="action" t-if="record.sale_order_count.value==1">
56+ <t t-esc="record.sale_order_count.value"/> Sale
57+ </a>
58 </xpath>
59 </field>
60 </record>

Subscribers

People subscribed via source and target branches

to all changes: