Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
9246 Widoki

Can anybody give me suggestion for this error, I have used paperformat in Qweb report and i dont know why i got this error please give some guidelines....

<record id="paperformat_custom" model="report.paperformat">
            <field name="name">Custom format</field>
            <field name="default" eval="True" />
            <field name="format">custom</field>
            <field name="page_height">90</field>
            <field name="page_width">180</field>
            <field name="orientation">Portrait</field>
            <field name="margin_top">30</field>
            <field name="margin_bottom">30</field>
            <field name="margin_left">10</field>
            <field name="margin_right">10</field>
            <field name="header_line" eval="False" />
            <field name="header_spacing">20</field>
            <field name="dpi">100</field>
        </record>

ParseError: "report.paperformat" while parsing /home/umashankar/Uma/Odoo8.0/openerp/addons/b_supplier_report/paperformat.xml:4, near

 

Awatar
Odrzuć

The format "custom" does not exist in your system. You should use an existing paper format or create a new one through XML.

Najlepsza odpowiedź

You add in your module, in __openerp__.py

  'depends': ['report'],

Awatar
Odrzuć
Najlepsza odpowiedź

Hello Umashankar,

use this link may be help you https://www.odoo.com/forum/help-1/question/creating-custome-report-with-libreoffice-or-aeroo-69617

if you find this answer helpful, please give me a thumbs up vote

Regards,

Ankit H Gandhi

Awatar
Odrzuć

poooooooooooooooooi

Autor

Thanks ankit