Re,

On standard installation <pageCount/> in not present in the "external"
coporate header so bug not visible. If we add <pageCount/> inside it
will always be 0 whatever the real number of pages.

See patch attached for a "one line" fix :)

** Patch added: "use _pageCount instead of _pageNumber"
   
https://bugs.launchpad.net/openobject-server/+bug/516966/+attachment/1778748/+files/fix-report-pageCount.patch

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/516966

Title:
  report_sxw: wrong pageCount and pageNumber when attachments are not kept

Status in OpenObject Server:
  Confirmed
Status in OpenObject Server 5.0 series:
  Invalid

Bug description:
    affects openobject-server

Version Affected:
OpenERP Server 5.0 (stable) - lasted revision
for
Steps to reproduce the problem:
-. I will use the invoice report for example, but it is not specific to
this one.
0. Add <pageCount/> in corporate header
1. Add <pageNumberReset/> just before the </story> tag in invoice.rml
report.
2. Find a record with lot of invoice line (invoice must be draft,
otherwise report_sxw with force report per record and for all group)
3. Now select 5 invoices (but 1st invoice should be the record choosen
at step "2", other invoices must be draft too)
2. Use "Print" button, and choose report "Invoices"

In the the document you will get, the page count will be identical on
all pages, which in not right. It should specific to the document printed.

See patch attached, perhaps it will be better explaining :)

PS: this only affects reports where PDFs are NOT kept as attachments in objects.

--
Xavier ALT
AJM Technologies S.A.
22, rue Goethe / L-1637 Luxembourg





_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to