You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

436 lines
26 KiB

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<record id="custom_report_theme_form" model="ir.ui.view">
<field name="name">res.config.settings.custom.report.theme.form</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="base.res_config_settings_view_form"/>
<field name="priority" eval="50"/>
<field name="arch" type="xml">
<xpath expr="//div[hasclass('settings')]" position="inside">
<div class="app_settings_block">
<div id="custom_report">
<h2>Customize Report</h2>
<div class="row mt16 o_settings_container">
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_right_pane">
<label for="report_background"/>
<div class="text-muted">
Custom Background Color for Report
</div>
<div class="content-group">
<div class="row mt16">
<field name="report_background" widget="colorpicker" style="margin-left:6px;"/>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_right_pane">
<label for="header_color"/>
<div class="text-muted">
Header Colour of Report
</div>
<div class="content-group">
<div class="row mt16">
<field name="header_color" widget="colorpicker" style="margin-left:6px;"/>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_right_pane">
<label for="header_background"/>
<div class="text-muted">
Custom Background Color for Report Header
</div>
<div class="content-group">
<div class="row mt16">
<field name="header_background" widget="colorpicker" style="margin-left:6px;"/>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_right_pane">
<label for="header_alignment"/>
<div class="text-muted">
Report Header Alignment
</div>
<div class="content-group">
<div class="row mt16">
<field name="header_alignment" style="margin-left:6px;"/>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_right_pane">
<label for="logo_alignment"/>
<div class="text-muted">
Company Logo Alignment
</div>
<div class="content-group">
<div class="row mt16">
<field name="logo_alignment" style="margin-left:6px;"/>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_right_pane">
<label for="address_alignment"/>
<div class="text-muted">
Company Address Alignment
</div>
<div class="content-group">
<div class="row mt16">
<field name="address_alignment" style="margin-left:6px;"/>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_right_pane">
<label for="address_color"/>
<div class="text-muted">
Company Address Colour
</div>
<div class="content-group">
<div class="row mt16">
<field name="address_color" style="margin-left:6px;" widget="colorpicker"/>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_right_pane">
<label for="table_header_background"/>
<div class="text-muted">
Table Header Background Colour
</div>
<div class="content-group">
<div class="row mt16">
<field name="table_header_background" style="margin-left:6px;" widget="colorpicker"/>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_right_pane">
<label for="table_header_color"/>
<div class="text-muted">
Table Header Colour
</div>
<div class="content-group">
<div class="row mt16">
<field name="table_header_color" style="margin-left:6px;" widget="colorpicker"/>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_right_pane">
<label for="table_header_font"/>
<div class="text-muted">
Table Header Size
</div>
<div class="content-group">
<div class="row mt16">
<field name="table_header_font" style="margin-left:6px;"/>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_right_pane">
<label for="table_data_background"/>
<div class="text-muted">
Table Data Background Colour
</div>
<div class="content-group">
<div class="row mt16">
<field name="table_data_background" style="margin-left:6px;" widget="colorpicker"/>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_right_pane">
<label for="table_data_color"/>
<div class="text-muted">
Table Data Colour
</div>
<div class="content-group">
<div class="row mt16">
<field name="table_data_color" style="margin-left:6px;" widget="colorpicker"/>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_right_pane">
<label for="table_data_font"/>
<div class="text-muted">
Table Data Size
</div>
<div class="content-group">
<div class="row mt16">
<field name="table_data_font" style="margin-left:6px;"/>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_right_pane">
<label for="table_header_alignment"/>
<div class="text-muted">
Table Header Alignment
</div>
<div class="content-group">
<div class="row mt16">
<field name="table_header_alignment" style="margin-left:6px;"/>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_right_pane">
<label for="table_data_alignment"/>
<div class="text-muted">
Table Data Alignment
</div>
<div class="content-group">
<div class="row mt16">
<field name="table_data_alignment" style="margin-left:6px;"/>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
<template id="custom_inherit_report_order" inherit_id="purchase.report_purchaseorder_document">
<xpath expr="//div[hasclass('page')]" position="after">
<style>
.page{
background-color:<t t-esc="o.company_id.report_background"/> !important;
}
h2{
background-color:<t t-esc="o.company_id.header_background"/> !important;
text-align:<t t-esc="o.company_id.header_alignment"/> !important;
color:<t t-esc="o.company_id.header_color"/> !important;
}
.mb0{
float:<t t-esc="o.company_id.address_alignment"/> !important;
text-align:<t t-esc="o.company_id.address_alignment"/> !important;
color:<t t-esc="o.company_id.address_color"/> !important;
}
.mb8{
float:<t t-esc="o.company_id.logo_alignment"/> !important;
}
th{
background-color: <t t-esc="o.company_id.table_header_background"/> !important;
color: <t t-esc="o.company_id.table_header_color"/> !important;
font-size: <t t-esc="o.company_id.table_header_font"/>px !important;
text-align: <t t-esc="o.company_id.table_header_alignment"/> !important;
}
td{
background-color: <t t-esc="o.company_id.table_data_background"/> !important;
color: <t t-esc="o.company_id.table_data_color"/> !important;
font-size: <t t-esc="o.company_id.table_data_font"/>px !important;
text-align: <t t-esc="o.company_id.table_data_alignment"/> !important;
}
table{
border-color: <t t-esc="o.company_id.table_header_background"/> !important;
}
</style>
</xpath>
</template>
<template id="custom_inherit_report_sale" inherit_id="sale.report_saleorder_document">
<xpath expr="//div[hasclass('page')]" position="after">
<style>
.page{
background-color:<t t-esc="doc.company_id.report_background"/> !important;
}
h2{
background-color:<t t-esc="doc.company_id.header_background"/> !important;
text-align:<t t-esc="doc.company_id.header_alignment"/> !important;
color:<t t-esc="doc.company_id.header_color"/> !important;
}
.mb0{
float:<t t-esc="doc.company_id.address_alignment"/> !important;
text-align:<t t-esc="doc.company_id.address_alignment"/> !important;
color:<t t-esc="doc.company_id.address_color"/> !important;
}
.mb8{
float:<t t-esc="doc.company_id.logo_alignment"/> !important;
}
th{
background-color: <t t-esc="doc.company_id.table_header_background"/> !important;
color: <t t-esc="doc.company_id.table_header_color"/> !important;
font-size: <t t-esc="doc.company_id.table_header_font"/>px !important;
text-align: <t t-esc="doc.company_id.table_header_alignment"/> !important;
}
td{
background-color: <t t-esc="doc.company_id.table_data_background"/> !important;
color: <t t-esc="doc.company_id.table_data_color"/> !important;
font-size: <t t-esc="doc.company_id.table_data_font"/>px !important;
text-align: <t t-esc="doc.company_id.table_data_alignment"/> !important;
}
</style>
</xpath>
</template>
<template id="custom_inherit_report_picking" inherit_id="stock.report_picking">
<xpath expr="//div[hasclass('page')]" position="after">
<style>
.page{
background-color:<t t-esc="o.company_id.report_background"/> !important;
}
h2{
background-color:<t t-esc="o.company_id.header_background"/> !important;
text-align:<t t-esc="o.company_id.header_alignment"/> !important;
color:<t t-esc="o.company_id.header_color"/> !important;
}
.mb0{
float:<t t-esc="o.company_id.address_alignment"/> !important;
text-align:<t t-esc="o.company_id.address_alignment"/> !important;
color:<t t-esc="o.company_id.address_color"/> !important;
}
.mb8{
float:<t t-esc="o.company_id.logo_alignment"/> !important;
}
th{
background-color: <t t-esc="o.company_id.table_header_background"/> !important;
color: <t t-esc="o.company_id.table_header_color"/> !important;
font-size: <t t-esc="o.company_id.table_header_font"/>px !important;
text-align: <t t-esc="o.company_id.table_header_alignment"/> !important;
}
td{
background-color: <t t-esc="o.company_id.table_data_background"/> !important;
color: <t t-esc="o.company_id.table_data_color"/> !important;
font-size: <t t-esc="o.company_id.table_data_font"/>px !important;
text-align: <t t-esc="o.company_id.table_data_alignment"/> !important;
}
table{
border-color: <t t-esc="o.company_id.table_header_background"/> !important;
}
</style>
</xpath>
</template>
<template id="custom_inherit_report_quote" inherit_id="purchase.report_purchasequotation_document">
<xpath expr="//div[hasclass('page')]" position="after">
<style>
.page{
background-color:<t t-esc="o.company_id.report_background"/> !important;
}
h2{
background-color:<t t-esc="o.company_id.header_background"/> !important;
text-align:<t t-esc="o.company_id.header_alignment"/> !important;
color:<t t-esc="o.company_id.header_color"/> !important;
}
.mb0{
float:<t t-esc="o.company_id.address_alignment"/> !important;
text-align:<t t-esc="o.company_id.address_alignment"/> !important;
color:<t t-esc="o.company_id.address_color"/> !important;
}
.mb8{
float:<t t-esc="o.company_id.logo_alignment"/> !important;
}
th{
background-color: <t t-esc="o.company_id.table_header_background"/> !important;
color: <t t-esc="o.company_id.table_header_color"/> !important;
font-size: <t t-esc="o.company_id.table_header_font"/>px !important;
text-align: <t t-esc="o.company_id.table_header_alignment"/> !important;
}
td{
background-color: <t t-esc="o.company_id.table_data_background"/> !important;
color: <t t-esc="o.company_id.table_data_color"/> !important;
font-size: <t t-esc="o.company_id.table_data_font"/>px !important;
text-align: <t t-esc="o.company_id.table_data_alignment"/> !important;
}
table{
border-color: <t t-esc="o.company_id.table_header_background"/> !important;
}
</style>
</xpath>
</template>
<template id="custom_inherit_report_invoice" inherit_id="account.report_invoice_document">
<xpath expr="//div[hasclass('page')]" position="after">
<style>
.page{
background-color:<t t-esc="o.company_id.report_background"/> !important;
}
h2{
background-color:<t t-esc="o.company_id.header_background"/> !important;
text-align:<t t-esc="o.company_id.header_alignment"/> !important;
color:<t t-esc="o.company_id.header_color"/> !important;
}
.mb0{
float:<t t-esc="o.company_id.address_alignment"/> !important;
text-align:<t t-esc="o.company_id.address_alignment"/> !important;
color:<t t-esc="o.company_id.address_color"/> !important;
}
.mb8{
float:<t t-esc="o.company_id.logo_alignment"/> !important;
}
th{
background-color: <t t-esc="o.company_id.table_header_background"/> !important;
color: <t t-esc="o.company_id.table_header_color"/> !important;
font-size: <t t-esc="o.company_id.table_header_font"/>px !important;
text-align: <t t-esc="o.company_id.table_header_alignment"/> !important;
}
td{
background-color: <t t-esc="o.company_id.table_data_background"/> !important;
color: <t t-esc="o.company_id.table_data_color"/> !important;
font-size: <t t-esc="o.company_id.table_data_font"/>px !important;
text-align: <t t-esc="o.company_id.table_data_alignment"/> !important;
}
table{
border-color: <t t-esc="o.company_id.table_header_background"/> !important;
}
</style>
</xpath>
</template>
<template id="custom_inherit_report_slip" inherit_id="stock.report_delivery_document">
<xpath expr="//div[hasclass('page')]" position="before">
<style>
.page{
background-color:<t t-esc="o.company_id.report_background"/> !important;
}
h2{
background-color:<t t-esc="o.company_id.header_background"/> !important;
text-align:<t t-esc="o.company_id.header_alignment"/> !important;
color:<t t-esc="o.company_id.header_color"/> !important;
}
.mb0{
float:<t t-esc="o.company_id.address_alignment"/> !important;
text-align:<t t-esc="o.company_id.address_alignment"/> !important;
color:<t t-esc="o.company_id.address_color"/> !important;
}
.mb8{
float:<t t-esc="o.company_id.logo_alignment"/> !important;
}
th{
background-color: <t t-esc="o.company_id.table_header_background"/> !important;
color: <t t-esc="o.company_id.table_header_color"/> !important;
font-size: <t t-esc="o.company_id.table_header_font"/>px !important;
text-align: <t t-esc="o.company_id.table_header_alignment"/> !important;
}
td{
background-color: <t t-esc="o.company_id.table_data_background"/> !important;
color: <t t-esc="o.company_id.table_data_color"/> !important;
font-size: <t t-esc="o.company_id.table_data_font"/>px !important;
text-align: <t t-esc="o.company_id.table_data_alignment"/> !important;
}
table{
border-color: <t t-esc="o.company_id.table_header_background"/> !important;
}
</style>
</xpath>
</template>
</data>
</odoo>