Invoice Printing

Asked by Jennifer

Hi there!

I want to change the invoice orientation from "PORTRAIT" to "LANDSCAPE".
Kindly advise if there any syntax that I can add in the .rml file or any other way would be much appreciated.

Many Thanks
Jeni

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
filsys
Solved:
Last query:
Last reply:
Revision history for this message
Ferdinand (office-chricar) said :
#1

this seems only possible after rewriting the reports using webkit
http://www.camptocamp.com/fr/blog/2010/06/webkit-report-system-revolution-for-openerp/

Revision history for this message
Quentin THEURET @Amaris (qtheuret) said :
#2

You can try to modify your report with Aeroo module which is a module
for OpenOffice.org to modify reports : https://launchpad.net/aeroo

Quentin

Le 06/02/2011 09:06, Ferdinand @ Camptocamp a écrit :
> Question #144301 on OpenERP Addons changed:
> https://answers.launchpad.net/openobject-addons/+question/144301
>
> Status: Open => Answered
>
> Ferdinand @ Camptocamp proposed the following answer:
> this seems only possible after rewriting the reports using webkit
> http://www.camptocamp.com/fr/blog/2010/06/webkit-report-system-revolution-for-openerp/
>

Revision history for this message
Best filsys (office-filsystem) said :
#3

First of al you must to remove RML header from from report action invoice. (Administration-> Customization->Low level objects->Actions->Reposts).
Then find in account_print_invoice.rml this ocurence:
<document filename="test.pdf">
  <template pageSize="(210mm,305mm)" title="Test" author="Martin Simon" allowSplitting="20">
and change pageSize what you want: pageSize="(297mm,210mm)" is A$ landscape.

Revision history for this message
Ferdinand (office-chricar) said :
#4

and then you must adapt all table column definitions to use the new paper width ...

Revision history for this message
Jennifer (dazzlingirl-n) said :
#5

Thanks filsys, that solved my question.

Revision history for this message
Jennifer (dazzlingirl-n) said :
#6

Hi

If I modify the report directly from source, what will happen when there will be new version?

Revision history for this message
filsys (office-filsystem) said :
#7

when you upgrade addons your changes will be lost.