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

Strip the paper format

By
Umashankar Subramani
on 1/27/15, 2:12 AM 485 views

Hi ,

    While i am tried to change the paper format i got this error please anyone clear this..... Thanks in advance

ParseError: "report.paperformat" while parsing /home/umashankar/Uma/Odoo8.0/openerp/addons/b_supplier_report/paperformat.xml:4, near
<record id="paperformat_payslip" model="report.paperformat">
            <field name="name">Payslip format</field>
            <field name="default" eval="True"/>
            <field name="format">A4</field>
            <field name="page_height">80</field>
            <field name="page_width">50</field>
            <field name="orientation">Portrait</field>
            <field name="margin_top">40</field>
            <field name="margin_bottom">23</field>
            <field name="margin_left">7</field>
            <field name="margin_right">7</field>
            <field name="header_line" eval="False"/>
            <field name="header_spacing">35</field>
            <field name="dpi">90</field>
        </record>

 

0

Ivan

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
On 1/27/15, 3:39 AM

Have you put report module in the depends in your b_supplier_report module's __openerp__.py?

Also I think if you put value in format field the page_height and page_width will be ignored.

Ivan
on 1/27/15, 3:40 AM

Thank u ivan i got it right...

Umashankar Subramani
on 1/27/15, 9:15 AM

Pleasure to help.

Ivan
on 1/28/15, 12:38 AM

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

1 follower(s)

Stats

Asked: 1/27/15, 2:12 AM
Seen: 485 times
Last updated: 3/16/15, 8:10 AM