no translation in pricelist report

Bug #690034 reported by Nguyen Tien Hy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 2

Bug Description

The problem as follows:
+ The current language is vietnamese (vi_VN)
+ I have printed a Price list report with 'Public Pricelist' / 'Bảng giá công bố' (vietnamese of course)
+ In pdf report, the name of pricelist is 'Pricelist Public', not 'Bảng giá công bố'.
+ I have inserted [[setLang('vi_VN')]] into sxw. Nothing changed.

I am using OpenERP 5.0.12

Related branches

Revision history for this message
Dhruti Shastri(OpenERP) (dhs-openerp) wrote :

Hello Nguyen Tien Hy,

Make sure you have the setLang() function in Report's .rml file as well.

And if the error still persists, Would you please send us the dump db of yours.

Thanks

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Nguyen Tien Hy (ngtienhy) wrote : Re: [Bug 690034] Re: no translation in pricelist report

Hello DHS,

+ "Everything" in the pricelist report are translatable but "Pricelist name".
+ I don't see setLang() in product_pricelist.rml.

Thanks,

Hy,
  _____

From: DHS(OpenERP) [mailto:<email address hidden>]
To: <email address hidden>
Sent: Tue, 14 Dec 2010 16:54:01 +0700
Subject: [Bug 690034] Re: no translation in pricelist report

Hello Nguyen Tien Hy,

  Make sure you have the setLang() function in Report's .rml file as well.

  And if the error still persists, Would you please send us the dump db of
  yours.

  Thanks

  ** Changed in: openobject-addons
         Status: New => Incomplete

  --
  You received this bug notification because you are a direct subscriber
  of the bug.
  https://bugs.launchpad.net/bugs/690034

  Title:
    no translation in pricelist report

  Status in OpenObject Addons Modules:
    Incomplete

  Bug description:
    The problem as follows:
  + The current language is vietnamese (vi_VN)
  + I have printed a Price list report with 'Public Pricelist' / 'Bảng giá công bố' (vietnamese of course)
  + In pdf report, the name of pricelist is 'Pricelist Public', not 'Bảng giá công bố'.
  + I have inserted [[setLang('vi_VN')]] into sxw. Nothing changed.

  I am using OpenERP 5.0.12

  To unsubscribe from this bug, go to:
  https://bugs.launchpad.net/openobject-addons/+bug/690034/+subscribe

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Low
status: Incomplete → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Changed in openobject-addons:
status: In Progress → New
status: New → In Progress
Changed in openobject-addons:
status: In Progress → Confirmed
Revision history for this message
Nguyen Tien Hy (ngtienhy) wrote :

I have read product_pricelist.py so I understand why the pricelist name is not translatable.
Furthermore, I suggest the UOM/UOS that printed with every production printed line. If not, the unit price is not a 'unit' price.

Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

can you test if the problem is till there in trunk ?

Changed in openobject-addons:
status: Confirmed → Incomplete
status: Incomplete → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Rucha (Open ERP) (rpa-openerp) wrote :

Hello Nguyen Tien Hy,
It has been fixed in lp:~openerp-dev/openobject-addons/rpa-dev-addons2/
Revision-id: <email address hidden>
Revision-num: 4542
Thanks for reporting,

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Nguyen Tien Hy (ngtienhy) wrote :

Hi Fabien,

I cannot test now. But I am sure about the bug.

In /addons/product/report/product_pricelist.py, context is not defined in some functions.

In "def __init__(self, cr, uid, name, context):", there is context param. I saved "self.context = context" to use later.

Everything OK.

Best regards,
  _____

From: Fabien (Open ERP) [mailto:<email address hidden>]
To: <email address hidden>
Sent: Sun, 02 Jan 2011 19:30:44 +0700
Subject: [Bug 690034] Re: no translation in pricelist report

can you test if the problem is till there in trunk ?

  ** Changed in: openobject-addons
         Status: Confirmed => Incomplete

  ** Changed in: openobject-addons
         Status: Incomplete => Confirmed

  --
  You received this bug notification because you are a direct subscriber
  of the bug.
  https://bugs.launchpad.net/bugs/690034

  Title:
    no translation in pricelist report

  Status in OpenObject Addons Modules:
    Confirmed

  Bug description:
    The problem as follows:
  + The current language is vietnamese (vi_VN)
  + I have printed a Price list report with 'Public Pricelist' / 'Bảng giá công bố' (vietnamese of course)
  + In pdf report, the name of pricelist is 'Pricelist Public', not 'Bảng giá công bố'.
  + I have inserted [[setLang('vi_VN')]] into sxw. Nothing changed.

  I am using OpenERP 5.0.12

  To unsubscribe from this bug, go to:
  https://bugs.launchpad.net/openobject-addons/+bug/690034/+subscribe

Revision history for this message
Rucha (Open ERP) (rpa-openerp) wrote :

Hello Nguyen Tien Hy,
Thanks for the reply, its already fixed,
It will be available in trunk soon...

Changed in openobject-addons:
status: Fix Committed → Fix Released
Changed in openobject-addons:
milestone: none → 6.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.