Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Want to print invoice in landscape format

By
Maharshi
on 7/16/14, 5:42 PM 1,453 views

Hi,

I am using basic accounting module "account". In that under reports, I have account_print_invoice.rml and account_print_invoice.sxw. In .sxw, I have my content in page landscape format. I converted it to .rml using command line using openerpswxtorml. Now, I am trying to print this invoice report and its not formated properly. So, I checked my .sxw and did print preview and it looks good. I also tried to change in rml header and footer from settings-> companies->Header/Footer which changes in all my other reports. I just want invoice report in landscape and other in potrait.

Anyone have any idea how I can make only one report format in landscape. I appreciate your help.

 

Thanks. 

0

Bole

--Bole--
2385
| 5 4 6
Zagreb | Karlovac, Croatia
--Bole--

there is only 10 kind of people the ones that understand binary ... and others

Bole
On 7/17/14, 10:19 AM

Look in you rml file, on beginnig of file is a tag:
<template title="Invoices" author="OpenERP S.A.(sales@openerp.com)" allowSplitting="20">
    <pageTemplate id="first">
      <frame id="first" x1="34.0" y1="28.0" width="530" height="786"/>
    </pageTemplate>
  </template>

change values of width and heigth to print in landscape.. 
that will do for a start, after that... you will probably need to edit the rml fields also.. to fit new landscape format..

0

Ben Bernard

--Ben Bernard--
1083
| 4 3 6
Jakarta, Indonesia
--Ben Bernard--
Ben Bernard
On 7/17/14, 1:14 AM

Have you try using OpenERP Report Designer plugin for OpenOffice to update your report. OpenERP (6.1 which I tested) read rml from database, so it doesn't read your updated rml file.

Maybe this is relate question : https://www.odoo.com/forum/help-1/question/how-to-modify-a-report-with-a-module-56903

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 7/16/14, 5:42 PM
Seen: 1453 times
Last updated: 3/16/15, 8:10 AM