Web

Address Layout

Format Address Block

ID: mint_system.web.address_layout.format_address_block

<?xml version="1.0"?>
<data inherit_id="web.address_layout" priority="50">

  <xpath expr="//t[@t-if='address']" position="replace">
    <t t-if="address">
      <div class="address row">
        <t t-if="information_block">
          <t t-set="colclass" t-value="'col-5 offset-1'"/>
          <div name="information_block" class="col-5 offset-1">
            <t t-raw="information_block"/>
          </div>
        </t>
      </div>
      <div class="row">
        <div name="address" t-att-class="'col-5 offset-1'">
          <t t-raw="address"/>
        </div>
      </div>
    </t>

  </xpath>

</data>

Source: snippets/web.address_layout.format_address_block.xmlopen in new window

Repositioning Address Blocks

ID: mint_system.web.address_layout.repositioning_address_blocks

<?xml version="1.0"?>
<data inherit_id="web.address_layout" priority="50">

    <xpath expr="//t[@t-if='address']" position="replace">

        <t t-if="address">
            <div class="address row">
                <t t-if="address">
                    <t t-set="colclass" t-value="'col-5 offset-1'" />
                    <div name="address" class="col-6">
                        <t t-raw="address" />
                    </div>
                </t>
                <div name="information_block" t-att-class="colclass">
                    <t t-raw="information_block" />
                </div>
            </div>
        </t>

    </xpath>

</data>

Source: snippets/web.address_layout.repositioning_address_blocks.xmlopen in new window

Assets Common

Pivot Measure White Space

ID: mint_system.web.assets_common.pivot_measure_white_space

<?xml version="1.0"?>
<data inherit_id="web.assets_common" priority="50">

    <xpath expr="." position="inside">        
        <style>
            .o_pivot table thead th:not(.o_pivot_header_cell_closed):not(.o_pivot_header_cell_opened):not(.o_pivot_header_cell) {
              white-space: pre-wrap;
            }
        </style>
    </xpath>

</data>

Source: snippets/web.assets_common.pivot_measure_white_space.xmlopen in new window

Brand Promotion Message

Remove

ID: mint_system.web.brand_promotion_message.remove

<?xml version="1.0"?>
<data inherit_id="web.brand_promotion_message" priority="50">

  <xpath expr="//t[@name='Brand Promotion Message']" position="replace">
  	<t name="Brand Promotion Message" t-name="web.brand_promotion_message"></t>
  </xpath>

</data>

Source: snippets/web.brand_promotion_message.remove.xmlopen in new window

External Layout Boxed

ID: mint_system.web.external_layout_boxed.footer_company_registry

<?xml version="1.0"?>
<data inherit_id="web.external_layout_boxed" priority="50">

  <xpath expr="//li[@t-if='company.vat']" position="after">
    <t t-if="company._name != 'base.document.layout'">
      <li t-if="company.company_registry" class="list-inline-item d-inline">CRN: <span t-field="company.company_registry"/>
      </li>
    </t>
  </xpath>

</data>

Source: snippets/web.external_layout_boxed.footer_company_registry.xmlopen in new window

External Layout Standard

Eksb Layout

ID: mint_system.web.external_layout_standard.eksb_layout

<?xml version="1.0"?>
<data inherit_id="web.external_layout_standard" priority="50">

  <xpath expr="/t/div" position="replace">
    <div t-attf-class="header o_company_#{company.id}_layout" t-att-style="report_header_style">
      <div class="row">
        <div class="col-3">
          <img t-if="company.logo" t-att-src="image_data_uri(company.logo)" style="max-height: 150px;" alt="Logo"/>
        </div>
        <div class="col-9" name="company_address">
          <style>
            #header-info {
                border-top: black 3px solid;
                border-bottom: black 3px solid;
                font-size: 0.9rem;
                margin-right: 15px;
            }
            div.company {
              word-wrap: normal;
              text-transform: uppercase;
            }
          </style>
          <div class="row" style="height: 50px">
          </div>
          <div id="header-info" class="row">
            <div class="col-3 company">
              <span class="o_bold">Kleinbrauerei<br/>Stiär Biär AG</span>
            </div>
            <div class="col-1"/>
            <div class="col-4">
              <span t-field="company.partner_id.street"/>
              <br/>
              <span t-field="company.partner_id.zip"/>
              <span t-field="company.partner_id.city"/>
            </div>
            <div class="col-4">
              <span t-field="company.partner_id.phone"/>
              <br/>
              <span t-field="company.partner_id.email"/>
            </div>
          </div>
        </div>
      </div>
    </div>
  </xpath>

</data>

Source: snippets/web.external_layout_standard.eksb_layout.xmlopen in new window

ID: mint_system.web.external_layout_standard.footer_company_registry

<?xml version="1.0"?>
<data inherit_id="web.external_layout_standard" priority="50">

  <xpath expr="//li[@t-if='company.vat']" position="after">
    <t t-if="company._name != 'base.document.layout'">
      <li t-if="company.company_registry" class="list-inline-item d-inline">CRN: <span t-field="company.company_registry"/>
      </li>
    </t>
  </xpath>

</data>

Source: snippets/web.external_layout_standard.footer_company_registry.xmlopen in new window

Format Header Slogan

ID: mint_system.web.external_layout_standard.format_header_slogan

<?xml version="1.0"?>
<data inherit_id="web.external_layout_standard" priority="50">

  <xpath expr="//div[@name='moto']" position="replace">
    <style>
      h4 {
        /* align-self: center; */
        padding-top: 2rem;
      }
    </style>
    <h4 class="col-9 text-right" t-field="company.report_header" name="moto"/>
  </xpath>

</data>

Source: snippets/web.external_layout_standard.format_header_slogan.xmlopen in new window

Header Styles

ID: mint_system.web.external_layout_standard.header_styles

<?xml version="1.0"?>
<data inherit_id="web.external_layout_standard" priority="50">

  <xpath expr="/t/div" position="before">
    <style>
	    h2 {
	      font-size: 18px;
	    }	                          
    </style>

  </xpath>
</data>

Source: snippets/web.external_layout_standard.header_styles.xmlopen in new window

Increase Logo Size

ID: mint_system.web.external_layout_standard.increase_logo_size

<?xml version="1.0"?>
<data inherit_id="web.external_layout_standard" priority="50">

  <xpath expr="//img[@t-if='company.logo']" position="attributes">
    <attribute name="style">max-height: 90px;</attribute>
  </xpath>

</data>

Source: snippets/web.external_layout_standard.increase_logo_size.xmlopen in new window

ID: mint_system.web.external_layout_standard.remove_company_info_footer

<?xml version="1.0"?>
<data inherit_id="web.external_layout_standard" priority="50">

  <xpath expr="//div[@name='financial_infos']/../ul[1]" position="replace">
  </xpath>

</data>

Source: snippets/web.external_layout_standard.remove_company_info_footer.xmlopen in new window

Remove Contact

ID: mint_system.web.external_layout_standard.remove_contact

<?xml version="1.0"?>
<!-- Remove contact info in footer -->
<data inherit_id="web.external_layout_standard" priority="50">

	<xpath expr="//li[@t-if='company.phone']" position="replace">
  </xpath>
  <xpath expr="//li[@t-if='company.email']" position="replace">
  </xpath>

</data>

Source: snippets/web.external_layout_standard.remove_contact.xmlopen in new window

Remove Header Address

ID: mint_system.web.external_layout_standard.remove_header_address

<?xml version="1.0"?>
<data inherit_id="web.external_layout_standard" priority="50">

  <xpath expr="//div[@name='company_address']" position="replace">
  </xpath>

</data>

Source: snippets/web.external_layout_standard.remove_header_address.xmlopen in new window

ID: mint_system.web.external_layout_standard.replace_footer

<?xml version="1.0"?>
<data inherit_id="web.external_layout_standard" priority="50">

  <xpath expr="/t/div[3]" position="replace">
    <div t-attf-class="footer o_standard_footer o_company_#{company.id}_layout">
     <div align="right" style="color:black; font-size:9pt">
         Page: <span class="page"/> / <span class="topage"/>
     </div>
     </div>
  </xpath>

</data>

Source: snippets/web.external_layout_standard.replace_footer.xmlopen in new window

Replace Header

ID: mint_system.web.external_layout_standard.replace_header

<?xml version="1.0"?>
<data inherit_id="web.external_layout_standard" priority="50">

<xpath expr="/t/div" position="replace">    
  <div t-attf-class="header o_company_#{company.id}_layout" t-att-style="report_header_style">
                           
<table style="width:100%; font-size: 9pt; color:rgb(102,102,102); font-family:arial;">
  
  <tr height="27px;">
    <td style="width:19%; border-left: 1px solid rgb(102,102,102);"></td>
    <td style="width:18%; border-left: 1px solid rgb(102,102,102);"></td>
    <td style="width:25%; border-left: 1px solid rgb(102,102,102);"></td>
    <td style="width:38%; margin: 0; vertical-align:bottom; padding:0;" rowspan="4"><img t-if="company.logo" t-att-src="image_data_uri(company.logo)" alt="Logo"  style="height:61px; float:right"/></td>
  </tr>
 
  <tr style="line-height: 1.2;">
    <td style="border-left: 1px solid rgb(102,102,102); padding-left: 10px;"><span t-field="company.name"/></td>
    <td style="border-left: 1px solid rgb(102,102,102);"></td>
    <td style="border-left: 1px solid rgb(102,102,102);"></td>
  </tr>
  <tr style="line-height: 1.2;">
    <td style="border-left: 1px solid rgb(102,102,102); padding-left: 10px;"><span t-field="company.partner_id.street"/></td>
    <td style="border-left: 1px solid rgb(102,102,102); padding-left: 10px;">Tel. 056 618 77 00</td>
    <td style="border-left: 1px solid rgb(102,102,102); padding-left: 10px;">www.trimada.ch</td>
  </tr>
  <tr style="line-height: 1.2;">
    <td style="border-left: 1px solid rgb(102,102,102); padding-left: 10px;">CH-<span t-field="company.partner_id.zip"/> <span t-field="company.partner_id.city"/></td>
    <td style="border-left: 1px solid rgb(102,102,102); padding-left: 10px;">Fax 056 618 77 07</td>
    <td style="border-left: 1px solid rgb(102,102,102); padding-left: 10px;"><span t-field="company.partner_id.email"/></td>
  </tr>
 
</table>


  </div>
</xpath>
</data>

Source: snippets/web.external_layout_standard.replace_header.xmlopen in new window

Replace Url

ID: mint_system.web.external_layout_standard.replace_url

<?xml version="1.0"?>
<!-- Replace website url in document footer -->
<data inherit_id="web.external_layout_standard" priority="50">

  <xpath expr="//li[@t-if='company.website']" position="replace">
  	<li t-if="company.website" class="list-inline-item d-inline">www.example.ch</li>
  </xpath>

</data>

Source: snippets/web.external_layout_standard.replace_url.xmlopen in new window

Internal Layout

Header Styles

ID: mint_system.web.internal_layout.header_styles

<?xml version="1.0"?>
<data inherit_id="web.internal_layout" priority="50">

  <xpath expr="/t/div" position="before">
    <style>
	    h2 {
	      font-size: 18px;
	    }	                          
    </style>

  </xpath>
</data>

Source: snippets/web.internal_layout.header_styles.xmlopen in new window

Replace Header

ID: mint_system.web.internal_layout.replace_header

<?xml version="1.0"?>
<data inherit_id="web.internal_layout" priority="50">

	<xpath expr="//div[@class='header']" position="replace">
		<div class="header">
			<div class="row">
				<div class="col-4">
				</div>
				<div class="col-4 text-center">
				</div>
				<div class="col-4 text-right">
					<img t-if="company.logo" t-att-src="image_data_uri(company.logo)" alt="Logo" style="height:61px; margin-right: 40px;"/>
				</div>
			</div>
		</div>
	</xpath>

</data>

Source: snippets/web.internal_layout.replace_header.xmlopen in new window

Styles Company Report

Set Font

ID: mint_system.web.styles_company_report.set_font

<?xml version="1.0"?>
<data inherit_id="web.styles_company_report" priority="50">

  <xpath expr="//t[@t-set='font']" position="replace">
    <t t-set="font" t-value="'arial'"/>
  </xpath>

</data>

Source: snippets/web.styles_company_report.set_font.xmlopen in new window