mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
54 lines
2.3 KiB
XML
54 lines
2.3 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<odoo>
|
|
<record id="base_document_layout" model="ir.ui.view">
|
|
<field name="name">base.document.layout</field>
|
|
<field name="model">base.document.layout</field>
|
|
<field name="inherit_id" ref="base.view_base_document_layout" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='logo']" position="attributes">
|
|
<attribute
|
|
name='attrs'
|
|
>{'invisible': [('need_images_layout', '=', True)]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='report_footer']" position="attributes">
|
|
<attribute
|
|
name='attrs'
|
|
>{'invisible': [('need_images_layout', '=', True)]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='report_header']" position="attributes">
|
|
<attribute
|
|
name='attrs'
|
|
>{'invisible': [('need_images_layout', '=', True)]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='report_header']" position="attributes">
|
|
<attribute
|
|
name='attrs'
|
|
>{'invisible': [('need_images_layout', '=', True)]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='preview_logo']" position="attributes">
|
|
<attribute
|
|
name='attrs'
|
|
>{'invisible': [('need_images_layout', '=', True)]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='logo']" position="after">
|
|
<field name="need_images_layout" invisible="True" />
|
|
<field
|
|
name="full_header_img"
|
|
widget="image"
|
|
class="mb-4"
|
|
attrs="{'invisible': [('need_images_layout', '=', False)]}"
|
|
/>
|
|
<field
|
|
name="full_footer_img"
|
|
widget="image"
|
|
class="mb-4"
|
|
attrs="{'invisible': [('need_images_layout', '=', False)]}"
|
|
/>
|
|
</xpath>
|
|
<field name="preview" position="attributes">
|
|
<attribute name='style'>max-width: 450px;</attribute>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
</odoo>
|