mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[ADD][13.0] new module report_layout_config
This commit is contained in:
committed by
Iryna Vyshnevska
parent
93a005f241
commit
661f59ba23
53
report_layout_config/views/document_layout.xml
Normal file
53
report_layout_config/views/document_layout.xml
Normal file
@@ -0,0 +1,53 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user