report_sxw: wrong pageCount and pageNumber when attachments are not kept
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Committed
|
Low
|
OpenERP's Framework R&D | ||
5.0 |
Invalid
|
Undecided
|
Unassigned |
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
Related branches
- OpenERP Core Team: Pending requested
- Anup(SerpentCS): Pending requested
- Xavier ALT: Pending requested
-
Diff: 100 lines (+34/-8)1 file modifiedbin/report/render/rml2pdf/trml2pdf.py (+34/-8)
- Naresh(OpenERP) (community): Needs Fixing
- Raphael Collet (OpenERP) (community): Needs Fixing
- Vo Minh Thu: Pending requested
-
Diff: 63 lines (+19/-14)2 files modifiedopenerp/report/render/rml2pdf/trml2pdf.py (+1/-1)
openerp/report/report_sxw.py (+18/-13)
Changed in openobject-server: | |
assignee: | nobody → gpa(Open ERP) (gpa-openerp) |
Changed in openobject-server: | |
status: | Incomplete → Confirmed |
Changed in openobject-server: | |
milestone: | none → 5.0.8 |
Changed in openobject-server: | |
status: | Confirmed → In Progress |
assignee: | nobody → Anup (Open ERP) (ach-openerp) |
Changed in openobject-server: | |
milestone: | 5.0.8 → 5.0.9 |
Changed in openobject-server: | |
milestone: | 5.0.9 → 5.0.10 |
Changed in openobject-server: | |
milestone: | 5.0.10 → 5.0.11 |
summary: |
- report_sxw: wrong pageCount and pageNumberReset when attachments are not - kept + report_sxw: wrong pageCount and pageNumber when attachments are not kept |
Changed in openobject-server: | |
status: | In Progress → Fix Committed |
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Low |
Hello Xavier ALT,
Can you explain me in more in detail ?
Because i cannot understand in following statement:
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).
Can you attach the report pdf ?
Thanks.