← Back to team overview

openerp-india team mailing list archive

[Bug 1112985] [NEW] [Trunk] Typo :1 Sales, 1 Purchases, 1 Meetings, 1 Opportunities on Customer KANBAN instead of 1 Sale, 1 Purchase, 1 Meeting, 1 Opportunity

 

You have been subscribed to a public bug:

The Kanban view will currently show Customers with the number of Sales
listed, but when there is only one sale, it shows:

1 Sales

instead of

1 Sale

1) Steps to reproduce the issue you have observed

Sales --> Sales --> Customers

2) The result you observed

1 Sales

3) The result you expected

1 Sale

4) The platform you are using

Ubuntu 12.04

5) The browser and browser version you are using

Firefox, Chrome and Internet Explorer

6) The OpenERP version you are using

7.0

I also tested today on http://7-0-2855.runbot.openerp.com and had the
same experience

7) Suggested fix

A way to fix this is to change the sale.crm_lead_partner_kanban_view
view.

Original XML:


<?xml version="1.0"?>
<data><field name="mobile" position="after">
                    <field name="sale_order_count"/>
                </field>
                <xpath expr="//div[@class='oe_kanban_partner_links']" position="inside">
                    <a name="503" type="action" t-if="record.sale_order_count.value&gt;0">
                        <t t-esc="record.sale_order_count.value"/> Sales
                    </a>
                </xpath>
            </data>

New XML:

<?xml version="1.0"?>
<data><field name="mobile" position="after">
                    <field name="sale_order_count"/>
                </field>
                <xpath expr="//div[@class='oe_kanban_partner_links']" position="inside">
                    <a name="503" type="action" t-if="record.sale_order_count.value&gt;1">
                        <t t-esc="record.sale_order_count.value"/> Sales
                    </a>
                    <a name="503" type="action" t-if="record.sale_order_count.value==1">
                        <t t-esc="record.sale_order_count.value"/> Sale
                    </a>
                </xpath>
            </data>


8) Additional Information

This issue also applies to:

Opportunities and Meetings, in crm.crm_lead_partner_kanban_view.
Purchases in purchase.purchase_partner_kanban_view.

This is applicable not just in English:

vente, ventes in French - don't they speak that in Belgium ;)

** Affects: openobject-addons
     Importance: Undecided
         Status: New


** Tags: grammar usability
-- 
[Trunk] Typo :1 Sales, 1 Purchases, 1 Meetings, 1 Opportunities on Customer KANBAN instead of 1 Sale, 1 Purchase, 1 Meeting, 1 Opportunity
https://bugs.launchpad.net/bugs/1112985
You received this bug notification because you are a member of OpenERP Indian Team, which is subscribed to OpenERP Addons.