When I install the module it works fine. But when I click "upgrade", I am getting this error :
File "C:\Program Files (x86)\Odoo 8.0-20141221\server\.\openerp\modules\registry.py", line 101, in __getitem__
ParseError: "report.paperformat" while parsing file:///C:/Program Files (x86)/Odoo 8.0-20141221/server/openerp/addons/academy/pf.xml:4, near
=============================================================================
Here is my code:
<?xml version="1.0"?>
<openerp>
<data>
<record id="paperformat_euro_lowmargin_landscape" model="report.paperformat"> <!-- this is where the error comes from but I don't see a problem anywhere -->
<field name="name">European A4 low margin Landscape</field>
<field name="default" eval="True" />
<field name="format">A4</field>
<field name="page_height">0</field>
<field name="page_width">0</field>
<field name="orientation">Landscape</field>
<field name="margin_top">5</field>
<field name="margin_bottom">5</field>
<field name="margin_left">5</field>
<field name="margin_right">5</field>
<field name="header_line" eval="False" />
<field name="header_spacing">0</field>
<field name="dpi">80</field>
</record>
<record id="paperformat_euro_lowmargin" model="report.paperformat">
<field name="name">European A4 low margin</field>
<field name="default" eval="True" />
<field name="format">A4</field>
<field name="page_height">0</field>
<field name="page_width">0</field>
<field name="orientation">Portrait</field>
<field name="margin_top">5</field>
<field name="margin_bottom">5</field>
<field name="margin_left">5</field>
<field name="margin_right">5</field>
<field name="header_line" eval="False" />
<field name="header_spacing">0</field>
<field name="dpi">80</field>
</record>
<report
id="action_report_students"
model="intrac.students"
string="Students Report"
report_type="qweb-pdf"
name="academy.report_students"
file="academy.report_students"
/>
<record id="action_report_students" model="ir.actions.report.xml">
<field name="paperformat_id" ref="academy.paperformat_euro_lowmargin"/>
</record>
<report
id="action_batch_attendance"
model="intrac.batches"
string="Batch Attendance Report"
report_type="qweb-html"
name="academy.batch_attendance"
file="academy.batch_attendance"
/>
<record id="action_batch_attendance" model="ir.actions.report.xml">
<field name="paperformat_id" ref="academy.paperformat_euro_lowmargin_landscape"/>
</record>
</data>
</openerp>
You are right zbik. Thanks a billion. If I may ask, how did you get to know this information?
I do not understand what you're asking?