Browse Source

[INIT] Initial Commit

pull/104/head
Sreejith P 7 years ago
parent
commit
1602495eec
  1. 1
      custom_report_template/__init__.py
  2. 41
      custom_report_template/__manifest__.py
  3. 6
      custom_report_template/doc/RELEASE_NOTES.md
  4. 1
      custom_report_template/models/__init__.py
  5. 56
      custom_report_template/models/model.py
  6. 31
      custom_report_template/readme.rst
  7. BIN
      custom_report_template/static/description/HRMS-BUTTON.png
  8. BIN
      custom_report_template/static/description/banner.jpg
  9. BIN
      custom_report_template/static/description/cybro-service.png
  10. BIN
      custom_report_template/static/description/cybro_logo.png
  11. BIN
      custom_report_template/static/description/icon.png
  12. BIN
      custom_report_template/static/description/image1.png
  13. BIN
      custom_report_template/static/description/image2.png
  14. BIN
      custom_report_template/static/description/image4.png
  15. BIN
      custom_report_template/static/description/image5.png
  16. 101
      custom_report_template/static/description/index.html
  17. 436
      custom_report_template/views/view.xml

1
custom_report_template/__init__.py

@ -0,0 +1 @@
from . import models

41
custom_report_template/__manifest__.py

@ -0,0 +1,41 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2018-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Muhammed Nishad TK(<https://www.cybrosys.com>)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': "Customizable Report Template",
'version': '11.0.1.0.0',
'summary': """Customize Your Reports Layout""",
'description': """Customize Your Reports Layout""",
'author': "Cybrosys Techno Solutions",
'maintainer': 'Cybrosys Techno Solutions',
'company': "Cybrosys Techno Solutions",
'website': "https://www.cybrosys.com",
'category': 'Tools',
'depends': ['base', 'web_widget_colorpicker', 'sale_management', 'purchase', 'stock', 'account_invoicing'],
'images': ['static/description/banner.jpg'],
'data': [
'views/view.xml',
],
'license': 'AGPL-3',
'appliction': False,
'installable': True
}

6
custom_report_template/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <custom_report_template>
#### 09.10.2018
#### Version 11.0.1.0.0
##### ADD
- Initial commit for Custom Report Module

1
custom_report_template/models/__init__.py

@ -0,0 +1 @@
from . import model

56
custom_report_template/models/model.py

@ -0,0 +1,56 @@
from odoo import models, fields, api
class ResCompany(models.Model):
_inherit = 'res.company'
report_background = fields.Char(string="Report Background", default="rgba(255,255,255,1)")
header_background = fields.Char(string="Header Background", default="rgba(255,255,255,1)")
address_color = fields.Char(string="Company Address Colour")
table_header_background = fields.Char(string="Table Header Background", default="rgba(255,255,255,1)")
table_header_color = fields.Char(string="Table Header Color")
table_header_font = fields.Char(string="Table Header Size")
table_data_background = fields.Char(string="Table Data Background", default="rgba(255,255,255,1)")
table_data_color = fields.Char(string="Table Data Colour")
table_data_font = fields.Char(string="Table Data Size")
header_color = fields.Char(string="Header Colour")
header_alignment = fields.Selection([('center', 'Center'),
('left', 'Left'),
('right', 'Right'),
], string="Header Alignment")
logo_alignment = fields.Selection([('center', 'Center'),
('left', 'Left'),
('right', 'Right'),
], string="Logo Alignment")
address_alignment = fields.Selection([('center', 'Center'),
('left', 'Left'),
('right', 'Right'),
], string="Company Address Alignment")
table_header_alignment = fields.Selection([('center', 'Center'),
('left', 'Left'),
('right', 'Right'),
], string="Table Header Alignment")
table_data_alignment = fields.Selection([('center', 'Center'),
('left', 'Left'),
('right', 'Right'),
], string="Table Data Alignment")
class CustomReportConfig(models.TransientModel):
_inherit = 'res.config.settings'
report_background = fields.Char(related="company_id.report_background", string="Report Background", default="rgba(255,255,255,1)")
header_background = fields.Char(related="company_id.header_background", string="Header Background", default="rgba(255,255,255,1)")
header_alignment = fields.Selection(related="company_id.header_alignment", string="Header Alignment")
header_color = fields.Char(related="company_id.header_color")
logo_alignment = fields.Selection(related="company_id.logo_alignment")
address_alignment = fields.Selection(related="company_id.address_alignment")
address_color = fields.Char(related="company_id.address_color")
table_header_background = fields.Char(related="company_id.table_header_background", default="rgba(255,255,255,1)")
table_header_color = fields.Char(related="company_id.table_header_color")
table_header_font = fields.Char(related="company_id.table_header_font")
table_data_background = fields.Char(related="company_id.table_data_background", default="rgba(255,255,255,1)")
table_data_color = fields.Char(related="company_id.table_data_color")
table_data_font = fields.Char(related="company_id.table_data_font")
table_header_alignment = fields.Selection(related="company_id.table_header_alignment")
table_data_alignment = fields.Selection(related="company_id.table_data_alignment")

31
custom_report_template/readme.rst

@ -0,0 +1,31 @@
======================
Custom Report Template
======================
The Custom Report Template Module Helps You to Customize PDF Reports
It have options to change foreground and background colours, Change
alignment of text and change the font size
Tech
====
* [Python] - Models
* [XML] - Odoo views
Installation
============
- www.odoo.com/documentation/11.0/setup/install.html
- Install our custom addon
Bug Tracker
===========
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported.
Credits
=======
* Cybrosys Techno Solutions <https://www.cybrosys.com>
Maintainer
----------
This module is maintained by Cybrosys Technologies.
For support and more information, please visit https://www.cybrosys.com.

BIN
custom_report_template/static/description/HRMS-BUTTON.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
custom_report_template/static/description/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

BIN
custom_report_template/static/description/cybro-service.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 KiB

BIN
custom_report_template/static/description/cybro_logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
custom_report_template/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
custom_report_template/static/description/image1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
custom_report_template/static/description/image2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

BIN
custom_report_template/static/description/image4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
custom_report_template/static/description/image5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

101
custom_report_template/static/description/index.html

@ -0,0 +1,101 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">Custom report Template</h2>
<h3 class="oe_slogan">Customize PDF Report Styles</h3>
<h4 class="oe_slogan"><a href="https://www.cybrosys.com">Cybrosys Technologies</a> </h4>
</div>
<div class="oe_row oe_spaced">
<div>
Stand out from the herd with a professionally designed report. Cybrosys Technologies helps you in crafting the finest eye-appealing report via our module, ”Customizable Report Template”.
No matter what your report is all about, we help you in presenting them clearly and beautifully. We help you to customize PDF reports based on configurations.
</div>
</div>
<div class="oe_row oe_spaced">
<div>
&#x261B; Installation : To install this module, you also need the account_invoicing,sale_management,stock and web_widget_colorpicker modules.
It works well with WKHTMLTOPDF 0.12.1.
</div>
</div>
<div class="oe_row oe_spaced">
<div class="oe_span6">
<div class="oe_demo oe_picture oe_screenshot">
<img src="image1.png">
</div>
</div>
<div class="oe_span6">
<p class='oe_mt32'>
Go to Settings -> General Settings -> Customize Report.
Select the desired color, alignment and font size you need. Later click, ”Save” and print reports.
</p>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_padded">
<div class="oe_span12">
<div class="oe_row_img oe_centered">
<img class="oe_demo oe_picture oe_screenshot" src="image2.png">
</div>
</div>
</div>
</section>
<section>
<div class="oe_row oe_spaced">
<div class="oe_span12">
<p class='oe_mt32'>
Here you can see the table header colour and the report header colour is changed.
</p>
</div>
<div class="oe_span12">
<div class="oe_demo oe_picture oe_screenshot" style="margin-bottom: 164px;">
<img src="image4.png">
</div>
</div>
</div>
</section>
<section>
<div class="oe_row oe_spaced">
<div class="oe_span12">
<p class='oe_mt32'>
Here the header alignment and the report background is changed.
</p>
</div>
<div class="oe_span12">
<div class="oe_demo oe_picture oe_screenshot">
<img src="image5.png">
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2>
<div class="oe_slogan" style="margin-top:10px !important;">
<div>
<a class="btn btn-primary btn-lg mt8"
style="color: #FFFFFF !important;border-radius: 0;" href="http://www.cybrosys.com"><i
class="fa fa-envelope"></i> Email </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
href="http://www.cybrosys.com/contact/"><i
class="fa fa-phone"></i> Contact Us </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
href="http://www.cybrosys.com/odoo-customization-and-installation/"><i
class="fa fa-check-square"></i> Request Customization </a>
</div>
<br>
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block">
<div>
<a href="https://twitter.com/cybrosys" target="_blank"><i class="fa fa-2x fa-twitter" style="color:white;background: #00a0d1;width:35px;"></i></a></td>
<a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i class="fa fa-2x fa-linkedin" style="color:white;background: #31a3d6;width:35px;padding-left: 3px;"></i></a></td>
<a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook" style="color:white;background: #3b5998;width:35px;padding-left: 8px;"></i></a></td>
<a href="https://plus.google.com/106641282743045431892/about" target="_blank"><i class="fa fa-2x fa-google-plus" style="color:white;background: #c53c2c;width:35px;padding-left: 3px;"></i></a></td>
<a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest" style="color:white;background: #ac0f18;width:35px;padding-left: 3px;"></i></a></td>
</div>
</div>
</section>

436
custom_report_template/views/view.xml

@ -0,0 +1,436 @@
<?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>
Loading…
Cancel
Save