[ADD][13.0] new module report_layout_config

This commit is contained in:
Tonow-c2c
2020-08-18 17:35:30 +02:00
committed by Iryna Vyshnevska
parent 93a005f241
commit 661f59ba23
15 changed files with 792 additions and 0 deletions

View 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>