← Back to team overview

openerp-india team mailing list archive

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

 

Hello,

It has been fixed in to https://code.launchpad.net/~openerp-dev
/openobject-addons/trunk-bug-1112985-cga

Revision No:8531
Revision ID:cga@xxxxxxxxxxx-20130204093954-m8ut69vjfsadi7ny

It will be merged soon.

Thanks

** Branch linked: lp:~openerp-dev/openobject-addons/trunk-
bug-1112985-cga

** Changed in: openobject-addons
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1112985

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

Status in OpenERP Addons (modules):
  Fix Committed

Bug description:
  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 ;)

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1112985/+subscriptions