Skip to content
Snippets Groups Projects
Commit 8915f444 authored by Antony Lesuisse's avatar Antony Lesuisse
Browse files

[IMP] report, form view hide paperformat when not needed

bzr revid: al@openerp.com-20140307011359-nyj794c9pzkg64fh
parent 66988eef
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="reporting_settings_form_inherited" model="ir.ui.view">
<field name="name">view_company_form_inherited</field>
<field name="inherit_id" ref="base.view_company_form" />
<field name="model">res.company</field>
<field name="arch" type="xml">
<data>
<xpath expr="//group[@string='Footer Configuration']" position="after">
<group string="QWeb PDF Configuration">
<field name="paperformat_id" />
</group>
</xpath>
</data>
</field>
</record>
</data>
</openerp>
\ No newline at end of file
......@@ -78,8 +78,8 @@
<field name="model">ir.actions.report.xml</field>
<field name="arch" type="xml">
<data>
<xpath expr="//field[@name='multi']" position="after">
<field name="paperformat_id"/>
<xpath expr="//field[@name='attachment']" position="after">
<field name="paperformat_id" attrs="{'invisible':[('report_type','not in',['qweb-pdf'])]}"/>
<button
type="object"
class="oe_link"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment