Odoo Help

0

Strip the paper format

By
Umashankar Subramani
on 1/27/15, 2:12 AM 667 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
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

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

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