Table header is not translated on subsequent pages of Purchase Order and Request For Quotation report

Bug #1020052 reported by Simon
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Undecided
OpenERP Publisher's Warranty Team

Bug Description

When a Request For Quotation or Purchase Order report spans more than one page, the table headers are not translated on the 2nd page.

Steps to reproduce:

Using trunk and a clean database, install purchase module, and load a translation (eg Dutch).

* Create a customer test and set his language to the loaded translation (Dutch).
* Create a purchase order for customer test
* Create enough purchase order lines so the report will span more than one page
* Print the Request for Quotation report.

On this report, the table headers on the second page will be in english although those on the first page are in Dutch.
Attached is such a Request for Quotation made on http://trunk_12679.runbot.openerp.com/

Possible solution:

Move the following lines in Request for Quotation and Purchase Order reports:

    <para style="terp_default_8">[[repeatIn(objects,'o')]]</para>
    <para style="terp_default_8">[[ setLang(o.partner_id.lang) ]]</para>

above the

    <pto_header>

tag.

Tags: maintenance

Related branches

Revision history for this message
Simon (simon-synkronized) wrote :
Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Changed in openobject-addons:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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