Paramjit Singh Sahota(OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-notifications-infinity-psa into lp:~openerp-dev/openobject-addons/trunk-improve-little-big-details-bth.
Requested reviews: OpenERP R&D Team (openerp-dev) For more details, see: https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-notifications-infinity-psa/+merge/146049 Hello, Done the following, >Improved code for notifications >>In Sales > Customers when the Opportunities, Sales and Meetings exceed 99 >>than the '99+' symbol will be displayed. >>In Purchase > Suppliers when the Purchases exceed 99 than the '99+' symbol >>will be displayed. >Improved code for notifications >>In EMAILS > GROUPS > JOIN GROUP in that whenever the COMMENTS or FOLLOWERS >>exceed 99 than '99+' will be display. Thankz YoU. -PSA -- https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-notifications-infinity-psa/+merge/146049 Your team OpenERP R&D Team is requested to review the proposed merge of lp:~openerp-dev/openobject-addons/trunk-notifications-infinity-psa into lp:~openerp-dev/openobject-addons/trunk-improve-little-big-details-bth.
=== modified file 'crm/res_partner_view.xml' --- crm/res_partner_view.xml 2012-11-29 22:26:45 +0000 +++ crm/res_partner_view.xml 2013-02-01 06:42:38 +0000 @@ -79,10 +79,10 @@ </field> <xpath expr="//div[@class='oe_kanban_partner_links']" position="inside"> <a name="%(relate_partner_opportunities)d" type="action" t-if="record.opportunity_count.value>0"> - <t t-esc="record.opportunity_count.value"/> Opportunities + <t t-if="record.opportunity_count.value > 99"> 99+ </t> <t t-if="record.opportunity_count.value <= 99"> <t t-esc="record.opportunity_count.value"/> </t> Opportunities </a> <a name="%(crm_meeting_partner)d" type="action" t-if="record.meeting_count.value>0"> - <t t-esc="record.meeting_count.value"/> Meetings + <t t-if="record.opportunity_count.value > 99"> 99+ </t> <t t-if="record.opportunity_count.value <= 99"> <t t-esc="record.meeting_count.value"/> </t> Meetings </a> </xpath> </field> === modified file 'mail/mail_thread.py' --- mail/mail_thread.py 2013-01-10 13:42:40 +0000 +++ mail/mail_thread.py 2013-02-01 06:42:38 +0000 @@ -107,7 +107,15 @@ for thread in self.browse(cr, uid, ids, context=context): cls = res[thread.id]['message_unread'] and ' class="oe_kanban_mail_new"' or '' - res[thread.id]['message_summary'] = "<span%s><span class='oe_e'>9</span> %d</span> <span><span class='oe_e'>+</span> %d</span>" % (cls, len(thread.message_ids), len(thread.message_follower_ids)) + if (len(thread.message_ids) > 99): + message_comment = "<span%s><span class='oe_e'>9</span> %s</span>" % (cls, tools.ustr("99+")) + else: + message_comment = "<span%s><span class='oe_e'>9</span> %d</span>" % (cls, len(thread.message_ids)) + if (len(thread.message_follower_ids) > 99): + message_follower = " <span><span class='oe_e'>+</span> %s</span>" % (tools.ustr("99+")) + else: + message_follower = " <span><span class='oe_e'>+</span> %s</span>" % len(thread.message_follower_ids) + res[thread.id]['message_summary'] = message_comment + message_follower return res === modified file 'purchase/partner_view.xml' --- purchase/partner_view.xml 2012-11-29 22:26:45 +0000 +++ purchase/partner_view.xml 2013-02-01 06:42:38 +0000 @@ -42,7 +42,7 @@ </field> <xpath expr="//div[@class='oe_kanban_partner_links']" position="inside"> <a name="%(purchase.act_res_partner_2_purchase_order)d" type="action" t-if="record.purchase_order_count.value>0"> - <t t-esc="record.purchase_order_count.value"/> Purchases + <t t-if="record.purchase_order_count.value > 99"> 99+ </t> <t t-if="record.purchase_order_count.value <= 99"> <t t-esc="record.purchase_order_count.value"/> </t>Purchases </a> </xpath> </field> === modified file 'sale/res_partner_view.xml' --- sale/res_partner_view.xml 2012-12-20 11:43:56 +0000 +++ sale/res_partner_view.xml 2013-02-01 06:42:38 +0000 @@ -35,7 +35,7 @@ </field> <xpath expr="//div[@class='oe_kanban_partner_links']" position="inside"> <a name="%(sale.act_res_partner_2_sale_order)d" type="action" t-if="record.sale_order_count.value>0"> - <t t-esc="record.sale_order_count.value"/> Sales + <t t-if="record.sale_order_count.value > 99"> 99+ </t> <t t-if="record.sale_order_count.value <= 99"> <t t-esc="record.sale_order_count.value"/> </t>Sales </a> </xpath> </field>
_______________________________________________ Mailing list: https://launchpad.net/~openerp-dev-gtk Post to : openerp-dev-gtk@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-dev-gtk More help : https://help.launchpad.net/ListHelp