Browse Source

July 29: [ADD]Initial commit 'base_advanced_report_templates'

pull/354/merge
Cybrosys Technologies 4 days ago
parent
commit
ced0b38e21
  1. 42
      base_advanced_report_templates/README.rst
  2. 22
      base_advanced_report_templates/__init__.py
  3. 69
      base_advanced_report_templates/__manifest__.py
  4. 53
      base_advanced_report_templates/data/doc_layout_data.xml
  5. 6
      base_advanced_report_templates/doc/RELEASE_NOTES.md
  6. 32
      base_advanced_report_templates/model/__init__.py
  7. 37
      base_advanced_report_templates/model/account_move.py
  8. 36
      base_advanced_report_templates/model/account_move_line.py
  9. 205
      base_advanced_report_templates/model/base_document_layout.py
  10. 74
      base_advanced_report_templates/model/doc_layout.py
  11. 37
      base_advanced_report_templates/model/purchase_order.py
  12. 36
      base_advanced_report_templates/model/purchase_order_line.py
  13. 57
      base_advanced_report_templates/model/res_company.py
  14. 44
      base_advanced_report_templates/model/sale_order.py
  15. 35
      base_advanced_report_templates/model/sale_order_line.py
  16. 35
      base_advanced_report_templates/model/stock_move.py
  17. 38
      base_advanced_report_templates/model/stock_picking.py
  18. 338
      base_advanced_report_templates/report/account_attractive_templates.xml
  19. 389
      base_advanced_report_templates/report/account_modern_templates.xml
  20. 263
      base_advanced_report_templates/report/account_standrd_templates.xml
  21. 280
      base_advanced_report_templates/report/account_traditional_templates.xml
  22. 194
      base_advanced_report_templates/report/purchase_attractive_templates.xml
  23. 226
      base_advanced_report_templates/report/purchase_modern_templates.xml
  24. 161
      base_advanced_report_templates/report/purchase_standard_templates.xml
  25. 233
      base_advanced_report_templates/report/purchase_traditional_templates.xml
  26. 225
      base_advanced_report_templates/report/sale_attractive_templates.xml
  27. 269
      base_advanced_report_templates/report/sale_modern_templates.xml
  28. 228
      base_advanced_report_templates/report/sale_standrd_templates.xml
  29. 215
      base_advanced_report_templates/report/sale_traditional_templates.xml
  30. 263
      base_advanced_report_templates/report/stock_attractive_templates.xml
  31. 285
      base_advanced_report_templates/report/stock_modern_templates.xml
  32. 273
      base_advanced_report_templates/report/stock_standard_templates.xml
  33. 314
      base_advanced_report_templates/report/stock_traditional_templates.xml
  34. 2
      base_advanced_report_templates/security/ir.model.access.csv
  35. BIN
      base_advanced_report_templates/static/description/Icon.png
  36. BIN
      base_advanced_report_templates/static/description/assets/icons/capture (1).png
  37. BIN
      base_advanced_report_templates/static/description/assets/icons/check.png
  38. BIN
      base_advanced_report_templates/static/description/assets/icons/chevron.png
  39. BIN
      base_advanced_report_templates/static/description/assets/icons/cogs.png
  40. BIN
      base_advanced_report_templates/static/description/assets/icons/consultation.png
  41. BIN
      base_advanced_report_templates/static/description/assets/icons/ecom-black.png
  42. BIN
      base_advanced_report_templates/static/description/assets/icons/education-black.png
  43. BIN
      base_advanced_report_templates/static/description/assets/icons/hotel-black.png
  44. BIN
      base_advanced_report_templates/static/description/assets/icons/img.png
  45. BIN
      base_advanced_report_templates/static/description/assets/icons/license.png
  46. BIN
      base_advanced_report_templates/static/description/assets/icons/lifebuoy.png
  47. BIN
      base_advanced_report_templates/static/description/assets/icons/manufacturing-black.png
  48. BIN
      base_advanced_report_templates/static/description/assets/icons/photo-capture.png
  49. BIN
      base_advanced_report_templates/static/description/assets/icons/pos-black.png
  50. BIN
      base_advanced_report_templates/static/description/assets/icons/puzzle.png
  51. BIN
      base_advanced_report_templates/static/description/assets/icons/restaurant-black.png
  52. BIN
      base_advanced_report_templates/static/description/assets/icons/service-black.png
  53. BIN
      base_advanced_report_templates/static/description/assets/icons/trading-black.png
  54. BIN
      base_advanced_report_templates/static/description/assets/icons/training.png
  55. BIN
      base_advanced_report_templates/static/description/assets/icons/update.png
  56. BIN
      base_advanced_report_templates/static/description/assets/icons/user.png
  57. BIN
      base_advanced_report_templates/static/description/assets/icons/wrench.png
  58. BIN
      base_advanced_report_templates/static/description/assets/misc/Cybrosys R.png
  59. BIN
      base_advanced_report_templates/static/description/assets/misc/categories.png
  60. BIN
      base_advanced_report_templates/static/description/assets/misc/check-box.png
  61. BIN
      base_advanced_report_templates/static/description/assets/misc/compass.png
  62. BIN
      base_advanced_report_templates/static/description/assets/misc/corporate.png
  63. BIN
      base_advanced_report_templates/static/description/assets/misc/customer-support.png
  64. BIN
      base_advanced_report_templates/static/description/assets/misc/cybrosys-logo.png
  65. 33
      base_advanced_report_templates/static/description/assets/misc/email.svg
  66. BIN
      base_advanced_report_templates/static/description/assets/misc/features.png
  67. BIN
      base_advanced_report_templates/static/description/assets/misc/logo.png
  68. 3
      base_advanced_report_templates/static/description/assets/misc/phone.svg
  69. BIN
      base_advanced_report_templates/static/description/assets/misc/pictures.png
  70. BIN
      base_advanced_report_templates/static/description/assets/misc/pie-chart.png
  71. BIN
      base_advanced_report_templates/static/description/assets/misc/right-arrow.png
  72. 9
      base_advanced_report_templates/static/description/assets/misc/star (1) 2.svg
  73. BIN
      base_advanced_report_templates/static/description/assets/misc/star.png
  74. 9
      base_advanced_report_templates/static/description/assets/misc/support (1) 1.svg
  75. 6
      base_advanced_report_templates/static/description/assets/misc/support-email.svg
  76. BIN
      base_advanced_report_templates/static/description/assets/misc/support.png
  77. 17
      base_advanced_report_templates/static/description/assets/misc/tick-mark.svg
  78. 9
      base_advanced_report_templates/static/description/assets/misc/whatsapp 1.svg
  79. BIN
      base_advanced_report_templates/static/description/assets/misc/whatsapp.png
  80. 33
      base_advanced_report_templates/static/description/assets/misc/whatsapp.svg
  81. BIN
      base_advanced_report_templates/static/description/assets/modules/1.png
  82. BIN
      base_advanced_report_templates/static/description/assets/modules/2.png
  83. BIN
      base_advanced_report_templates/static/description/assets/modules/3.png
  84. BIN
      base_advanced_report_templates/static/description/assets/modules/4.png
  85. BIN
      base_advanced_report_templates/static/description/assets/modules/5.png
  86. BIN
      base_advanced_report_templates/static/description/assets/modules/6.png
  87. BIN
      base_advanced_report_templates/static/description/assets/screenshots/hero.gif
  88. BIN
      base_advanced_report_templates/static/description/assets/screenshots/image1.png
  89. BIN
      base_advanced_report_templates/static/description/assets/screenshots/image10.png
  90. BIN
      base_advanced_report_templates/static/description/assets/screenshots/image11.png
  91. BIN
      base_advanced_report_templates/static/description/assets/screenshots/image12.png
  92. BIN
      base_advanced_report_templates/static/description/assets/screenshots/image13.png
  93. BIN
      base_advanced_report_templates/static/description/assets/screenshots/image14.png
  94. BIN
      base_advanced_report_templates/static/description/assets/screenshots/image15.png
  95. BIN
      base_advanced_report_templates/static/description/assets/screenshots/image16.png
  96. BIN
      base_advanced_report_templates/static/description/assets/screenshots/image17.png
  97. BIN
      base_advanced_report_templates/static/description/assets/screenshots/image2.png
  98. BIN
      base_advanced_report_templates/static/description/assets/screenshots/image3.png
  99. BIN
      base_advanced_report_templates/static/description/assets/screenshots/image4.png
  100. BIN
      base_advanced_report_templates/static/description/assets/screenshots/image5.png

42
base_advanced_report_templates/README.rst

@ -0,0 +1,42 @@
.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
Odoo Professional Report Templates
==================================
Odoo Professional Report Templates.
License
-------
General Public License, Version 3 (LGPL-3).
(https://www.gnu.org/licenses/lgpl-3.0-standalone.html)
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
Developers: (V18) Bhagyadev KP, (V17) Subina P, (V16) Gayathri, Contact: odoo@cybrosys.com
Contacts
--------
* Mail Contact : odoo@cybrosys.com
* Website : https://cybrosys.com
Bug Tracker
-----------
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported.
Maintainer
==========
.. image:: https://cybrosys.com/images/logo.png
:target: https://cybrosys.com
This module is maintained by Cybrosys Technologies.
For support and more information, please visit `Our Website <https://cybrosys.com/>`__
Further information
===================
HTML Description: `<static/description/index.html>`__

22
base_advanced_report_templates/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Bhagyadev KP (<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from . import model

69
base_advanced_report_templates/__manifest__.py

@ -0,0 +1,69 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Bhagyadev KP (<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
{
'name': 'Odoo Professional Report Templates',
'version': '18.0.1.0.0',
'category': 'Sales,Purchases,Accounting,Warehouse',
'summary': "Report Templates, Professional Report Templates, Report Customisations, Sale Reports, Purchase Reports, Invoice Reports, Templates, Odoo17, Oodoo Apps",
'description': "To tailor the presentation of different reports such as "
"Sales Orders, Purchase Orders, Invoices, and Delivery "
"Orders, the process involves customizing the report "
"templates , especially for PDF reports By doing so, "
"you can personalize the design,content of these reports to"
"better suit your business needs and preferences.",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': 'https://www.cybrosys.com',
'depends': ['sale_management', 'account', 'stock', 'purchase'],
'data': [
'data/doc_layout_data.xml',
'security/ir.model.access.csv',
'views/res_company_views.xml',
'views/sale_order_views.xml',
'views/purchase_order_views.xml',
'views/account_move_views.xml',
'views/stock_picking_views.xml',
'views/doc_layout_views.xml',
'report/purchase_traditional_templates.xml',
'report/purchase_standard_templates.xml',
'report/purchase_modern_templates.xml',
'report/purchase_attractive_templates.xml',
'report/sale_traditional_templates.xml',
'report/sale_standrd_templates.xml',
'report/sale_modern_templates.xml',
'report/sale_attractive_templates.xml',
'report/stock_traditional_templates.xml',
'report/stock_standard_templates.xml',
'report/stock_modern_templates.xml',
'report/stock_attractive_templates.xml',
'report/account_traditional_templates.xml',
'report/account_standrd_templates.xml',
'report/account_modern_templates.xml',
'report/account_attractive_templates.xml',
],
'images': ['static/description/banner.jpg'],
'license': 'LGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

53
base_advanced_report_templates/data/doc_layout_data.xml

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- Modern Doc Layout -->
<record id="modern" model="doc.layout">
<field name="name">Modern</field>
<field name="base_color">#732673</field>
<field name="heading_text_color">#ffffff</field>
<field name="text_color">#000000</field>
<field name="customer_text_color">#000000</field>
<field name="logo_position">right</field>
<field name="customer_position">right</field>
<field name="company_position">left</field>
<field name="company_text_color">#808080</field>
</record>
<!-- Standard Doc Layout -->
<record id="standard" model="doc.layout">
<field name="name">Standard</field>
<field name="base_color">#ff7733</field>
<field name="heading_text_color">#ffffff</field>
<field name="text_color">#000000</field>
<field name="customer_text_color">#000000</field>
<field name="logo_position">left</field>
<field name="customer_position">left</field>
<field name="company_position">right</field>
<field name="company_text_color">#808080</field>
</record>
<!-- Traditional Doc Layout -->
<record id="traditional" model="doc.layout">
<field name="name">Traditional</field>
<field name="base_color">#ff7733</field>
<field name="heading_text_color">#ffffff</field>
<field name="text_color">#000000</field>
<field name="customer_text_color">#000000</field>
<field name="logo_position">left</field>
<field name="customer_position">left</field>
<field name="company_position">right</field>
<field name="company_text_color">#808080</field>
</record>
<!-- Attractive Doc Layout -->
<record id="attractive" model="doc.layout">
<field name="name">Attractive</field>
<field name="base_color">#ff7733</field>
<field name="heading_text_color">#ffffff</field>
<field name="text_color">#000000</field>
<field name="customer_text_color">#000000</field>
<field name="logo_position">left</field>
<field name="customer_position">left</field>
<field name="company_position">right</field>
<field name="company_text_color">#808080</field>
</record>
</data>
</odoo>

6
base_advanced_report_templates/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <base_advanced_report_templates>
#### 08.08.2024
#### Version 18.0.1.0.0
##### ADD
- Initial commit for Odoo Professional Report Templates

32
base_advanced_report_templates/model/__init__.py

@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Bhagyadev KP (<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from . import account_move
from . import account_move_line
from . import base_document_layout
from . import doc_layout
from . import purchase_order_line
from . import purchase_order
from . import res_company
from . import sale_order
from . import sale_order_line
from . import stock_move
from . import stock_picking

37
base_advanced_report_templates/model/account_move.py

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Bhagyadev KP (<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class AccountMove(models.Model):
"""
Inheriting account_move model
"""
_inherit = 'account.move'
theme_id = fields.Many2one(
comodel_name='doc.layout',
related='company_id.account_document_layout_id',
help='This field is used to specify the document'
'layout theme associated with the company.',
string='Theme'
)

36
base_advanced_report_templates/model/account_move_line.py

@ -0,0 +1,36 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Bhagyadev KP (<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class AccountMoveLine(models.Model):
"""invoice line image"""
_inherit = 'account.move.line'
order_line_image = fields.Binary(
string="Image",
related="product_id.image_128",
help="This field represents the image "
"associated with the product on the "
"invoice line."
)

205
base_advanced_report_templates/model/base_document_layout.py

@ -0,0 +1,205 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Bhagyadev KP (<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import api, fields, models
class BaseDocumentLayout(models.TransientModel):
"""
This model extends the 'base.document.layout' transient model to
incorporate additional document layout fields related to sales,
purchases, and company-wide settings.
"""
_inherit = 'base.document.layout'
sale_document_layout_id = fields.Many2one(
related='company_id.sale_document_layout_id', readonly=False,
string="Sale Document Layout", help="This field specify the "
"document layout for sales associated with the company."
)
purchase_document_layout_id = fields.Many2one(
related='company_id.purchase_document_layout_id', readonly=False,
string="Purchase Document Layout",
help="This field specify the document layout for purchases associated "
"with the company."
)
account_document_layout_id = fields.Many2one(
related='company_id.account_document_layout_id', readonly=False,
string="Account Document Layout",
help="This field specify the document layout for accounting "
"associated with the company."
)
stock_document_layout_id = fields.Many2one(
related='company_id.stock_document_layout_id', readonly=False,
string="Stock Document Layout",
help="This field specify the document layout for stock "
"management associated with the company. "
)
watermark = fields.Boolean(
string='Watermark',
help="This field is used to specify the document"
"layout for stock management associated "
"with the company."
)
watermark_show = fields.Selection([
('logo', 'Company Logo'),
('name', 'Company Name'),
], default='logo', string="Watermark Show",
help="Select the element to show as a watermark on the documents."
)
@api.depends('report_layout_id', 'logo', 'font', 'primary_color',
'secondary_color', 'report_header', 'report_footer',
'sale_document_layout_id',
'stock_document_layout_id', 'account_document_layout_id',
'purchase_document_layout_id')
def _compute_preview(self):
""" compute a qweb based preview to display on the wizard """
styles = self._get_asset_style()
for wizard in self:
if wizard.report_layout_id:
if wizard.sale_document_layout_id:
if wizard.sale_document_layout_id == 'modern':
preview_css = self._get_css_for_preview(styles,
wizard.id)
ir_ui_view = wizard.env['ir.ui.view']
wizard.preview = ir_ui_view._render_template(
'base_advanced_report_templates.report_saleorder_modern_document',
{'company': wizard, 'preview_css': preview_css})
elif wizard.sale_document_layout_id == 'traditional':
preview_css = self._get_css_for_preview(styles,
wizard.id)
ir_ui_view = wizard.env['ir.ui.view']
wizard.preview = ir_ui_view._render_template(
'base_advanced_report_templates.report_saleorder_traditional_document',
{'company': wizard, 'preview_css': preview_css, })
elif wizard.sale_document_layout_id == 'standard':
preview_css = self._get_css_for_preview(styles,
wizard.id)
ir_ui_view = wizard.env['ir.ui.view']
wizard.preview = ir_ui_view._render_template(
'base_advanced_report_templates.report_saleorder_standard_document',
{'company': wizard, 'preview_css': preview_css, })
elif wizard.sale_document_layout_id == 'attractive':
preview_css = self._get_css_for_preview(styles,
wizard.id)
ir_ui_view = wizard.env['ir.ui.view']
wizard.preview = ir_ui_view._render_template(
'base_advanced_report_templates.report_saleorder_attractive_document',
{'company': wizard, 'preview_css': preview_css, })
else:
wizard.preview = False
if wizard.purchase_document_layout_id:
if wizard.purchase_document_layout_id == 'modern':
preview_css = self._get_css_for_preview(styles,
wizard.id)
ir_ui_view = wizard.env['ir.ui.view']
wizard.preview = ir_ui_view._render_template(
'base_advanced_report_templates.report_purchaseorder_modern_document',
{'company': wizard, 'preview_css': preview_css})
elif wizard.purchase_document_layout_id == 'traditional':
preview_css = self._get_css_for_preview(styles,
wizard.id)
ir_ui_view = wizard.env['ir.ui.view']
wizard.preview = ir_ui_view._render_template(
'base_advanced_report_templates.report_purchaseorder_traditional_document',
{'company': wizard, 'preview_css': preview_css, })
elif wizard.purchase_document_layout_id == 'standard':
preview_css = self._get_css_for_preview(styles,
wizard.id)
ir_ui_view = wizard.env['ir.ui.view']
wizard.preview = ir_ui_view._render_template(
'base_advanced_report_templates.report_purchaseorder_standard_document',
{'company': wizard, 'preview_css': preview_css, })
elif wizard.purchase_document_layout_id == 'attractive':
preview_css = self._get_css_for_preview(styles,
wizard.id)
ir_ui_view = wizard.env['ir.ui.view']
wizard.preview = ir_ui_view._render_template(
'base_advanced_report_templates.report_purchaseorder_attractive_document',
{'company': wizard, 'preview_css': preview_css, })
else:
wizard.preview = False
if wizard.account_document_layout_id:
if wizard.account_document_layout_id == 'modern':
preview_css = self._get_css_for_preview(styles,
wizard.id)
ir_ui_view = wizard.env['ir.ui.view']
wizard.preview = ir_ui_view._render_template(
'base_advanced_report_templates.report_account_modern_document',
{'company': wizard, 'preview_css': preview_css})
elif wizard.account_document_layout_id == 'traditional':
preview_css = self._get_css_for_preview(styles,
wizard.id)
ir_ui_view = wizard.env['ir.ui.view']
wizard.preview = ir_ui_view._render_template(
'base_advanced_report_templates.report_account_traditional_document',
{'company': wizard, 'preview_css': preview_css, })
elif wizard.account_document_layout_id == 'standard':
preview_css = self._get_css_for_preview(styles,
wizard.id)
ir_ui_view = wizard.env['ir.ui.view']
wizard.preview = ir_ui_view._render_template(
'base_advanced_report_templates.report_account_standard_document',
{'company': wizard, 'preview_css': preview_css, })
elif wizard.account_document_layout_id == 'attractive':
preview_css = self._get_css_for_preview(styles,
wizard.id)
ir_ui_view = wizard.env['ir.ui.view']
wizard.preview = ir_ui_view._render_template(
'base_advanced_report_templates.report_account_attractive_document',
{'company': wizard, 'preview_css': preview_css, })
else:
wizard.preview = False
if wizard.stock_document_layout_id:
if wizard.stock_document_layout_id == 'modern':
preview_css = self._get_css_for_preview(styles,
wizard.id)
ir_ui_view = wizard.env['ir.ui.view']
wizard.preview = ir_ui_view._render_template(
'base_advanced_report_templates.report_stock_modern_document',
{'company': wizard, 'preview_css': preview_css})
elif wizard.stock_document_layout_id == 'traditional':
preview_css = self._get_css_for_preview(styles,
wizard.id)
ir_ui_view = wizard.env['ir.ui.view']
wizard.preview = ir_ui_view._render_template(
'base_advanced_report_templates.report_stock_traditional_document',
{'company': wizard, 'preview_css': preview_css, })
elif wizard.stock_document_layout_id == 'standard':
preview_css = self._get_css_for_preview(styles,
wizard.id)
ir_ui_view = wizard.env['ir.ui.view']
wizard.preview = ir_ui_view._render_template(
'base_advanced_report_templates.report_stock_standard_document',
{'company': wizard, 'preview_css': preview_css, })
elif wizard.stock_document_layout_id == 'attractive':
preview_css = self._get_css_for_preview(styles,
wizard.id)
ir_ui_view = wizard.env['ir.ui.view']
wizard.preview = ir_ui_view._render_template(
'base_advanced_report_templates.report_stock_attractive_document',
{'company': wizard, 'preview_css': preview_css, })
else:
wizard.preview = False
else:
wizard.preview = False

74
base_advanced_report_templates/model/doc_layout.py

@ -0,0 +1,74 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Bhagyadev KP (<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class DocLayout(models.Model):
"""Adding the fields for customization"""
_name = "doc.layout"
_description = 'Adding the fields for customization'
name = fields.Char(
string="Name",
help="Name"
)
base_color = fields.Char(
string="Base Color",
help="Background color for the invoice"
)
heading_text_color = fields.Char(
string="Heading text Color",
help="Heading Text color"
)
text_color = fields.Char(
string="Text Color",
help="Text color of items"
)
customer_text_color = fields.Char(
string="Customer Text Color",
help="Customer address text color"
)
company_text_color = fields.Char(
string="Company Text Color",
help="Company address Text color"
)
logo_position = fields.Selection(
selection=[('left', 'Left'), ('right', 'Right')],
string="Logo Position",
help="Company logo position"
)
customer_position = fields.Selection(
selection=[('left', 'Left'), ('right', 'Right')],
string="Customer position",
help="Customer address position"
)
company_position = fields.Selection(
selection=[('left', 'Left'), ('right', 'Right')],
string="Company Address Position",
help="Company address position"
)
company_id = fields.Many2one(
selection='res.company', string='Company', index=True,
default=lambda self: self.env.company,
help="Company name"
)

37
base_advanced_report_templates/model/purchase_order.py

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Bhagyadev KP (<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class PurchaseOrder(models.Model):
""" This model extends the 'purchase.order' model to include additional
fields related to document layout, specifically the 'theme_id' field."""
_inherit = 'purchase.order'
theme_id = fields.Many2one(
comodel_name='doc.layout',
related='company_id.purchase_document_layout_id',
string='Document Layout Theme',
help="This field is used to specify the document"
"layout theme associated with the company's"
" purchase orders. "
)

36
base_advanced_report_templates/model/purchase_order_line.py

@ -0,0 +1,36 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Bhagyadev KP (<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class PurchaseOrderLine(models.Model):
"""purchase orderline image"""
_inherit = 'purchase.order.line'
order_line_image = fields.Binary(
string="Image",
related="product_id.image_128",
help="This field represents the image "
"associated with the product on the"
" purchase order line."
)

57
base_advanced_report_templates/model/res_company.py

@ -0,0 +1,57 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Bhagyadev KP (<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class ResCompany(models.Model):
"""This model extends the 'res.company' model to include additional fields
related to document layouts for sales, purchases, accounts, and stock.
"""
_inherit = 'res.company'
sale_document_layout_id = fields.Many2one(
comodel_name="doc.layout",
string="Sale",
help="This field "
"specifies the document layout "
"associated with sales for the "
"company."
)
purchase_document_layout_id = fields.Many2one(
comodel_name="doc.layout",
string="Purchase",
help="This field specifies the document layout associated with "
"purchases for the company."
)
account_document_layout_id = fields.Many2one(
comodel_name="doc.layout",
string="Account",
help="Document layout "
"associated with accounting"
" for the company."
)
stock_document_layout_id = fields.Many2one(
comodel_name="doc.layout",
string="Stock",
help="Document "
"layout associated with stock"
)

44
base_advanced_report_templates/model/sale_order.py

@ -0,0 +1,44 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Bhagyadev KP (<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class SaleOrder(models.Model):
""" This model extends the 'sale.order' model to include additional fields
related to customer images and document layout themes."""
_inherit = 'sale.order'
customer_image = fields.Binary(
string="Image",
related="partner_id.image_1920",
help="This field represents the image "
"associated with the customer on the"
" sale order."
)
theme_id = fields.Many2one(
comodel_name='doc.layout',
related='company_id.sale_document_layout_id',
string='Document Layout Theme',
help="This field is used to specify the document"
"layout theme associated with the company's"
"sale orders."
)

35
base_advanced_report_templates/model/sale_order_line.py

@ -0,0 +1,35 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Bhagyadev KP (<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class SaleOrderLine(models.Model):
"""sale order line image"""
_inherit = 'sale.order.line'
order_line_image = fields.Binary(string="Image",
related="product_id.image_128",
help="This field represents the image "
"associated with the product on the "
"sale order line."
)

35
base_advanced_report_templates/model/stock_move.py

@ -0,0 +1,35 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Bhagyadev KP (<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class StockMove(models.Model):
"""Delivery report image"""
_inherit = 'stock.move'
order_line_image = fields.Binary(
string="Image",
related="product_id.image_128",
help="this field represents the image "
"associated with the product on the "
"stock move."
)

38
base_advanced_report_templates/model/stock_picking.py

@ -0,0 +1,38 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Bhagyadev KP (<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class StockPicking(models.Model):
"""
This model extends the 'stock.picking' model to include additional fields
related to document layout themes, specifically the 'theme_id' field.
"""
_inherit = 'stock.picking'
theme_id = fields.Many2one(
comodel_name='doc.layout',
related='company_id.stock_document_layout_id',
help="This field is used to specify the document"
"layout theme associated with the company's"
"stock pickings"
)

338
base_advanced_report_templates/report/account_attractive_templates.xml

@ -0,0 +1,338 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Account attractive report template-->
<template id="report_account_attractive_document">
<t t-if="o and 'company_id' in o">
<t t-set="company" t-value="o.company_id"/>
</t>
<t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"/>
</t>
<div class="header row mt32 mb32">
<div class="page-header col-12">
<div t-attf-class="pull-left">
<t t-if="company.logo">
<img t-if="company.logo" t-att-src="image_data_uri(company.logo)"
style="max-height: 80px;"/>
</t>
</div>
<div t-attf-class="pull-left"
t-attf-style="font:14px lucida-console,sans-serif; color:#{o.theme_id.company_text_color} !important;">
<span t-field="company.partner_id"/>
<br/>
<span t-field="company.partner_id.street"/>
<br/>
<span t-field="company.partner_id.street2"/>
<br/>
<span t-field="company.partner_id.city"/>
<br/>
<span t-field="company.partner_id.country_id"/>
<br/>
<span t-field="company.partner_id.vat"/>
<br/>
</div>
</div>
</div>
<t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context(lang=lang)"/>
<t t-set="forced_vat"
t-value="o.fiscal_position_id.foreign_vat"/> <!-- So that it appears in the footer of the report instead of the company VAT if it's set -->
<div class="mt-5">
<div class="page">
<table class="table table-sm o_main_table" name="invoice_line_table">
<thead t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr t-if="o.invoice_date">
<th name="th_description" t-if="o.move_type == 'out_invoice'" class="text-start">
<span>Invoice Date</span>
</th>
<th name="th_description" t-if="o.move_type == 'out_invoice'" class="text-start">
<span>Invoice Number</span>
</th>
<th name="th_quantity" t-elif="o.move_type == 'out_refund'" class="text-end">
<span>Credit Note Date</span>
</th>
<th name="th_quantity" t-elif="o.move_type == 'out_receipt'" class="text-end">
<span>Receipt Date</span>
</th>
<th name="th_quantity" t-elif="o.move_type == 'out_receipt'" class="text-end">
<span>Receipt Date</span>
</th>
<th name="th_quantity" t-elif="o.move_type == 'out_receipt'" class="text-end">
<span>Receipt Date</span>
</th>
<th name="th_quantity" t-else="" class="text-end">
<span>Date</span>
</th>
<th name="th_quantity"
t-if="o.invoice_date_due and o.move_type == 'out_invoice' and o.state == 'posted'"
class="text-end">
<span>Due Date</span>
</th>
<th name="th_quantity" t-if="o.invoice_origin" class="text-end">
<span>Source</span>
</th>
<th name="th_quantity" t-if="o.partner_id.ref" class="text-end">
<span>Customer Code</span>
</th>
<th name="th_quantity" t-if="o.ref" class="text-end">
<span>Reference</span>
</th>
</tr>
</thead>
<tbody>
<tr t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<td class="text-start">
<p class="m-0" t-field="o.invoice_date"/>
</td>
<td class="text-enf" t-if="o.payment_reference">
<p class="m-0" t-field="o.payment_reference"/>
</td>
<td t-if="o.invoice_date_due and o.move_type == 'out_invoice' and o.state == 'posted'"
class="text-end">
<p class="m-0" t-field="o.invoice_date_due"/>
</td>
<td t-if="o.invoice_origin" class="text-end">
<p class="m-0" t-field="o.invoice_origin"/>
</td>
<td t-if="o.partner_id.ref" class="text-end">
<p class="m-0" t-field="o.partner_id.ref"/>
</td>
<td t-if="o.ref" class="text-end">
<p class="m-0" t-field="o.ref"/>
</td>
</tr>
</tbody>
</table>
<br/>
<br/>
<br/>
<t t-set="display_discount" t-value="any(l.discount for l in o.invoice_line_ids)"/>
<table class="table table-sm o_main_table" name="invoice_line_table">
<thead t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr>
<th name="th_description" class="text-start">
<span>Description</span>
</th>
<th name="th_quantity" class="text-end">
<span>Quantity</span>
</th>
<th name="th_priceunit"
t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span>Unit Price</span>
</th>
<th name="th_price_unit" t-if="display_discount"
t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span>Disc.%</span>
</th>
<th name="th_taxes"
t-attf-class="text-start {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span>Taxes</span>
</th>
<th name="th_subtotal" class="text-end">
<span groups="account.group_show_line_subtotals_tax_excluded">Amount</span>
<span groups="account.group_show_line_subtotals_tax_included">Total Price</span>
</th>
</tr>
</thead>
<tbody class="invoice_tbody">
<t t-set="current_subtotal" t-value="0"/>
<t t-set="lines"
t-value="o.invoice_line_ids.sorted(key=lambda l: (-l.sequence, l.date, l.move_name, -l.id), reverse=True)"/>
<t t-foreach="lines" t-as="line">
<t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal"
groups="account.group_show_line_subtotals_tax_excluded"/>
<t t-set="current_subtotal" t-value="current_subtotal + line.price_total"
groups="account.group_show_line_subtotals_tax_included"/>
<tr t-att-class="'bg-200 fw-bold o_line_section' if line.display_type == 'line_section' else 'fst-italic o_line_note' if line.display_type == 'line_note' else ''"
t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<t t-if="line.display_type == 'product'" name="account_invoice_line_accountable">
<td name="account_invoice_line_name">
<span t-field="line.name" t-options="{'widget': 'text'}"/>
</td>
<td class="text-end">
<span t-field="line.quantity"/>
<span t-field="line.product_uom_id" groups="uom.group_uom"/>
</td>
<td t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span class="text-nowrap" t-field="line.price_unit"/>
</td>
<td t-if="display_discount"
t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span class="text-nowrap" t-field="line.discount"/>
</td>
<td t-attf-class="text-start {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span t-esc="', '.join(map(lambda x: (x.description or x.name), line.tax_ids))"
id="line_tax_ids"/>
</td>
<td class="text-end o_price_total">
<span class="text-nowrap" t-field="line.price_subtotal"
groups="account.group_show_line_subtotals_tax_excluded"/>
<span class="text-nowrap" t-field="line.price_total"
groups="account.group_show_line_subtotals_tax_included"/>
</td>
</t>
<t t-if="line.display_type == 'line_section'">
<td colspan="99">
<span t-field="line.name" t-options="{'widget': 'text'}"/>
</td>
<t t-set="current_section" t-value="line"/>
<t t-set="current_subtotal" t-value="0"/>
</t>
<t t-if="line.display_type == 'line_note'">
<td colspan="99">
<span t-field="line.name" t-options="{'widget': 'text'}"/>
</td>
</t>
</tr>
<t t-if="current_section and (line_last or lines[line_index+1].display_type == 'line_section')">
<tr class="is-subtotal text-end">
<td colspan="99">
<strong class="mr16">Subtotal</strong>
<span
t-esc="current_subtotal"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'
/>
</td>
</tr>
</t>
</t>
</tbody>
</table>
<div class="clearfix mb-4">
<div id="total" class="row">
<div t-attf-class="#{'col-6' if report_type != 'html' else 'col-sm-7 col-md-6'} ms-auto">
<table class="table table-sm"
t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<!--Tax totals-->
<t t-call="account.document_tax_totals">
<t t-set="tax_totals" t-value="o.tax_totals"/>
<t t-set="currency" t-value="o.currency_id"/>
</t>
<!--Payments-->
<t t-if="print_with_payments">
<t t-if="o.payment_state != 'invoicing_legacy'">
<t t-set="payments_vals"
t-value="o.sudo().invoice_payments_widget and o.sudo().invoice_payments_widget['content'] or []"/>
<t t-foreach="payments_vals" t-as="payment_vals">
<tr t-if="payment_vals['is_exchange'] == 0">
<td>
<i class="oe_form_field text-end oe_payment_label">Paid on
<t t-esc="payment_vals['date']"
t-options='{"widget": "date"}'/>
</i>
</td>
<td class="text-end">
<span t-esc="payment_vals['amount']"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
</tr>
</t>
<t t-if="len(payments_vals) > 0">
<tr class="border-black" t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<td>
<strong>Amount Due</strong>
</td>
<td class="text-end">
<span t-field="o.amount_residual"/>
</td>
</tr>
</t>
</t>
</t>
</table>
</div>
</div>
</div>
</div>
<div t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<h2 t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<span t-if="o.move_type == 'out_invoice' and o.state == 'posted'">Invoice</span>
<span t-if="o.move_type == 'out_invoice' and o.state == 'draft'">Draft Invoice</span>
<span t-if="o.move_type == 'out_invoice' and o.state == 'cancel'">Cancelled Invoice</span>
<span t-if="o.move_type == 'out_refund'">Credit Note</span>
<span t-if="o.move_type == 'in_refund'">Vendor Credit Note</span>
<span t-if="o.move_type == 'in_invoice'">Vendor Bill</span>
<span t-if="o.name != '/'" t-field="o.name"/>
</h2>
<strong>Customer</strong>
<span class="mb-0" t-field="o.partner_id"
t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'/>
<div t-if="o.partner_id.vat">
<t t-if="o.company_id.account_fiscal_country_id.vat_label"
t-esc="o.company_id.account_fiscal_country_id.vat_label" id="inv_tax_id_label"/>
<t t-else="">Tax ID</t>:
<span t-field="o.partner_id.vat"/>
</div>
</div>
<div t-if="o.move_type in ('out_invoice', 'in_refund') and o.payment_reference"
t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};"
name="payment_communication" class="mt-4">
Please use the following communication for your payment :
<b>
<span t-field="o.payment_reference"/>
</b>
<div class="col-auto col-3 mw-100 mb-2" t-if="o.invoice_payment_term_id.note"
name="reference">
<t t-set="payment_term_details" t-value="o.payment_term_details"/>
<div t-field="o.invoice_payment_term_id.note" name="payment_term"/>
</div>
</div>
<t t-if="o.invoice_payment_term_id.display_on_invoice and payment_term_details">
<div t-if='o.show_payment_term_details' id="total_payment_term_details_table" class="row">
<div t-attf-class="#{'col-7' if report_type != 'html' else 'col-sm-7 col-md-6'} mt-2 mb-2">
<table class="table table-sm" style="page-break-inside: avoid;">
<th class="border-black text-start">
Due Date
</th>
<th class="border-black text-end">
Amount Due
</th>
<th t-if="o.show_discount_details" class="border-black text-end">
Discount
</th>
<t t-foreach="payment_term_details" t-as="term">
<tr t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<td t-esc="term.get('date')" class="text-start"/>
<td t-options='{"widget": "monetary", "display_currency": o.currency_id}'
t-esc="term.get('amount')" class="text-end"/>
<td t-if="term.get('discount_date')" class="text-end">
<span t-options='{"widget": "monetary", "display_currency": o.currency_id}'
t-esc="term.get('discount_amount_currency')"/>
if paid before
<span t-esc="term.get('discount_date')"/>
</td>
</tr>
</t>
</table>
</div>
</div>
</t>
<div t-if="not is_html_empty(o.narration)" name="comment">
<span t-attf-style="color:#{o.theme_id.customer_text_color} !important;"
t-field="o.narration"/>
</div>
<p t-if="not is_html_empty(o.fiscal_position_id.note)" name="note">
<span t-attf-style="color:#{o.theme_id.customer_text_color} !important;"
t-field="o.fiscal_position_id.note"/>
</p>
<p t-if="o.invoice_incoterm_id" name="incoterm">
<strong>Incoterm:</strong>
<span t-attf-style="color:#{o.theme_id.customer_text_color} !important;"
t-field="o.invoice_incoterm_id.code"/>
-
<span t-attf-style="color:#{o.theme_id.customer_text_color} !important;"
t-field="o.invoice_incoterm_id.name"/>
</p>
<div id="qrcode" t-if="o.display_qr_code and o.amount_residual > 0">
<p t-if="qr_code_urls.get(o.id)">
<strong class="text-center">Scan me with your banking app.</strong>
<br/>
<br/>
<img class="border border-dark rounded" t-att-src="qr_code_urls[o.id]"/>
</p>
</div>
</div>
</t>
</template>
</odoo>

389
base_advanced_report_templates/report/account_modern_templates.xml

@ -0,0 +1,389 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Account report modern template -->
<template id="report_account_modern_document">
<t t-if="o and 'company_id' in o">
<t t-set="company" t-value="o.company_id"/>
</t>
<t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"/>
</t>
<div class="header row mt32 mb32">
<div class="page-header col-12">
<div t-attf-class="pull-left">
<t t-if="company.logo">
<img t-if="company.logo"
t-att-src="image_data_uri(company.logo)"
style="max-height: 80px;"/>
</t>
</div>
<div t-attf-class="pull-left"
t-attf-style="font:14px lucida-console,sans-serif; color:#{o.theme_id.company_text_color} !important;">
<span t-field="company.partner_id"/>
<br/>
<span t-field="company.partner_id.street"/>
<br/>
<span t-field="company.partner_id.street2"/>
<br/>
<span t-field="company.partner_id.city"/>
<br/>
<span t-field="company.partner_id.country_id"/>
<br/>
<span t-field="company.partner_id.vat"/>
<br/>
</div>
</div>
</div>
<t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context(lang=lang)"/>
<t t-set="forced_vat"
t-value="o.fiscal_position_id.foreign_vat"/> <!-- So that it appears in the footer of the report instead of the company VAT if it's set -->
<table class="table table-sm o_main_table">
<thead t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<td>
<span t-if="o.move_type == 'out_invoice' and o.state == 'posted'">
Invoice
</span>
<span t-if="o.move_type == 'out_invoice' and o.state == 'draft'">
Draft Invoice
</span>
<span t-if="o.move_type == 'out_invoice' and o.state == 'cancel'">
Cancelled Invoice
</span>
<span t-if="o.move_type == 'out_refund'">Credit
Note
</span>
<span t-if="o.move_type == 'in_refund'">Vendor
Credit Note
</span>
<span t-if="o.move_type == 'in_invoice'">Vendor
Bill
</span>
<span t-if="o.name != '/'" t-field="o.name"/>
</td>
</tr>
<tr>
<th name="th_description"
class="text-start">
<span>Customer</span>
</th>
<th name="th_quantity"
t-if="o.partner_shipping_id and (o.partner_shipping_id != o.partner_id)"
class="text-end">
<span>Shipping Address</span>
</th>
</tr>
</thead>
<tbody>
<tr t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<td>
<span class="mb-0" t-field="o.partner_id"
t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'/>
<div t-if="o.partner_id.vat">
<t t-if="o.company_id.account_fiscal_country_id.vat_label"
t-esc="o.company_id.account_fiscal_country_id.vat_label"
id="inv_tax_id_label"/>
<t t-else="">Tax ID</t>:
<span t-field="o.partner_id.vat"/>
</div>
</td>
<td>
<t t-set="information_block">
<div groups="account.group_delivery_invoice_address"
name="shipping_address_block">
<div t-field="o.partner_shipping_id"
t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'/>
</div>
</t>
</td>
</tr>
</tbody>
</table>
<div class="mt-5">
<div class="page">
<div id="informations" class="mt-4 mb-4"
t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<div class="col-auto col-3 mw-100 mb-2"
t-if="o.invoice_date" name="invoice_date">
<t t-if="o.move_type == 'out_invoice'">
<strong>Invoice Date:</strong>
</t>
<t t-elif="o.move_type == 'out_refund'">
<strong>Credit Note Date:</strong>
</t>
<t t-elif="o.move_type == 'out_receipt'">
<strong>Receipt Date:</strong>
</t>
<t t-else="">
<strong>Date:</strong>
</t>
<p class="m-0" t-field="o.invoice_date"/>
</div>
<div class="col-auto col-3 mw-100 mb-2"
t-if="o.invoice_date_due and o.move_type == 'out_invoice' and o.state == 'posted'"
name="due_date">
<strong>Due Date:</strong>
<p class="m-0" t-field="o.invoice_date_due"/>
</div>
<div class="col-auto col-3 mw-100 mb-2"
t-if="o.invoice_origin" name="origin">
<strong>Source:</strong>
<p class="m-0" t-field="o.invoice_origin"/>
</div>
<div class="col-auto col-3 mw-100 mb-2"
t-if="o.partner_id.ref" name="customer_code">
<strong>Customer Code:</strong>
<p class="m-0" t-field="o.partner_id.ref"/>
</div>
<div class="col-auto col-3 mw-100 mb-2" t-if="o.ref"
name="reference">
<strong>Reference:</strong>
<p class="m-0" t-field="o.ref"/>
</div>
</div>
<t t-set="display_discount"
t-value="any(l.discount for l in o.invoice_line_ids)"/>
<table class="table table-sm o_main_table"
name="invoice_line_table">
<thead t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};"
class="col-12">
<tr>
<th name="th_description" class="text-start">
<span>Description</span>
</th>
<th name="th_quantity" class="text-end">
<span>Quantity</span>
</th>
<th name="th_priceunit"
t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span>Unit Price</span>
</th>
<th name="th_price_unit" t-if="display_discount"
t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span>Disc.%</span>
</th>
<th name="th_taxes"
t-attf-class="text-start {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span>Taxes</span>
</th>
<th name="th_subtotal" class="text-end">
<span groups="account.group_show_line_subtotals_tax_excluded">
Amount
</span>
<span groups="account.group_show_line_subtotals_tax_included">
Total Price
</span>
</th>
</tr>
</thead>
<tbody class="invoice_tbody">
<t t-set="current_subtotal" t-value="0"/>
<t t-set="lines"
t-value="o.invoice_line_ids.sorted(key=lambda l: (-l.sequence, l.date, l.move_name, -l.id), reverse=True)"/>
<t t-foreach="lines" t-as="line">
<t t-set="current_subtotal"
t-value="current_subtotal + line.price_subtotal"
groups="account.group_show_line_subtotals_tax_excluded"/>
<t t-set="current_subtotal"
t-value="current_subtotal + line.price_total"
groups="account.group_show_line_subtotals_tax_included"/>
<tr t-attf-style="color:#{o.theme_id.customer_text_color} !important;"
t-att-class="'bg-200 fw-bold o_line_section' if line.display_type == 'line_section' else 'fst-italic o_line_note' if line.display_type == 'line_note' else ''">
<t t-if="line.display_type == 'product'"
name="account_invoice_line_accountable">
<td name="account_invoice_line_name">
<span t-field="line.name"
t-options="{'widget': 'text'}"/>
</td>
<td class="text-end">
<span t-field="line.quantity"/>
<span t-field="line.product_uom_id"
groups="uom.group_uom"/>
</td>
<td t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span class="text-nowrap"
t-field="line.price_unit"/>
</td>
<td t-if="display_discount"
t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span class="text-nowrap"
t-field="line.discount"/>
</td>
<td t-attf-class="text-start {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span t-esc="', '.join(map(lambda x: (x.description or x.name), line.tax_ids))"
id="line_tax_ids"/>
</td>
<td class="text-end o_price_total">
<span class="text-nowrap"
t-field="line.price_subtotal"
groups="account.group_show_line_subtotals_tax_excluded"/>
<span class="text-nowrap"
t-field="line.price_total"
groups="account.group_show_line_subtotals_tax_included"/>
</td>
</t>
<t t-if="line.display_type == 'line_section'">
<td colspan="99">
<span t-field="line.name"
t-options="{'widget': 'text'}"/>
</td>
<t t-set="current_section"
t-value="line"/>
<t t-set="current_subtotal"
t-value="0"/>
</t>
<t t-if="line.display_type == 'line_note'">
<td colspan="99">
<span t-field="line.name"
t-options="{'widget': 'text'}"/>
</td>
</t>
</tr>
<t t-if="current_section and (line_last or lines[line_index+1].display_type == 'line_section')">
<tr class="is-subtotal text-end">
<td colspan="99">
<strong class="mr16">Subtotal
</strong>
<span
t-esc="current_subtotal"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'
/>
</td>
</tr>
</t>
</t>
</tbody>
</table>
<div class="clearfix mb-4">
<div id="total" class="row">
<div t-attf-class="#{'col-6' if report_type != 'html' else 'col-sm-7 col-md-6'} ms-auto">
<table class="table table-sm"
t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<!--Tax totals-->
<t t-call="account.document_tax_totals">
<t t-set="tax_totals" t-value="o.tax_totals"/>
<t t-set="currency" t-value="o.currency_id"/>
</t>
<!--Payments-->
<t t-if="print_with_payments">
<t t-if="o.payment_state != 'invoicing_legacy'">
<t t-set="payments_vals"
t-value="o.sudo().invoice_payments_widget and o.sudo().invoice_payments_widget['content'] or []"/>
<t t-foreach="payments_vals"
t-as="payment_vals">
<tr t-if="payment_vals['is_exchange'] == 0">
<td>
<i class="oe_form_field text-end oe_payment_label">
Paid on
<t t-esc="payment_vals['date']"
t-options='{"widget": "date"}'/>
</i>
</td>
<td class="text-end">
<span t-esc="payment_vals['amount']"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
</tr>
</t>
<t t-if="len(payments_vals) > 0">
<tr class="border-black">
<td>
<strong>Amount Due
</strong>
</td>
<td class="text-end">
<span t-field="o.amount_residual"/>
</td>
</tr>
</t>
</t>
</t>
</table>
</div>
</div>
</div>
</div>
<div t-if="o.move_type in ('out_invoice', 'in_refund') and o.payment_reference"
t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};"
name="payment_communication" class="mt-4">
Please use the following communication for your payment :
<b>
<span t-field="o.payment_reference"/>
</b>
<div class="col-auto col-3 mw-100 mb-2"
t-if="o.invoice_payment_term_id.note"
name="reference">
<t t-set="payment_term_details"
t-value="o.payment_term_details"/>
<div t-field="o.invoice_payment_term_id.note"
name="payment_term"/>
</div>
</div>
<t t-if="o.invoice_payment_term_id.display_on_invoice and payment_term_details">
<div t-if='o.show_payment_term_details'
id="total_payment_term_details_table" class="row">
<div t-attf-class="#{'col-7' if report_type != 'html' else 'col-sm-7 col-md-6'} mt-2 mb-2">
<table class="table table-sm"
style="page-break-inside: avoid;">
<th class="border-black text-start">
Due Date
</th>
<th class="border-black text-end">
Amount Due
</th>
<th t-if="o.show_discount_details"
class="border-black text-end">
Discount
</th>
<t t-foreach="payment_term_details" t-as="term">
<tr>
<td t-esc="term.get('date')"
class="text-start"/>
<td t-options='{"widget": "monetary", "display_currency": o.currency_id}'
t-esc="term.get('amount')"
class="text-end"/>
<td t-if="term.get('discount_date')"
class="text-end">
<span t-options='{"widget": "monetary", "display_currency": o.currency_id}'
t-esc="term.get('discount_amount_currency')"/>
if paid before
<span t-esc="term.get('discount_date')"/>
</td>
</tr>
</t>
</table>
</div>
</div>
</t>
<div t-if="not is_html_empty(o.narration)" name="comment">
<span t-field="o.narration"/>
</div>
<p t-if="not is_html_empty(o.fiscal_position_id.note)"
name="note">
<span t-field="o.fiscal_position_id.note"/>
</p>
<p t-if="o.invoice_incoterm_id" name="incoterm">
<strong>Incoterm:</strong>
<span t-field="o.invoice_incoterm_id.code"/>
-
<span t-field="o.invoice_incoterm_id.name"/>
</p>
<div id="qrcode"
t-if="o.display_qr_code and o.amount_residual > 0">
<p t-if="qr_code_urls.get(o.id)">
<strong class="text-center">Scan me with your banking
app.
</strong>
<br/>
<br/>
<img class="border border-dark rounded"
t-att-src="qr_code_urls[o.id]"/>
</p>
</div>
</div>
</t>
</template>
</odoo>

263
base_advanced_report_templates/report/account_standrd_templates.xml

@ -0,0 +1,263 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Account report standard template -->
<template id="report_account_standard_document">
<t t-if="o and 'company_id' in o">
<t t-set="company" t-value="o.company_id"/>
</t>
<t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"/>
</t>
<div class="header row mt32 mb32">
<div class="page-header col-12">
<div t-attf-class="pull-left">
<t t-if="company.logo">
<img t-if="company.logo"
t-att-src="image_data_uri(company.logo)"
style="max-height: 80px;"/>
</t>
</div>
<div t-attf-class="pull-left" t-attf-style="font:14px lucida-console,sans-serif; color:#{o.theme_id.company_text_color} !important;">
<span t-field="company.partner_id"/>
<br/>
<span t-field="company.partner_id.street"/>
<br/>
<span t-field="company.partner_id.street2"/>
<br/>
<span t-field="company.partner_id.city"/>
<br/>
<span t-field="company.partner_id.country_id"/>
<br/>
<span t-field="company.partner_id.vat"/>
<br/>
</div>
</div>
</div>
<t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context(lang=lang)"/>
<t t-set="forced_vat" t-value="o.fiscal_position_id.foreign_vat"/> <!-- So that it appears in the footer of the report instead of the company VAT if it's set -->
<div class="mt-5">
<div class="page">
<h1 t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<span t-if="o.move_type == 'out_invoice' and o.state == 'posted'">
Invoice
</span>
<span t-if="o.move_type == 'out_invoice' and o.state == 'draft'">
Draft Invoice
</span>
<span t-if="o.move_type == 'out_invoice' and o.state == 'cancel'">
Cancelled Invoice
</span>
<span t-if="o.move_type == 'out_refund'">Credit Note
</span>
<span t-if="o.move_type == 'in_refund'">Vendor Credit
Note
</span>
<span t-if="o.move_type == 'in_invoice'">Vendor Bill
</span>
<span t-if="o.name != '/'" t-field="o.name"/>
<div id="informations" class="row mt-4 mb-4">
<div class="col-auto col-3 mw-100 mb-2" t-if="o.invoice_date" name="invoice_date">
<t t-if="o.move_type == 'out_invoice'">
<strong>Invoice Date:</strong>
</t>
<t t-elif="o.move_type == 'out_refund'">
<strong>Credit Note Date:</strong>
</t>
<t t-elif="o.move_type == 'out_receipt'">
<strong>Receipt Date:</strong>
</t>
<t t-else="">
<strong>Date:</strong>
</t>
<p class="m-0" t-field="o.invoice_date"/>
</div>
<div class="col-auto col-3 mw-100 mb-2" t-if="o.invoice_date_due and o.move_type == 'out_invoice' and o.state == 'posted'" name="due_date">
<strong>Due Date:</strong>
<p class="m-0" t-field="o.invoice_date_due"/>
</div>
<div class="col-auto col-3 mw-100 mb-2" t-if="o.invoice_origin" name="origin">
<strong>Source:</strong>
<p class="m-0" t-field="o.invoice_origin"/>
</div>
<div class="col-auto col-3 mw-100 mb-2" t-if="o.partner_id.ref" name="customer_code">
<strong>Customer Code:</strong>
<p class="m-0" t-field="o.partner_id.ref"/>
</div>
<div class="col-auto col-3 mw-100 mb-2" t-if="o.ref" name="reference">
<strong>Reference:</strong>
<p class="m-0" t-field="o.ref"/>
</div>
<div class="col-auto col-3 mw-100 mb-2" t-if="o.invoice_payment_term_id.note" name="reference">
<t t-set="payment_term_details" t-value="o.payment_term_details"/>
<div t-field="o.invoice_payment_term_id.note" name="payment_term"/>
</div>
<div class="col-auto col-3 mw-100 mb-2" t-if="o.invoice_user_id" name="reference">
<t t-set="payment_term_details" t-value="o.invoice_user_id"/>
<strong>SalesPerson:</strong>
<div t-field="o.invoice_user_id.name" name="payment_term"/>
</div>
</div>
<strong>Customer</strong>
</h1>
<div class="offset-col-6 col-6" name="no_shipping">
<span class="mb-0" t-field="o.partner_id" t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'/>
<div t-if="o.partner_id.vat">
<t t-if="o.company_id.account_fiscal_country_id.vat_label" t-esc="o.company_id.account_fiscal_country_id.vat_label" id="inv_tax_id_label"/>
<t t-else="">Tax ID</t>:
<span t-field="o.partner_id.vat"/>
</div>
</div>
<t t-set="display_discount" t-value="any(l.discount for l in o.invoice_line_ids)"/>
<table class="table table-sm o_main_table" name="invoice_line_table">
<thead t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr>
<th name="th_description" class="text-start">
<span>Description</span>
</th>
<th name="th_quantity" class="text-end">
<span>Quantity</span>
</th>
<th name="th_priceunit" t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span>Unit Price</span>
</th>
<th name="th_price_unit" t-if="display_discount" t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span>Disc.%</span>
</th>
<th name="th_taxes" t-attf-class="text-start {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span>Taxes</span>
</th>
<th name="th_subtotal" class="text-end">
<span groups="account.group_show_line_subtotals_tax_excluded">
Amount
</span>
<span groups="account.group_show_line_subtotals_tax_included">
Total Price
</span>
</th>
</tr>
</thead>
<tbody class="invoice_tbody">
<t t-set="current_subtotal" t-value="0"/>
<t t-set="lines" t-value="o.invoice_line_ids.sorted(key=lambda l: (-l.sequence, l.date, l.move_name, -l.id), reverse=True)"/>
<t t-foreach="lines" t-as="line">
<t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal" groups="account.group_show_line_subtotals_tax_excluded"/>
<t t-set="current_subtotal" t-value="current_subtotal + line.price_total" groups="account.group_show_line_subtotals_tax_included"/>
<tr t-attf-style="color:#{o.theme_id.customer_text_color} !important;" t-att-class="'bg-200 fw-bold o_line_section' if line.display_type == 'line_section' else 'fst-italic o_line_note' if line.display_type == 'line_note' else ''">
<t t-if="line.display_type == 'product'" name="account_invoice_line_accountable">
<td name="account_invoice_line_name">
<span t-field="line.name" t-options="{'widget': 'text'}"/>
</td>
<td class="text-end">
<span t-field="line.quantity"/>
<span t-field="line.product_uom_id" groups="uom.group_uom"/>
</td>
<td t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span class="text-nowrap" t-field="line.price_unit"/>
</td>
<td t-if="display_discount"
t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span class="text-nowrap" t-field="line.discount"/>
</td>
<td t-attf-class="text-start {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span t-esc="', '.join(map(lambda x: (x.description or x.name), line.tax_ids))" id="line_tax_ids"/>
</td>
<td class="text-end o_price_total">
<span class="text-nowrap" t-field="line.price_subtotal" groups="account.group_show_line_subtotals_tax_excluded"/>
<span class="text-nowrap" t-field="line.price_total" groups="account.group_show_line_subtotals_tax_included"/>
</td>
</t>
<t t-if="line.display_type == 'line_section'">
<td colspan="99">
<span t-field="line.name" t-options="{'widget': 'text'}"/>
</td>
<t t-set="current_section" t-value="line"/>
<t t-set="current_subtotal" t-value="0"/>
</t>
<t t-if="line.display_type == 'line_note'">
<td colspan="99">
<span t-field="line.name" t-options="{'widget': 'text'}"/>
</td>
</t>
</tr>
<t t-if="current_section and (line_last or lines[line_index+1].display_type == 'line_section')">
<tr class="is-subtotal text-end">
<td colspan="99">
<strong class="mr16">Subtotal</strong>
<span t-esc="current_subtotal" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
</tr>
</t>
</t>
</tbody>
</table>
<div class="clearfix mb-4">
<div id="total" class="row">
<div t-attf-class="#{'col-6' if report_type != 'html' else 'col-sm-7 col-md-6'} ms-auto">
<table class="table table-sm" t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<!--Tax totals-->
<t t-call="account.document_tax_totals">
<t t-set="tax_totals" t-value="o.tax_totals"/>
<t t-set="currency" t-value="o.currency_id"/>
</t>
<!--Payments-->
<t t-if="print_with_payments">
<t t-if="o.payment_state != 'invoicing_legacy'">
<t t-set="payments_vals" t-value="o.sudo().invoice_payments_widget and o.sudo().invoice_payments_widget['content'] or []"/>
<t t-foreach="payments_vals" t-as="payment_vals">
<tr t-if="payment_vals['is_exchange'] == 0">
<td>
<i class="oe_form_field text-end oe_payment_label">
Paid on
<t t-esc="payment_vals['date']" t-options='{"widget": "date"}'/>
</i>
</td>
<td class="text-end">
<span t-esc="payment_vals['amount']" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
</tr>
</t>
<t t-if="len(payments_vals) > 0">
<tr class="border-black">
<td>
<strong>Amount Due
</strong>
</td>
<td class="text-end">
<span t-field="o.amount_residual"/>
</td>
</tr>
</t>
</t>
</t>
</table>
</div>
</div>
</div>
</div>
<div t-if="not is_html_empty(o.narration)" name="comment">
<span t-field="o.narration"/>
</div>
<p t-if="not is_html_empty(o.fiscal_position_id.note)"
name="note">
<span t-field="o.fiscal_position_id.note"/>
</p>
<p t-if="o.invoice_incoterm_id" name="incoterm">
<strong>Incoterm:</strong>
<span t-field="o.invoice_incoterm_id.code"/>
-
<span t-field="o.invoice_incoterm_id.name"/>
</p>
<div id="qrcode"
t-if="o.display_qr_code and o.amount_residual > 0">
<p t-if="qr_code_urls.get(o.id)">
<strong class="text-center">Scan me with your banking app.</strong>
<br/>
<br/>
<img class="border border-dark rounded" t-att-src="qr_code_urls[o.id]"/>
</p>
</div>
</div>
</t>
</template>
</odoo>

280
base_advanced_report_templates/report/account_traditional_templates.xml

@ -0,0 +1,280 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="account.account_invoices" model="ir.actions.report">
<field name="name">Invoices</field>
<field name="model">account.move</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">base_advanced_report_templates.report_invoice_custom</field>
<field name="report_file">base_advanced_report_templates.report_invoice_custom</field>
<field name="print_report_name">(object._get_report_base_filename())</field>
<field name="attachment">(object.state == 'posted') and ((object.name or 'INV').replace('/','_')+'.pdf')</field>
<field name="binding_model_id" ref="model_account_move"/>
<field name="binding_type">report</field>
<field name="groups_id" eval="[(4, ref('account.group_account_invoice')),(4, ref('account.group_account_readonly'))]"/>
</record>
<!-- Custom invoice report template-->
<template id="report_invoice_custom">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-set="lang" t-value="o.partner_id.lang"/>
<t t-if="o._get_name_invoice_report() == 'base_advanced_report_templates.report_invoice_custom'"/>
<t t-if="o.theme_id.name=='Traditional'">
<t t-call="base_advanced_report_templates.report_account_traditional_document" t-lang="ang"/>
</t>
<t t-elif="o.theme_id.name=='Standard'">
<t t-call="base_advanced_report_templates.report_account_standard_document" t-lang="lang"/>
</t>
<t t-elif="o.theme_id.name=='Modern'">
<t t-call="base_advanced_report_templates.report_account_modern_document" t-lang="lang"/>
</t>
<t t-elif="o.theme_id.name=='Attractive'">
<t t-call="base_advanced_report_templates.report_account_attractive_document" t-lang="lang"/>
</t>
<t t-else="">
<t t-call="account.report_invoice_document" t-lang="lang"/>
</t>
</t>
</t>
</template>
<!-- Account report traditional template-->
<template id="report_account_traditional_document">
<t t-if="o and 'company_id' in o">
<t t-set="company" t-value="o.company_id"/>
</t>
<t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"/>
</t>
<div class="header row mt32 mb32">
<div class="page-header col-12">
<div t-attf-class="pull-left">
<t t-if="company.logo">
<img t-if="company.logo" t-att-src="image_data_uri(company.logo)" style="max-height: 80px;"/>
</t>
</div>
<div t-attf-class="pull-left" t-attf-style="font:14px lucida-console,sans-serif; color:#{o.theme_id.company_text_color} !important;">
<span t-field="company.partner_id"/>
<br/>
<span t-field="company.partner_id.street"/>
<br/>
<span t-field="company.partner_id.street2"/>
<br/>
<span t-field="company.partner_id.city"/>
<br/>
<span t-field="company.partner_id.country_id"/>
<br/>
<span t-field="company.partner_id.vat"/>
<br/>
</div>
</div>
</div>
<t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context(lang=lang)"/>
<t t-set="forced_vat" t-value="o.fiscal_position_id.foreign_vat"/> <!-- So that it appears in the footer of the report instead of the company VAT if it's set -->
<div class="mt-5">
<div class="page">
<h1 style="size:200px;">
<span t-if="o.move_type == 'out_invoice' and o.state == 'posted'">
Invoice
</span>
<span t-if="o.move_type == 'out_invoice' and o.state == 'draft'">
Draft Invoice
</span>
<span t-if="o.move_type == 'out_invoice' and o.state == 'cancel'">
Cancelled Invoice
</span>
<span t-if="o.move_type == 'out_refund'">Credit Note
</span>
<span t-if="o.move_type == 'in_refund'">Vendor Credit
Note
</span>
<span t-if="o.move_type == 'in_invoice'">Vendor Bill
</span>
<span t-if="o.name != '/'" t-field="o.name"/>
</h1>
<table class="table table-sm o_main_table" name="invoice_line_table">
<thead t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};" class="col-12">
<tr>
<th class="text-start">
Customer
</th>
<th t-if="o.move_type == 'out_invoice'" name="th_description">
Invoice Date:
</th>
<th t-if="o.move_type == 'out_refund'" name="th_description">
Credit Note Date
</th>
<th t-if="o.move_type == 'out_receipt'" name="th_description">
</th>
<th t-if="o.move_type == 'out_refund'" name="th_description">
Receipt Date
</th>
<th t-if="o.move_type == 'out_refund'" name="th_description">
Receipt Date
</th>
<th t-else="" name="th_description">
Date
</th>
<th t-if="o.ref" name="th_description">
Reference
</th>
</tr>
</thead>
<tbody>
<tr t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<td>
<address class="mb-0" t-field="o.partner_id" t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'/>
<div t-if="o.partner_id.vat">
<t t-if="o.company_id.account_fiscal_country_id.vat_label" t-esc="o.company_id.account_fiscal_country_id.vat_label" id="inv_tax_id_label"/>
<t t-else="">Tax ID</t>:
<span t-field="o.partner_id.vat"/>
</div>
</td>
<td class="text-end">
<p class="m-0" t-field="o.invoice_date"/>
</td>
<td class="text-end">
<p class="m-0" t-field="o.invoice_date_due"/>
</td>
<td class="text-end">
<p class="m-0" t-field="o.ref"/>
</td>
</tr>
</tbody>
</table>
<t t-set="display_discount" t-value="any(l.discount for l in o.invoice_line_ids)"/>
<table class="table table-sm o_main_table" name="invoice_line_table">
<thead t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr>
<th name="th_description" class="text-start">
<span>Description</span>
</th>
<th name="th_product" class="text-start">
<span>Product</span>
</th>
<th name="th_quantity" class="text-end">
<span>Quantity</span>
</th>
<th name="th_priceunit" t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span>Unit Price</span>
</th>
<th name="th_price_unit" t-if="display_discount" t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span>Disc.%</span>
</th>
<th name="th_taxes" t-attf-class="text-start {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span>Taxes</span>
</th>
<th name="th_subtotal" class="text-end">
<span groups="account.group_show_line_subtotals_tax_excluded">
Amount
</span>
<span groups="account.group_show_line_subtotals_tax_included">
Total Price
</span>
</th>
</tr>
</thead>
<tbody class="invoice_tbody">
<t t-set="current_subtotal" t-value="0"/>
<t t-set="lines" t-value="o.invoice_line_ids.sorted(key=lambda l: (-l.sequence, l.date, l.move_name, -l.id), reverse=True)"/>
<t t-foreach="lines" t-as="line">
<t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal" groups="account.group_show_line_subtotals_tax_excluded"/>
<t t-set="current_subtotal" t-value="current_subtotal + line.price_total" groups="account.group_show_line_subtotals_tax_included"/>
<tr t-attf-style="color:#{o.theme_id.customer_text_color} !important;" t-att-class="'bg-200 fw-bold o_line_section' if line.display_type == 'line_section' else 'fst-italic o_line_note' if line.display_type == 'line_note' else ''">
<t t-if="line.display_type == 'product'" name="account_invoice_line_accountable">
<td name="account_invoice_line_name">
<span t-field="line.name" t-options="{'widget': 'text'}"/>
</td>
<td name="td_image">
<span t-field="line.order_line_image" t-options="{'widget': 'image'}"/>
</td>
<td class="text-end">
<span t-field="line.quantity"/>
<span t-field="line.product_uom_id" groups="uom.group_uom"/>
</td>
<td t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span class="text-nowrap" t-field="line.price_unit"/>
</td>
<td t-if="display_discount" t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span class="text-nowrap" t-field="line.discount"/>
</td>
<td t-attf-class="text-start {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span t-esc="', '.join(map(lambda x: (x.description or x.name), line.tax_ids))" id="line_tax_ids"/>
</td>
<td class="text-end o_price_total">
<span class="text-nowrap" t-field="line.price_subtotal" groups="account.group_show_line_subtotals_tax_excluded"/>
<span class="text-nowrap" t-field="line.price_total" groups="account.group_show_line_subtotals_tax_included"/>
</td>
</t>
<t t-if="line.display_type == 'line_section'">
<td colspan="99">
<span t-field="line.name" t-options="{'widget': 'text'}"/>
</td>
<t t-set="current_section" t-value="line"/>
<t t-set="current_subtotal" t-value="0"/>
</t>
<t t-if="line.display_type == 'line_note'">
<td colspan="99">
<span t-field="line.name" t-options="{'widget': 'text'}"/>
</td>
</t>
</tr>
<t t-if="current_section and (line_last or lines[line_index+1].display_type == 'line_section')">
<tr class="is-subtotal text-end">
<td colspan="99">
<strong class="mr16">Subtotal
</strong>
<span t-esc="current_subtotal" t-options='{"widget": "monetary", "display_currency": o.currency_id}'
/>
</td>
</tr>
</t>
</t>
</tbody>
</table>
<div class="clearfix mb-4">
<div id="total" class="row">
<div t-attf-class="#{'col-6' if report_type != 'html' else 'col-sm-7 col-md-6'} ms-auto">
<table class="table table-sm" t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<!--Tax totals-->
<t t-call="account.document_tax_totals">
<t t-set="tax_totals" t-value="o.tax_totals"/>
<t t-set="currency" t-value="o.currency_id"/>
</t>
<!--Payments-->
<t t-if="print_with_payments">
<t t-if="o.payment_state != 'invoicing_legacy'">
<t t-set="payments_vals" t-value="o.sudo().invoice_payments_widget and o.sudo().invoice_payments_widget['content'] or []"/>
<t t-foreach="payments_vals" t-as="payment_vals">
<tr t-if="payment_vals['is_exchange'] == 0">
<td>
<i class="oe_form_field text-end oe_payment_label">
Paid on
<t t-esc="payment_vals['date']" t-options='{"widget": "date"}'/>
</i>
</td>
<td class="text-end">
<span t-esc="payment_vals['amount']" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
</tr>
</t>
<t t-if="len(payments_vals) > 0">
<tr class="border-black">
<td>
<strong>Amount Due</strong>
</td>
<td class="text-end">
<span t-field="o.amount_residual"/>
</td>
</tr>
</t>
</t>
</t>
</table>
</div>
</div>
</div>
</div>
</div>
</t>
</template>
</odoo>

194
base_advanced_report_templates/report/purchase_attractive_templates.xml

@ -0,0 +1,194 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Purchase order report attractive template-->
<template id="report_purchaseorder_attractive_document">
<t t-if="o and 'company_id' in o">
<t t-set="company" t-value="o.company_id"/>
</t>
<t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"/>
</t>
<div class="header row mt32 mb32">
<div class="page-header col-12">
<div t-attf-class="pull-left">
<t t-if="company.logo">
<img t-if="company.logo" t-att-src="image_data_uri(company.logo)" style="max-height: 80px;"/>
</t>
</div>
<div t-attf-class="pull-left" t-attf-style="font:14px lucida-console,sans-serif; color:#{o.theme_id.company_text_color} !important;">
<span t-field="company.partner_id"/>
<br/>
<span t-field="company.partner_id.street"/>
<br/>
<span t-field="company.partner_id.street2"/>
<br/>
<span t-field="company.partner_id.city"/>
<br/>
<span t-field="company.partner_id.country_id"/>
<br/>
<span t-field="company.partner_id.vat"/>
<br/>
</div>
</div>
</div>
<t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context(lang=o.partner_id.lang)"/>
<t t-set="forced_vat" t-value="o.fiscal_position_id.foreign_vat"/> <!-- So that it appears in the footer of the report instead of the company VAT if it's set -->
<t t-set="address">
<div class="mt-4" t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<h2 t-if="o.state in ['draft', 'sent', 'to approve']">
Request for Quotation #
<span t-field="o.name"/>
</h2>
<h2 t-if="o.state in ['purchase', 'done']">Purchase Order #
<span t-field="o.name"/>
</h2>
<h2 t-if="o.state == 'cancel'">Cancelled Purchase Order #
<span t-field="o.name"/>
</h2>
</div>
</t>
<table class="table table-sm mt-4" t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<thead style="display: table-row-group">
<tr t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<th name="th_description">
<strong>Vendor</strong>
</th>
<th t-if="o.dest_address_id" class="text-center">
<strong>Shipping Address</strong>
</th>
</tr>
</thead>
<tbody>
<tr t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<td class="text-center">
<div t-field="o.partner_id" t-options='{"widget": "contact", "fields": ["address", "name", "phone", "vat"], "no_marker": True, "phone_icons": True}'/>
</td>
<td class="text-end">
<t t-if="o.dest_address_id">
<t t-set="information_block">
<strong>Shipping address:</strong>
<div t-field="o.dest_address_id" t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}' name="purchase_shipping_address"/>
</t>
</t>
</td>
</tr>
</tbody>
</table>
<br/>
<br/>
<br/>
<table class="table table-sm o_main_table mt-4">
<thead t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr>
<th name="th_description">
<strong>Order Date</strong>
</th>
<th name="th_taxes">
<strong>Scheduled Date</strong>
</th>
<th name="th_date_req" class="text-center">
<strong>Approval Date</strong>
</th>
<th name="th_quantity" class="text-end">
<strong>Payment Term</strong>
</th>
</tr>
</thead>
<tbody>
<tr t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<td class="text-end">
<div t-if="o.date_order">
<span t-field="o.date_order" class="m-0"/>
</div>
</td>
<td class="text-end">
<div t-if="o.date_planned">
<span t-field="o.date_planned" class="m-0"/>
</div>
</td>
<td class="text-end">
<div t-if="o.state in ['purchase','done'] and o.date_approve">
<span t-field="o.date_approve" class="m-0"/>
</div>
</td>
<td class="text-end">
<div t-if="o.payment_term_id">
<span t-field="o.payment_term_id.name"
class="m-0"/>
</div>
</td>
</tr>
</tbody>
</table>
<br/>
<br/>
<br/>
<br/>
<div class="page">
<div class="oe_structure"/>
<table class="table table-sm mt-4">
<thead t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr>
<th name="th_description">
<strong>Description</strong>
</th>
<th name="th_expected_date" class="text-center">
<strong>Expected Date</strong>
</th>
<th name="th_quantity" class="text-end">
<strong>Qty</strong>
</th>
</tr>
</thead>
<tbody>
<t t-foreach="o.order_line" t-as="order_line">
<tr t-attf-style="color:#{o.theme_id.customer_text_color} !important;" t-att-class="'bg-200 fw-bold o_line_section' if order_line.display_type == 'line_section' else 'fst-italic o_line_note' if order_line.display_type == 'line_note' else ''">
<t t-if="not order_line.display_type">
<td id="product">
<span t-field="order_line.name"/>
</td>
<td class="text-center">
<span t-field="order_line.date_planned"/>
</td>
<td class="text-end">
<span t-field="order_line.product_qty"/>
<span t-field="order_line.product_uom"
groups="uom.group_uom"/>
</td>
</t>
<t t-else="">
<td colspan="99" id="section">
<span t-field="order_line.name"/>
</td>
</t>
</tr>
</t>
</tbody>
</table>
<div id="total" class="row justify-content-end"
t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<div class="col-12">
<table class="table table-sm">
<t t-call="account.document_tax_totals">
<t t-set="tax_totals" t-value="o.tax_totals"/>
<t t-set="currency" t-value="o.currency_id"/>
</t>
</table>
</div>
</div>
<br/>
<br/>
<br/>
<div t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<span/>
<span/>
<span>Note</span>
<p t-field="o.notes" class="mt-4"/>
<div class="oe_structure"/>
</div>
</div>
</t>
</template>
</odoo>

226
base_advanced_report_templates/report/purchase_modern_templates.xml

@ -0,0 +1,226 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Purchase order modern report template-->
<template id="report_purchaseorder_modern_document">
<t t-if="o and 'company_id' in o">
<t t-set="company" t-value="o.company_id"/>
</t>
<t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"/>
</t>
<div class="header row mt32 mb32">
<div class="page-header col-12">
<div t-attf-class="pull-left">
<t t-if="company.logo">
<img t-if="company.logo" t-att-src="image_data_uri(company.logo)" style="max-height: 80px;"/>
</t>
</div>
<div t-attf-class="pull-left" t-attf-style="font:14px lucida-console,sans-serif; color:#{o.theme_id.company_text_color} !important;">
<span t-field="company.partner_id"/>
<br/>
<span t-field="company.partner_id.street"/>
<br/>
<span t-field="company.partner_id.street2"/>
<br/>
<span t-field="company.partner_id.city"/>
<br/>
<span t-field="company.partner_id.country_id"/>
<br/>
<span t-field="company.partner_id.vat"/>
<br/>
</div>
</div>
</div>
<t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context(lang=o.partner_id.lang)"/>
<div class="page">
<table class="table table-sm o_main_table mt-4">
<thead t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr>
<th name="th_description" class="text-start">
<strong>Vendor</strong>
</th>
<th name="th_taxes" t-if="o.dest_address_id" class="text-end">
<strong>Shipping Address</strong>
</th>
<th name="th_date_req" t-if="o.partner_ref" class="text-end">
<strong>Reference/Description</strong>
</th>
<th t-if="o.state in ['draft', 'sent', 'to approve']" name="th_quantity" class="text-end">
<strong>Request For Quotation</strong>
</th>
<th t-if="o.state in ['purchase', 'done']" name="th_quantity" class="text-end">
<strong>Purchase Order</strong>
</th>
<th t-if="o.state == 'cancel'" name="th_quantity" class="text-end">
<strong>Cancelled Purchase Order #</strong>
</th>
</tr>
</thead>
<tbody>
<tr t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<td class="text-start">
<div t-field="o.partner_id" t-options='{"widget": "contact", "fields": ["address", "name", "phone", "vat"], "no_marker": True, "phone_icons": True}'/>
</td>
<td class="text-end" t-if="o.dest_address_id">
<t t-if="o.dest_address_id">
<t t-set="information_block">
<div t-if="o.dest_address_id">
<div t-field="o.dest_address_id" t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}' name="purchase_shipping_address"/>
</div>
</t>
</t>
</td>
<td class="text-end" t-if="o.partner_ref">
<div t-if="o.partner_ref">
<p t-field="o.partner_ref" class="m-0"/>
</div>
</td>
<td class="text-end">
<span t-field="o.name"/>
</td>
</tr>
</tbody>
</table>
<br/>
<br/>
<table class="table table-sm o_main_table mt-4">
<thead t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr>
<th name="th_description">
<strong>Order Date</strong>
</th>
<th name="th_taxes">
<strong>Scheduled Date</strong>
</th>
<th name="th_date_req" class="text-center">
<strong>Approval Date</strong>
</th>
<th name="th_quantity" class="text-end">
<strong>Payment Term</strong>
</th>
</tr>
</thead>
<tbody>
<tr t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<td class="text-end">
<div t-if="o.date_order">
<span t-field="o.date_order" class="m-0"/>
</div>
</td>
<td class="text-end">
<div t-if="o.date_planned">
<span t-field="o.date_planned" class="m-0"/>
</div>
</td>
<td class="text-end">
<div t-if="o.state in ['purchase','done'] and o.date_approve">
<span t-field="o.date_approve" class="m-0"/>
</div>
</td>
<td class="text-end">
<div t-if="o.payment_term_id">
<span t-field="o.payment_term_id.name"
class="m-0"/>
</div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm o_main_table mt-4">
<thead t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr>
<th name="th_description">
<strong>Description</strong>
</th>
<th name="th_taxes">
<strong>Taxes</strong>
</th>
<th name="th_date_req" class="text-center">
<strong>Date Req.</strong>
</th>
<th name="th_quantity" class="text-end">
<strong>Qty</strong>
</th>
<th name="th_price_unit" class="text-end">
<strong>Unit Price</strong>
</th>
<th name="th_amount" class="text-end">
<strong>Amount</strong>
</th>
</tr>
</thead>
<tbody>
<t t-set="current_subtotal" t-value="0"/>
<t t-foreach="o.order_line" t-as="line">
<t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal" groups="account.group_show_line_subtotals_tax_excluded"/>
<t t-set="current_subtotal" t-value="current_subtotal + line.price_total" groups="account.group_show_line_subtotals_tax_included"/>
<tr t-attf-style="color:#{o.theme_id.customer_text_color} !important;" t-att-class="'bg-200 fw-bold o_line_section' if line.display_type == 'line_section' else 'fst-italic o_line_note' if line.display_type == 'line_note' else ''">
<t t-if="not line.display_type">
<td id="product">
<span t-field="line.name"/>
</td>
<td name="td_taxes">
<span t-esc="', '.join(map(lambda x: x.name, line.taxes_id))"/>
</td>
<td class="text-center">
<span t-field="line.date_planned"/>
</td>
<td class="text-end">
<span t-field="line.product_qty"/>
<span t-field="line.product_uom.name"
groups="uom.group_uom"/>
</td>
<td class="text-end">
<span t-field="line.price_unit"/>
</td>
<td class="text-end">
<span t-field="line.price_subtotal"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
</t>
<t t-if="line.display_type == 'line_section'">
<td colspan="99" id="section">
<span t-field="line.name"/>
</td>
<t t-set="current_section" t-value="line"/>
<t t-set="current_subtotal" t-value="0"/>
</t>
<t t-if="line.display_type == 'line_note'">
<td colspan="99" id="note">
<span t-field="line.name"/>
</td>
</t>
</tr>
<t t-if="current_section and (line_last or o.order_line[line_index+1].display_type == 'line_section')">
<tr class="is-subtotal text-end">
<td colspan="99" id="subtotal">
<strong class="mr16">Subtotal</strong>
<span
t-esc="current_subtotal"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'
/>
</td>
</tr>
</t>
</t>
</tbody>
</table>
<div id="total" class="row justify-content-end" t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<div class="col-12">
<table class="table table-sm">
<t t-call="account.document_tax_totals">
<t t-set="tax_totals" t-value="o.tax_totals"/>
<t t-set="currency" t-value="o.currency_id"/>
</t>
</table>
</div>
</div>
<div t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<p t-field="o.notes" class="mt-4"/>
<div class="oe_structure"/>
</div>
</div>
</t>
</template>
</odoo>

161
base_advanced_report_templates/report/purchase_standard_templates.xml

@ -0,0 +1,161 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Purchase order standard report template-->
<template id="report_purchaseorder_standard_document">
<t t-if="o and 'company_id' in o">
<t t-set="company" t-value="o.company_id"/>
</t>
<t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"/>
</t>
<div class="header row mt32 mb32">
<div class="page-header col-12">
<div t-attf-class="pull-left">
<t t-if="company.logo">
<img t-if="company.logo" t-att-src="image_data_uri(company.logo)" style="max-height: 80px;"/>
</t>
</div>
<div t-attf-class="pull-left" t-attf-style="font:14px lucida-console,sans-serif; color:#{o.theme_id.company_text_color} !important;">
<span t-field="company.partner_id"/>
<br/>
<span t-field="company.partner_id.street"/>
<br/>
<span t-field="company.partner_id.street2"/>
<br/>
<span t-field="company.partner_id.city"/>
<br/>
<span t-field="company.partner_id.country_id"/>
<br/>
<span t-field="company.partner_id.vat"/>
<br/>
</div>
</div>
</div>
<t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context(lang=o.partner_id.lang)"/>
<div class="page">
<div class="oe_structure"/>
<div class="mt-4" t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<h2 t-if="o.state in ['draft', 'sent', 'to approve']">Request for Quotation #
<span t-field="o.name"/>
</h2>
<h2 t-if="o.state in ['purchase', 'done']">Purchase Order #
<span t-field="o.name"/>
</h2>
<h2 t-if="o.state == 'cancel'">Cancelled Purchase Order #
<span t-field="o.name"/>
</h2>
</div>
<div t-field="o.partner_id" t-options='{"widget": "contact", "fields": ["address", "name", "phone", "vat"], "no_marker": True, "phone_icons": True}'/>
<t t-if="o.dest_address_id">
<t t-set="information_block">
<strong>Shipping address:</strong>
<div t-if="o.dest_address_id">
<div t-field="o.dest_address_id"
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'
name="purchase_shipping_address"/>
</div>
</t>
</t>
<table class="table table-sm o_main_table mt-4">
<thead t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr>
<th name="th_description">
<strong>Description</strong>
</th>
<th name="th_taxes">
<strong>Taxes</strong>
</th>
<th name="th_date_req" class="text-center">
<strong>Date Req.</strong>
</th>
<th name="th_quantity" class="text-end">
<strong>Qty</strong>
</th>
<th name="th_price_unit" class="text-end">
<strong>Unit Price</strong>
</th>
<th name="th_amount" class="text-end">
<strong>Amount</strong>
</th>
</tr>
</thead>
<tbody>
<t t-set="current_subtotal" t-value="0"/>
<t t-foreach="o.order_line" t-as="line">
<t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal" groups="account.group_show_line_subtotals_tax_excluded"/>
<t t-set="current_subtotal" t-value="current_subtotal + line.price_total" groups="account.group_show_line_subtotals_tax_included"/>
<tr t-attf-style="color:#{o.theme_id.customer_text_color} !important;" t-att-class="'bg-200 fw-bold o_line_section' if line.display_type == 'line_section' else 'fst-italic o_line_note' if line.display_type == 'line_note' else ''">
<t t-if="not line.display_type">
<td id="product">
<span t-field="line.name"/>
</td>
<td name="td_taxes">
<span t-esc="', '.join(map(lambda x: x.name, line.taxes_id))"/>
</td>
<td class="text-center">
<span t-field="line.date_planned"/>
</td>
<td class="text-end">
<span t-field="line.product_qty"/>
<span t-field="line.product_uom.name" groups="uom.group_uom"/>
</td>
<td class="text-end">
<span t-field="line.price_unit"/>
</td>
<td class="text-end">
<span t-field="line.price_subtotal"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
</t>
<t t-if="line.display_type == 'line_section'">
<td colspan="99" id="section">
<span t-field="line.name"/>
</td>
<t t-set="current_section" t-value="line"/>
<t t-set="current_subtotal" t-value="0"/>
</t>
<t t-if="line.display_type == 'line_note'">
<td colspan="99" id="note">
<span t-field="line.name"/>
</td>
</t>
</tr>
<t t-if="current_section and (line_last or o.order_line[line_index+1].display_type == 'line_section')">
<tr class="is-subtotal text-end">
<td colspan="99" id="subtotal">
<strong class="mr16">Subtotal</strong>
<span
t-esc="current_subtotal"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'
/>
</td>
</tr>
</t>
</t>
</tbody>
</table>
<div id="total" class="row justify-content-end"
t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<div class="col-12">
<table class="table table-sm">
<t t-call="account.document_tax_totals">
<t t-set="tax_totals" t-value="o.tax_totals"/>
<t t-set="currency" t-value="o.currency_id"/>
</t>
</table>
</div>
</div>
<br/>
<br/>
<br/>
<br/>
<div t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<span>Notes</span>
<p t-field="o.notes" class="mt-4"/>
<div class="oe_structure"/>
</div>
</div>
</t>
</template>
</odoo>

233
base_advanced_report_templates/report/purchase_traditional_templates.xml

@ -0,0 +1,233 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Purchase Quotation Report -->
<record id="purchase.report_purchase_quotation" model="ir.actions.report">
<field name="name">Request for Quotation</field>
<field name="model">purchase.order</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">base_advanced_report_templates.report_purchase_custom</field>
<field name="report_file">base_advanced_report_templates.report_purchase_custom</field>
<field name="print_report_name">'Request for Quotation - %s' % (object.name)</field>
<field name="binding_model_id" ref="model_purchase_order"/>
<field name="binding_type">report</field>
</record>
<!-- Purchase Order Report -->
<record id="purchase.action_report_purchase_order" model="ir.actions.report">
<field name="name">Purchase Order</field>
<field name="model">purchase.order</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">base_advanced_report_templates.report_purchase_custom</field>
<field name="report_file">base_advanced_report_templates.report_purchase_custom</field>
<field name="print_report_name">'Request for Quotation - %s' % (object.name)</field>
<field name="binding_model_id" ref="model_purchase_order"/>
<field name="binding_type">report</field>
</record>
<!-- Purchase Custom Report Template -->
<template id="report_purchase_custom">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-if="o.theme_id.name=='Traditional'">
<t t-call="base_advanced_report_templates.report_purchaseorder_traditional_document" t-lang="o.partner_id.lang"/>
</t>
<t t-elif="o.theme_id.name=='Standard'">
<t t-call="base_advanced_report_templates.report_purchaseorder_standard_document" t-lang="o.partner_id.lang"/>
</t>
<t t-elif="o.theme_id.name=='Modern'">
<t t-call="base_advanced_report_templates.report_purchaseorder_modern_document" t-lang="o.partner_id.lang"/>
</t>
<t t-elif="o.theme_id.name=='Attractive'">
<t t-call="base_advanced_report_templates.report_purchaseorder_attractive_document" t-lang="o.partner_id.lang"/>
</t>
</t>
</t>
</template>
<!-- Traditional Template Preview -->
<template id="report_purchaseorder_traditional_document">
<t t-if="o and 'company_id' in o">
<t t-set="company" t-value="o.company_id"/>
</t>
<t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"/>
</t>
<div class="header row mt32 mb32">
<div class="page-header col-12">
<div t-attf-class="pull-left">
<t t-if="company.logo">
<img t-if="company.logo" t-att-src="image_data_uri(company.logo)" style="max-height: 80px;"/>
</t>
</div>
<div t-attf-class="pull-left" t-attf-style="font:14px lucida-console,sans-serif; color:#{o.theme_id.company_text_color} !important;">
<span t-field="company.partner_id"/>
<br/>
<span t-field="company.partner_id.street"/>
<br/>
<span t-field="company.partner_id.street2"/>
<br/>
<span t-field="company.partner_id.city"/>
<br/>
<span t-field="company.partner_id.country_id"/>
<br/>
<span t-field="company.partner_id.vat"/>
<br/>
</div>
</div>
</div>
<t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context(lang=o.partner_id.lang)"/>
<div class="page">
<div class="oe_structure"/>
<div class="mt-4">
<h2 t-if="o.state in ['draft', 'sent', 'to approve']">Request for Quotation #
<span t-field="o.name"/>
</h2>
<h2 t-if="o.state in ['purchase', 'done']">Purchase Order #
<span t-field="o.name"/>
</h2>
<h2 t-if="o.state == 'cancel'">Cancelled Purchase Order #
<span t-field="o.name"/>
</h2>
</div>
<div id="informations" class="row mt-4 mb32">
<div t-if="o.state in ['purchase','done'] and o.date_approve" class="col-3 bm-2">
<strong>Order Date:</strong>
<p t-field="o.date_approve" class="m-0"/>
</div>
<div t-elif="o.date_order" class="col-3 bm-2">
<strong>Order Deadline:</strong>
<p t-field="o.date_order" class="m-0"/>
</div>
</div>
<table class="table table-sm o_main_table mt-4">
<thead t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr>
<th name="th_description">
<strong>Purchase Representative</strong>
</th>
<th name="th_description">
<strong>Your Order Reference</strong>
</th>
<th name="th_description">
<strong>Shipping address</strong>
</th>
</tr>
</thead>
<tbody>
<tr t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<td class="text-center">
<div t-if="o.user_id">
<p t-field="o.user_id" class="m-0"/>
</div>
</td>
<td class="text-end">
<div t-if="o.partner_ref">
<p t-field="o.partner_ref" class="m-0"/>
</div>
</td>
<td class="text-end">
<div t-field="o.partner_id" t-options='{"widget": "contact", "fields": ["address", "name", "phone", "vat"], "no_marker": True, "phone_icons": True}'/>
</td>
</tr>
</tbody>
</table>
<br/>
<br/>
<br/>
<br/>
<table class="table table-sm o_main_table mt-4">
<thead t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr>
<th name="th_description">
<strong>Description</strong>
</th>
<th name="th_product">
<strong>Product</strong>
</th>
<th name="th_taxes">
<strong>Taxes</strong>
</th>
<th name="th_date_req" class="text-center">
<strong>Date Req.</strong>
</th>
<th name="th_quantity" class="text-end">
<strong>Qty</strong>
</th>
<th name="th_price_unit" class="text-end">
<strong>Unit Price</strong>
</th>
<th name="th_amount" class="text-end">
<strong>Amount</strong>
</th>
</tr>
</thead>
<tbody>
<t t-set="current_subtotal" t-value="0"/>
<t t-foreach="o.order_line" t-as="line">
<t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal" groups="account.group_show_line_subtotals_tax_excluded"/>
<t t-set="current_subtotal" t-value="current_subtotal + line.price_total" groups="account.group_show_line_subtotals_tax_included"/>
<tr t-attf-style="color:#{o.theme_id.customer_text_color} !important;" t-att-class="'bg-200 fw-bold o_line_section' if line.display_type == 'line_section' else 'fst-italic o_line_note' if line.display_type == 'line_note' else ''">
<t t-if="not line.display_type">
<td id="product">
<span t-field="line.name"/>
</td>
<td id="product">
<span t-field="line.order_line_image" t-options='{"widget": "image"}'/>
</td>
<td name="td_taxes">
<span t-esc="', '.join(map(lambda x: x.name, line.taxes_id))"/>
</td>
<td class="text-center">
<span t-field="line.date_planned"/>
</td>
<td class="text-end">
<span t-field="line.product_qty"/>
<span t-field="line.product_uom.name" groups="uom.group_uom"/>
</td>
<td class="text-end">
<span t-field="line.price_unit"/>
</td>
<td class="text-end">
<span t-field="line.price_subtotal"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
</t>
<t t-if="line.display_type == 'line_section'">
<td colspan="99" id="section">
<span t-field="line.name"/>
</td>
<t t-set="current_section" t-value="line"/>
<t t-set="current_subtotal" t-value="0"/>
</t>
<t t-if="line.display_type == 'line_note'">
<td colspan="99" id="note">
<span t-field="line.name"/>
</td>
</t>
</tr>
<t t-if="current_section and (line_last or o.order_line[line_index+1].display_type == 'line_section')">
<tr class="is-subtotal text-end">
<td colspan="99" id="subtotal">
<strong class="mr16">Subtotal</strong>
<span t-esc="current_subtotal" t-options='{"widget": "monetary", "display_currency": o.currency_id}'
/>
</td>
</tr>
</t>
</t>
</tbody>
</table>
<div id="total" class="row justify-content-end">
<div class="col-4">
<table class="table table-sm">
<t t-call="account.document_tax_totals">
<t t-set="tax_totals" t-value="o.tax_totals"/>
<t t-set="currency" t-value="o.currency_id"/>
</t>
</table>
</div>
</div>
<p t-field="o.notes" class="mt-4"/>
<div class="oe_structure"/>
</div>
</t>
</template>
</odoo>

225
base_advanced_report_templates/report/sale_attractive_templates.xml

@ -0,0 +1,225 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Sale order attractive report template-->
<template id="report_saleorder_attractive_document">
<t t-call="web.external_layout">
<t t-if="doc and 'company_id' in doc">
<t t-set="company" t-value="doc.company_id"/>
</t>
<t t-if="not doc or not 'company_id' in doc">
<t t-set="company" t-value="res_company"/>
</t>
<div class="header row mt32 mb32">
<div class="page-header col-12">
<div t-attf-class="pull-left">
<t t-if="company.logo">
<img t-if="company.logo" t-att-src="image_data_uri(company.logo)"
style="max-height: 80px;"/>
</t>
</div>
<div t-attf-class="pull-left"
t-attf-style="font:14px lucida-console,sans-serif; color:#{doc.theme_id.company_text_color} !important;">
<span t-field="company.partner_id"/>
<br/>
<span t-field="company.partner_id.street"/>
<br/>
<span t-field="company.partner_id.street2"/>
<br/>
<span t-field="company.partner_id.city"/>
<br/>
<span t-field="company.partner_id.country_id"/>
<br/>
<span t-field="company.partner_id.vat"/>
<br/>
</div>
</div>
</div>
<t t-set="doc" t-value="doc.with_context(lang=doc.partner_id.lang)"/>
<t t-set="forced_vat"
t-value="doc.fiscal_position_id.foreign_vat"/> <!-- So that it appears in the footer of the report instead of the company VAT if it's set -->
<h1 t-attf-style="background-color:#{doc.theme_id.base_color};color:#{doc.theme_id.heading_text_color};">
<div class="row mt-4 mb-4" id="informations">
<div t-if="doc.client_order_ref" class="col-auto col-3 mw-100 mb-2" name="informations_reference"
style="font-size: 25px;">
<strong>Your Reference:</strong>
<p class="m-0" t-field="doc.client_order_ref"/>
</div>
<div t-if="doc.date_order" class="col-auto col-2 mw-100 mb-2" name="informations_date"
style="font-size: 25px;">
<strong t-if="doc.state in ['draft', 'sent']">Quotation Date:</strong>
<strong t-else="">Order Date:</strong>
<p class="m-0" t-field="doc.date_order" t-options='{"widget": "date"}'/>
</div>
<div t-if="doc.validity_date and doc.state in ['draft', 'sent']" class="col-auto col-3 mw-100 mb-2"
name="expiration_date" style="font-size: 25px;">
<strong>Expiration:</strong>
<p class="m-0" t-field="doc.validity_date"/>
</div>
<div t-if="doc.user_id.name" class="col-auto col-3 mw-100 mb-2" style="font-size: 25px;">
<strong>Salesperson:</strong>
<p class="m-0" t-field="doc.user_id"/>
</div>
</div>
</h1>
<table class="table table-sm o_main_table mt-4">
<thead t-attf-style="background-color:#{doc.theme_id.base_color};color:#{doc.theme_id.heading_text_color};">
<th t-if="doc.state not in ['draft','sent']">Customer</th>
<th t-if="env.context.get('proforma', False) or is_pro_forma">Pro-Forma Invoice #</th>
<th t-if="doc.state in ['draft','sent']">Quotation #</th>
<th t-if="doc.state not in ['draft','sent']">Order #</th>
<th t-if="doc.state not in ['draft','sent']">Payment Term</th>
</thead>
<tbody>
<tr t-attf-style="color:#{doc.theme_id.customer_text_color} !important;">
<td>
<div t-field="doc.partner_id"
t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'>
<p t-if="doc.partner_id.vat">
<t t-out="doc.company_id.account_fiscal_country_id.vat_label or 'Tax ID'"/>
:
<span t-field="doc.partner_id.vat"/>
</p>
</div>
</td>
<td class="text-end">
<span t-field="doc.name"/>
</td>
<td class="text-end">
<span t-field="doc.payment_term_id.note"/>
</td>
</tr>
</tbody>
</table>
<t t-if="doc.partner_shipping_id == doc.partner_invoice_id and doc.partner_invoice_id != doc.partner_id or doc.partner_shipping_id != doc.partner_invoice_id">
<t t-set="information_block">
<strong>
<t t-if="doc.partner_shipping_id == doc.partner_invoice_id">
Invoicing and Shipping Address:
</t>
<t t-else="">
Invoicing Address:
</t>
</strong>
<div t-field="doc.partner_invoice_id"
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/>
<t t-if="doc.partner_shipping_id != doc.partner_invoice_id">
<strong>Shipping Address:</strong>
<div t-field="doc.partner_shipping_id"
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/>
</t>
</t>
</t>
<div class="page">
<div class="oe_structure"/>
<!-- Is there a discount on at least one line? -->
<t t-set="lines_to_report" t-value="doc._get_order_lines_to_report()"/>
<t t-set="display_discount" t-value="any(l.discount for l in lines_to_report)"/>
<table class="table table-sm o_main_table mt-4">
<!-- In case we want to repeat the header, remove "display: table-row-group" -->
<thead t-attf-style="background-color:#{doc.theme_id.base_color};color:#{doc.theme_id.heading_text_color};">
<tr>
<th name="th_description" class="text-start">Description</th>
<th name="th_quantity" class="text-end">Quantity</th>
<th name="th_priceunit" class="text-end">Unit Price</th>
<th name="th_discount" t-if="display_discount" class="text-end"
groups="product.group_discount_per_so_line">
<span>Disc.%</span>
</th>
<th name="th_taxes" class="text-end">Taxes</th>
<th name="th_subtotal" class="text-end">
<span groups="account.group_show_line_subtotals_tax_excluded">Amount</span>
<span groups="account.group_show_line_subtotals_tax_included">Total Price</span>
</th>
</tr>
</thead>
<tbody class="sale_tbody">
<t t-set="current_subtotal" t-value="0"/>
<t t-foreach="lines_to_report" t-as="line">
<t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal"
groups="account.group_show_line_subtotals_tax_excluded"/>
<t t-set="current_subtotal" t-value="current_subtotal + line.price_total"
groups="account.group_show_line_subtotals_tax_included"/>
<tr t-attf-style="color:#{doc.theme_id.customer_text_color} !important;"
t-att-class="'bg-200 fw-bold o_line_section' if line.display_type == 'line_section' else 'fst-italic o_line_note' if line.display_type == 'line_note' else ''">
<t t-if="not line.display_type">
<td name="td_name">
<span t-field="line.name"/>
</td>
<td name="td_quantity" class="text-end">
<span t-field="line.product_uom_qty"/>
<span t-field="line.product_uom"/>
</td>
<td name="td_priceunit" class="text-end">
<span t-field="line.price_unit"/>
</td>
<td t-if="display_discount" class="text-end"
groups="product.group_discount_per_so_line">
<span t-field="line.discount"/>
</td>
<td name="td_taxes" class="text-end">
<span t-out="', '.join(map(lambda x: (x.description or x.name), line.tax_id))"/>
</td>
<td t-if="not line.is_downpayment" name="td_subtotal"
class="text-end o_price_total">
<span t-field="line.price_subtotal"
groups="account.group_show_line_subtotals_tax_excluded"/>
<span t-field="line.price_total"
groups="account.group_show_line_subtotals_tax_included"/>
</td>
</t>
<t t-elif="line.display_type == 'line_section'">
<td name="td_section_line" colspan="99">
<span t-field="line.name"/>
</td>
<t t-set="current_section" t-value="line"/>
<t t-set="current_subtotal" t-value="0"/>
</t>
<t t-elif="line.display_type == 'line_note'">
<td name="td_note_line" colspan="99">
<span t-field="line.name"/>
</td>
</t>
</tr>
<t t-if="current_section and (line_last or doc.order_line[line_index+1].display_type == 'line_section') and not line.is_downpayment">
<tr class="is-subtotal text-end">
<td name="td_section_subtotal" colspan="99">
<strong class="mr16">Subtotal</strong>
<span t-out="current_subtotal"
t-options='{"widget": "monetary", "display_currency": doc.pricelist_id.currency_id}'
/>
</td>
</tr>
</t>
</t>
</tbody>
</table>
<div class="clearfix col-6" name="so_total_summary"
t-attf-style="background-color:#{doc.theme_id.base_color};color:#{doc.theme_id.heading_text_color};">
<div id="total" class="row" name="total">
<div t-attf-class="#{'col-6' if report_type != 'html' else 'col-sm-7 col-md-6'} ms-auto">
<table class="table table-sm">
<!-- Tax totals -->
<t t-call="account.document_tax_totals">
<t t-set="tax_totals" t-value="doc.tax_totals"/>
<t t-set="currency" t-value="doc.currency_id"/>
</t>
</table>
</div>
</div>
</div>
<div t-if="doc.signature" class="mt-4 ml64 mr4" name="signature">
<div class="offset-8">
<strong>Signature</strong>
</div>
<div class="offset-8">
<img t-att-src="image_data_uri(doc.signature)" style="max-height: 4cm; max-width: 8cm;"/>
</div>
<div class="offset-8 text-center">
<p t-field="doc.signed_by"/>
</div>
</div>
</div>
</t>
</template>
</odoo>

269
base_advanced_report_templates/report/sale_modern_templates.xml

@ -0,0 +1,269 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Sale order report modern template-->
<template id="report_saleorder_modern_document">
<t t-call="web.external_layout">
<t t-if="doc and 'company_id' in doc">
<t t-set="company" t-value="doc.company_id"/>
</t>
<t t-if="not doc or not 'company_id' in doc">
<t t-set="company" t-value="res_company"/>
</t>
<div class="header row mt32 mb32">
<div class="page-header col-12">
<div t-attf-class="pull-left">
<t t-if="company.logo">
<img t-if="company.logo" t-att-src="image_data_uri(company.logo)" style="max-height: 80px;"/>
</t>
</div>
<div t-attf-class="pull-left" t-attf-style="font:14px lucida-console,sans-serif; color:#{doc.theme_id.company_text_color} !important;">
<span t-field="company.partner_id"/>
<br/>
<span t-field="company.partner_id.street"/>
<br/>
<span t-field="company.partner_id.street2"/>
<br/>
<span t-field="company.partner_id.city"/>
<br/>
<span t-field="company.partner_id.country_id"/>
<br/>
<span t-field="company.partner_id.vat"/>
<br/>
</div>
</div>
</div>
<t t-set="doc" t-value="doc.with_context(lang=doc.partner_id.lang)"/>
<t t-set="forced_vat" t-value="doc.fiscal_position_id.foreign_vat"/> <!-- So that it appears in the footer of the report instead of the company VAT if it's set -->
<table class="table table-sm o_main_table mt-4">
<thead t-attf-style="background-color:#{doc.theme_id.base_color};color:#{doc.theme_id.heading_text_color};">
<tr>
<th name="th_description">
Customer
</th>
<t t-if="doc.partner_shipping_id == doc.partner_invoice_id
and doc.partner_invoice_id != doc.partner_id
or doc.partner_shipping_id != doc.partner_invoice_id">
<t t-if="doc.partner_shipping_id == doc.partner_invoice_id">
<th name="th_quantity"
class="text-end">
Invoicing and shipping Address
</th>
</t>
</t>
<t t-else="">
<th name="th_priceunit"
t-if="doc.partner_shipping_id != doc.partner_invoice_id"
class="text-end">
Invoicing Address
</th>
</t>
</tr>
</thead>
<tbody>
<tr t-attf-style="color:#{doc.theme_id.customer_text_color} !important;">
<td>
<div t-field="doc.partner_id"
t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'/>
<p t-if="doc.partner_id.vat">
<t t-out="doc.company_id.account_fiscal_country_id.vat_label or 'Tax ID'"/>
:
<span t-field="doc.partner_id.vat"/>
</p>
</td>
<td>
<t t-set="information_block">
<div t-field="doc.partner_invoice_id"
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/>
<t t-if="doc.partner_shipping_id != doc.partner_invoice_id">
<div t-field="doc.partner_shipping_id"
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/>
</t>
</t>
</td>
</tr>
</tbody>
</table>
<h1 class="mt-4"
t-attf-style="background-color:#{doc.theme_id.base_color};color:#{doc.theme_id.heading_text_color};">
<span t-if="env.context.get('proforma', False) or is_pro_forma">
<strong>Pro-Forma Invoice #</strong>
</span>
<span t-elif="doc.state in ['draft','sent']">
<strong>Quotation #</strong>
</span>
<span t-else="">
<strong>Order #</strong>
</span>
<span t-field="doc.name"/>
<span t-if="doc.date_order" class="col-auto col-3 mw-100 mb-2"
name="informations_date">
<strong t-if="doc.state in ['draft', 'sent']">Quotation
Date:
</strong>
<strong t-else="">Order Date:</strong>
<span class="m-0" t-field="doc.date_order"
t-options='{"widget": "date"}'/>
</span>
<span t-if="not is_html_empty(doc.payment_term_id.note)">
<span t-field="doc.payment_term_id.note"/>
</span>
<span t-if="doc.user_id.name"
class="col-auto col-3 mw-100 mb-2">
<strong>Salesperson:</strong>
<span t-field="doc.user_id"/>
</span>
</h1>
<div class="page">
<div class="oe_structure"/>
<!-- Is there a discount on at least one line? -->
<t t-set="lines_to_report"
t-value="doc._get_order_lines_to_report()"/>
<t t-set="display_discount"
t-value="any(l.discount for l in lines_to_report)"/>
<table class="table table-sm o_main_table mt-4">
<!-- In case we want to repeat the header, remove "display: table-row-group" -->
<thead t-attf-style="background-color:#{doc.theme_id.base_color};color:#{doc.theme_id.heading_text_color};">
<tr>
<th name="th_description" class="text-start">
Description
</th>
<th name="th_quantity" class="text-end">Quantity
</th>
<th name="th_priceunit" class="text-end">Unit
Price
</th>
<th name="th_discount" t-if="display_discount"
class="text-end"
groups="product.group_discount_per_so_line">
<span>Disc.%</span>
</th>
<th name="th_taxes" class="text-end">Taxes</th>
<th name="th_subtotal" class="text-end">
<span groups="account.group_show_line_subtotals_tax_excluded">
Amount
</span>
<span groups="account.group_show_line_subtotals_tax_included">
Total Price
</span>
</th>
</tr>
</thead>
<tbody class="sale_tbody">
<t t-set="current_subtotal" t-value="0"/>
<t t-foreach="lines_to_report" t-as="line">
<t t-set="current_subtotal"
t-value="current_subtotal + line.price_subtotal"
groups="account.group_show_line_subtotals_tax_excluded"/>
<t t-set="current_subtotal"
t-value="current_subtotal + line.price_total"
groups="account.group_show_line_subtotals_tax_included"/>
<tr t-attf-style="color:#{doc.theme_id.customer_text_color} !important;"
t-att-class="'bg-200 fw-bold o_line_section' if line.display_type == 'line_section' else 'fst-italic o_line_note' if line.display_type == 'line_note' else ''">
<t t-if="not line.display_type">
<td name="td_name">
<span t-field="line.name"/>
</td>
<td name="td_quantity" class="text-end">
<span t-field="line.product_uom_qty"/>
<span t-field="line.product_uom"/>
</td>
<td name="td_priceunit" class="text-end">
<span t-field="line.price_unit"/>
</td>
<td t-if="display_discount" class="text-end"
groups="product.group_discount_per_so_line">
<span t-field="line.discount"/>
</td>
<td name="td_taxes" class="text-end">
<span t-out="', '.join(map(lambda x: (x.description or x.name), line.tax_id))"/>
</td>
<td t-if="not line.is_downpayment"
name="td_subtotal"
class="text-end o_price_total">
<span t-field="line.price_subtotal"
groups="account.group_show_line_subtotals_tax_excluded"/>
<span t-field="line.price_total"
groups="account.group_show_line_subtotals_tax_included"/>
</td>
</t>
<t t-elif="line.display_type == 'line_section'">
<td name="td_section_line" colspan="99">
<span t-field="line.name"/>
</td>
<t t-set="current_section" t-value="line"/>
<t t-set="current_subtotal" t-value="0"/>
</t>
<t t-elif="line.display_type == 'line_note'">
<td name="td_note_line" colspan="99">
<span t-field="line.name"/>
</td>
</t>
</tr>
<t t-if="current_section and (line_last or doc.order_line[line_index+1].display_type == 'line_section') and not line.is_downpayment">
<tr class="is-subtotal text-end">
<td name="td_section_subtotal" colspan="99">
<strong class="mr16">Subtotal</strong>
<span
t-out="current_subtotal"
t-options='{"widget": "monetary", "display_currency": doc.pricelist_id.currency_id}'
/>
</td>
</tr>
</t>
</t>
</tbody>
</table>
<div class="clearfix" name="so_total_summary">
<div id="total" class="row" name="total">
<div t-attf-class="#{'col-6' if report_type != 'html' else 'col-sm-7 col-md-6'} ms-auto">
<table class="table table-sm"
t-attf-style="background-color:#{doc.theme_id.base_color};color:#{doc.theme_id.heading_text_color};">
<!-- Tax totals -->
<t t-call="account.document_tax_totals">
<t t-set="tax_totals" t-value="doc.tax_totals"/>
<t t-set="currency" t-value="doc.currency_id"/>
</t>
</table>
</div>
</div>
</div>
<br/>
<br/>
<br/>
<br/>
<br></br>
<div t-if="doc.signature" class="mt-4 ml64 mr4"
name="signature">
<div class="offset-8">
<strong>Signature</strong>
</div>
<div class="offset-8">
<img t-att-src="image_data_uri(doc.signature)"
style="max-height: 4cm; max-width: 8cm;"/>
</div>
<div class="offset-8 text-center">
<p t-field="doc.signed_by"/>
</div>
</div>
<div t-attf-style="background-color:#{doc.theme_id.base_color};color:#{doc.theme_id.heading_text_color};">
<t t-if="doc.note">
<strong>Note</strong>
<br/>
<br/>
<br/>
</t>
<p t-field="doc.note" name="order_note"/>
<p t-if="doc.fiscal_position_id and not is_html_empty(doc.fiscal_position_id.sudo().note)"
id="fiscal_position_remark">
<strong>Fiscal Position Remark:</strong>
<span t-field="doc.fiscal_position_id.sudo().note"/>
</p>
</div>
</div>
</t>
</template>
</odoo>

228
base_advanced_report_templates/report/sale_standrd_templates.xml

@ -0,0 +1,228 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Sale order report standard template-->
<template id="report_saleorder_standard_document">
<t t-call="web.external_layout">
<t t-if="doc and 'company_id' in doc">
<t t-set="company" t-value="doc.company_id"/>
</t>
<t t-if="not doc or not 'company_id' in doc">
<t t-set="company" t-value="res_company"/>
</t>
<div class="header row mt32 mb32">
<div class="page-header col-12">
<div t-attf-class="pull-left">
<t t-if="company.logo">
<img t-if="company.logo"
t-att-src="image_data_uri(company.logo)"
style="max-height: 80px;"/>
</t>
</div>
<div t-attf-class="pull-left"
t-attf-style="font:14px lucida-console,sans-serif; color:#{doc.theme_id.company_text_color} !important;">
<span t-field="company.partner_id"/>
<br/>
<span t-field="company.partner_id.street"/>
<br/>
<span t-field="company.partner_id.street2"/>
<br/>
<span t-field="company.partner_id.city"/>
<br/>
<span t-field="company.partner_id.country_id"/>
<br/>
<span t-field="company.partner_id.vat"/>
<br/>
</div>
</div>
</div>
<t t-set="doc"
t-value="doc.with_context(lang=doc.partner_id.lang)"/>
<t t-set="forced_vat"
t-value="doc.fiscal_position_id.foreign_vat"/> <!-- So that it appears in the footer of the report instead of the company VAT if it's set -->
<h1 class="mt-4 col-12"
t-attf-style="background-color:#{doc.theme_id.base_color};color:#{doc.theme_id.heading_text_color};">
<span t-if="env.context.get('proforma', False) or is_pro_forma">
Pro-Forma Invoice #
</span>
<span t-elif="doc.state in ['draft','sent']">Quotation #</span>
<span t-else="">Order #</span>
<span t-field="doc.name"/>
</h1>
<t t-if="doc.partner_id">
<div t-field="doc.partner_id"
t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'/>
<p t-if="doc.partner_id.vat">
<t t-out="doc.company_id.account_fiscal_country_id.vat_label or 'Tax ID'"/>
:
<span t-field="doc.partner_id.vat"/>
</p>
</t>
<t t-if="doc.partner_shipping_id == doc.partner_invoice_id
and doc.partner_invoice_id != doc.partner_id
or doc.partner_shipping_id != doc.partner_invoice_id">
<t t-set="information_block">
<strong>
<t t-if="doc.partner_shipping_id == doc.partner_invoice_id">
Invoicing and Shipping Address:
</t>
<t t-else="">
Invoicing Address:
</t>
</strong>
<div t-field="doc.partner_invoice_id"
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/>
<t t-if="doc.partner_shipping_id != doc.partner_invoice_id">
<strong>Shipping Address:</strong>
<div t-field="doc.partner_shipping_id"
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/>
</t>
</t>
</t>
<div class="page">
<div class="oe_structure"/>
<!-- Is there a discount on at least one line? -->
<t t-set="lines_to_report"
t-value="doc._get_order_lines_to_report()"/>
<t t-set="display_discount"
t-value="any(l.discount for l in lines_to_report)"/>
<table class="table table-sm o_main_table mt-4">
<!-- In case we want to repeat the header, remove "display: table-row-group" -->
<thead t-attf-style="background-color:#{doc.theme_id.base_color};color:#{doc.theme_id.heading_text_color};">
<tr>
<th name="th_description" class="text-start">
Description
</th>
<th name="th_quantity" class="text-end">Quantity
</th>
<th name="th_priceunit" class="text-end">Unit
Price
</th>
<th name="th_discount" t-if="display_discount"
class="text-end"
groups="product.group_discount_per_so_line">
<span>Disc.%</span>
</th>
<th name="th_taxes" class="text-end">Taxes</th>
<th name="th_subtotal" class="text-end">
<span groups="account.group_show_line_subtotals_tax_excluded">
Amount
</span>
<span groups="account.group_show_line_subtotals_tax_included">
Total Price
</span>
</th>
</tr>
</thead>
<tbody class="sale_tbody">
<t t-set="current_subtotal" t-value="0"/>
<t t-foreach="lines_to_report" t-as="line">
<t t-set="current_subtotal"
t-value="current_subtotal + line.price_subtotal"
groups="account.group_show_line_subtotals_tax_excluded"/>
<t t-set="current_subtotal"
t-value="current_subtotal + line.price_total"
groups="account.group_show_line_subtotals_tax_included"/>
<tr t-attf-style="color:#{doc.theme_id.customer_text_color} !important;"
t-att-class="'bg-200 fw-bold o_line_section' if line.display_type == 'line_section' else 'fst-italic o_line_note' if line.display_type == 'line_note' else ''">
<t t-if="not line.display_type">
<td name="td_name">
<span t-field="line.name"/>
</td>
<td name="td_quantity" class="text-end">
<span t-field="line.product_uom_qty"/>
<span t-field="line.product_uom"/>
</td>
<td name="td_priceunit" class="text-end">
<span t-field="line.price_unit"/>
</td>
<td t-if="display_discount" class="text-end"
groups="product.group_discount_per_so_line">
<span t-field="line.discount"/>
</td>
<td name="td_taxes" class="text-end">
<span t-out="', '.join(map(lambda x: (x.description or x.name), line.tax_id))"/>
</td>
<td t-if="not line.is_downpayment"
name="td_subtotal"
class="text-end o_price_total">
<span t-field="line.price_subtotal"
groups="account.group_show_line_subtotals_tax_excluded"/>
<span t-field="line.price_total"
groups="account.group_show_line_subtotals_tax_included"/>
</td>
</t>
<t t-elif="line.display_type == 'line_section'">
<td name="td_section_line" colspan="99">
<span t-field="line.name"/>
</td>
<t t-set="current_section" t-value="line"/>
<t t-set="current_subtotal" t-value="0"/>
</t>
<t t-elif="line.display_type == 'line_note'">
<td name="td_note_line" colspan="99">
<span t-field="line.name"/>
</td>
</t>
</tr>
<t t-if="current_section and (line_last or doc.order_line[line_index+1].display_type == 'line_section') and not line.is_downpayment">
<tr class="is-subtotal text-end">
<td name="td_section_subtotal" colspan="99">
<strong class="mr16">Subtotal</strong>
<span
t-out="current_subtotal"
t-options='{"widget": "monetary", "display_currency": doc.pricelist_id.currency_id}'
/>
</td>
</tr>
</t>
</t>
</tbody>
</table>
<div class="clearfix" name="so_total_summary"
t-attf-style="background-color:#{doc.theme_id.base_color};color:#{doc.theme_id.heading_text_color};">
<div id="total" class="row" name="total">
<div t-attf-class="#{'col-12' if report_type != 'html' else 'col-sm-7 col-md-6'} ms-auto">
<table class="table table-sm">
<!-- Tax totals -->
<t t-call="account.document_tax_totals">
<t t-set="tax_totals" t-value="doc.tax_totals"/>
<t t-set="currency" t-value="doc.currency_id"/>
</t>
</table>
</div>
</div>
</div>
<div t-if="doc.signature" class="mt-4 ml64 mr4"
name="signature">
<div class="offset-8">
<strong>Signature</strong>
</div>
<div class="offset-8">
<img t-att-src="image_data_uri(doc.signature)"
style="max-height: 4cm; max-width: 8cm;"/>
</div>
<div class="offset-8 text-center">
<p t-field="doc.signed_by"/>
</div>
</div>
<div t-attf-style="background-color:#{doc.theme_id.base_color};color:#{doc.theme_id.heading_text_color};"
class="col-6">
<p t-field="doc.note" name="order_note"/>
<p t-if="not is_html_empty(doc.payment_term_id.note)">
<span t-field="doc.payment_term_id.note"/>
</p>
<div t-if="doc.user_id.name" class="col-auto mw-100 mb-2">
<strong>Salesperson:</strong>
<p class="m-0" t-field="doc.user_id"/>
</div>
<p t-if="doc.fiscal_position_id and not is_html_empty(doc.fiscal_position_id.sudo().note)"
id="fiscal_position_remark">
<strong>Fiscal Position Remark:</strong>
<span t-field="doc.fiscal_position_id.sudo().note"/>
</p>
</div>
</div>
</t>
</template>
</odoo>

215
base_advanced_report_templates/report/sale_traditional_templates.xml

@ -0,0 +1,215 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="sale.action_report_saleorder" model="ir.actions.report">
<field name="name">Quotation / Order</field>
<field name="model">sale.order</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">base_advanced_report_templates.report_saleorder_custom</field>
<field name="report_file">base_advanced_report_templates.report_saleorder</field>
<field name="print_report_name">(object.state in ('draft', 'sent') and 'Quotation - %s' % (object.name)) or 'Order - %s' % (object.name)
</field>
<field name="binding_model_id" ref="model_sale_order"/>
<field name="binding_type">report</field>
</record>
<template id="report_saleorder_custom">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="doc">
<t t-if="doc.theme_id.name=='Traditional'">
<t t-call="base_advanced_report_templates.report_saleorder_traditional_document"
t-lang="doc.partner_id.lang"/>
</t>
<t t-elif="doc.theme_id.name=='Standard'">
<t t-call="base_advanced_report_templates.report_saleorder_standard_document"
t-lang="doc.partner_id.lang"/>
</t>
<t t-elif="doc.theme_id.name=='Modern'">
<t t-call="base_advanced_report_templates.report_saleorder_modern_document"
t-lang="doc.partner_id.lang"/>
</t>
<t t-elif="doc.theme_id.name=='Attractive'">
<t t-call="base_advanced_report_templates.report_saleorder_attractive_document"
t-lang="doc.partner_id.lang"/>
</t>
<t t-else="">
<t t-call="sale.report_saleorder_document"
t-lang="doc.partner_id.lang"/>
</t>
</t>
</t>
</template>
<!-- Sale order report traditional template-->
<template id="report_saleorder_traditional_document">
<t t-call="web.external_layout">
<t t-set="doc" t-value="doc.with_context(lang=doc.partner_id.lang)"/>
<t t-set="forced_vat"
t-value="doc.fiscal_position_id.foreign_vat"/> <!-- So that it appears in the footer of the report instead of the company VAT if it's set -->
<div class="page">
<!-- Is there a discount on at least one line? -->
<t t-set="lines_to_report" t-value="doc._get_order_lines_to_report()"/>
<t t-set="display_discount" t-value="any(l.discount for l in lines_to_report)"/>
<table class="table table-sm o_main_table mt-4">
<!-- In case we want to repeat the header, remove "display: table-row-group" -->
<thead t-attf-style=" background-color:#{doc.theme_id.base_color};color:#{doc.theme_id.heading_text_color};">
<tr>
<th name="th_description" class="text-start">Customer Address</th>
<th name="th_priceunit" t-if="doc.state in ['draft', 'sent']" class="text-end">Quotaion Date
</th>
<th name="th_priceunit" t-if="doc.state not in ['draft', 'sent']" class="text-end">Order
Date
</th>
<th name="th_priceunit" t-if="doc.state in ['draft','sent']" class="text-end">Quotaion</th>
<th name="th_priceunit" t-if="doc.state not in ['draft','sent']" class="text-end">Order</th>
</tr>
</thead>
<tbody>
<tr t-attf-style="color:#{doc.theme_id.customer_text_color} !important;">
<td class="text-start">
<div t-field="doc.partner_id"
t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'/>
<p t-if="doc.partner_id.vat">
<t t-out="doc.company_id.account_fiscal_country_id.vat_label or 'Tax ID'"/>
:
<span t-field="doc.partner_id.vat"/>
</p>
</td>
<td class="text-end">
<p class="m-0" t-field="doc.date_order" t-options='{"widget": "date"}'/>
</td>
<td class="text-end">
<span t-field="doc.name"/>
</td>
</tr>
</tbody>
</table>
<br/>
<br/>
<br/>
<table class="table table-sm o_main_table mt-4">
<!-- In case we want to repeat the header, remove "display: table-row-group" -->
<thead t-attf-style=" background-color:#{doc.theme_id.base_color};color:#{doc.theme_id.heading_text_color};">
<tr>
<th name="th_description" class="text-start">Description</th>
<th name="th_product" class="text-start">Product</th>
<th name="th_quantity" class="text-end">Quantity</th>
<th name="th_priceunit" class="text-end">Unit Price</th>
<th name="th_discount" t-if="display_discount" class="text-end"
groups="product.group_discount_per_so_line">
<span>Disc.%</span>
</th>
<th name="th_taxes" class="text-end">Taxes</th>
<th name="th_subtotal" class="text-end">
<span groups="account.group_show_line_subtotals_tax_excluded">Amount</span>
<span groups="account.group_show_line_subtotals_tax_included">Total Price</span>
</th>
</tr>
</thead>
<tbody class="sale_tbody">
<t t-set="current_subtotal" t-value="0"/>
<t t-foreach="lines_to_report" t-as="line">
<t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal"
groups="account.group_show_line_subtotals_tax_excluded"/>
<t t-set="current_subtotal" t-value="current_subtotal + line.price_total"
groups="account.group_show_line_subtotals_tax_included"/>
<tr t-attf-style="color:#{doc.theme_id.customer_text_color} !important;"
t-att-class="'bg-200 fw-bold o_line_section' if line.display_type == 'line_section' else 'fst-italic o_line_note' if line.display_type == 'line_note' else ''">
<t t-if="not line.display_type">
<td name="td_name">
<span t-field="line.name"/>
</td>
<td name="td_image">
<span t-field="line.order_line_image" t-options='{"widget": "image"}'/>
</td>
<td name="td_quantity" class="text-end">
<span t-field="line.product_uom_qty"/>
<span t-field="line.product_uom"/>
</td>
<td name="td_priceunit" class="text-end">
<span t-field="line.price_unit"/>
</td>
<td t-if="display_discount" class="text-end"
groups="product.group_discount_per_so_line">
<span t-field="line.discount"/>
</td>
<td name="td_taxes" class="text-end">
<span t-out="', '.join(map(lambda x: (x.description or x.name), line.tax_id))"/>
</td>
<td t-if="not line.is_downpayment" name="td_subtotal"
class="text-end o_price_total">
<span t-field="line.price_subtotal"
groups="account.group_show_line_subtotals_tax_excluded"/>
<span t-field="line.price_total"
groups="account.group_show_line_subtotals_tax_included"/>
</td>
</t>
<t t-elif="line.display_type == 'line_section'">
<td name="td_section_line" colspan="99">
<span t-field="line.name"/>
</td>
<t t-set="current_section" t-value="line"/>
<t t-set="current_subtotal" t-value="0"/>
</t>
<t t-elif="line.display_type == 'line_note'">
<td name="td_note_line" colspan="99">
<span t-field="line.name"/>
</td>
</t>
</tr>
<t t-if="current_section and (line_last or doc.order_line[line_index+1].display_type == 'line_section') and not line.is_downpayment">
<tr class="is-subtotal text-end">
<td name="td_section_subtotal" colspan="99">
<strong class="mr16">Subtotal</strong>
<span
t-out="current_subtotal"
t-options='{"widget": "monetary", "display_currency": doc.pricelist_id.currency_id}'
/>
</td>
</tr>
</t>
</t>
</tbody>
</table>
<div class="clearfix" name="so_total_summary">
<div id="total" class="row" name="total">
<div t-attf-class="#{'col-6' if report_type != 'html' else 'col-sm-7 col-md-6'} ms-auto">
<table class="table table-sm">
<!-- Tax totals -->
<t t-call="account.document_tax_totals">
<t t-set="tax_totals" t-value="doc.tax_totals"/>
<t t-set="currency" t-value="doc.currency_id"/>
</t>
</table>
</div>
</div>
</div>
<div t-if="doc.signature" class="mt-4 ml64 mr4" name="signature">
<div class="offset-8">
<strong>Signature</strong>
</div>
<div class="offset-8">
<img t-att-src="image_data_uri(doc.signature)" style="max-height: 4cm; max-width: 8cm;"/>
</div>
<div class="offset-8 text-center">
<p t-field="doc.signed_by"/>
</div>
</div>
<br></br>
<br></br>
<br></br>
<br></br>
<br></br>
<br></br>
<div>
<div>
<p t-field="doc.note" name="order_note"/>
</div>
<p t-if="doc.fiscal_position_id and not is_html_empty(doc.fiscal_position_id.sudo().note)"
id="fiscal_position_remark">
<strong>Fiscal Position Remark:</strong>
<span t-field="doc.fiscal_position_id.sudo().note"/>
</p>
</div>
</div>
</t>
</template>
</odoo>

263
base_advanced_report_templates/report/stock_attractive_templates.xml

@ -0,0 +1,263 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Stock report attractive template-->
<template id="report_stock_attractive_document">
<t t-if="o and 'company_id' in o">
<t t-set="company" t-value="o.company_id"/>
</t>
<t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"/>
</t>
<div class="header row mt32 mb32">
<div class="page-header col-12">
<div t-attf-class="pull-left">
<t t-if="company.logo">
<img t-if="company.logo" t-att-src="image_data_uri(company.logo)"
style="max-height: 80px;"/>
</t>
</div>
<div t-attf-class="pull-left"
t-attf-style="font:14px lucida-console,sans-serif; color:#{o.theme_id.company_text_color} !important;">
<span t-field="company.partner_id"/>
<br/>
<span t-field="company.partner_id.street"/>
<br/>
<span t-field="company.partner_id.street2"/>
<br/>
<span t-field="company.partner_id.city"/>
<br/>
<span t-field="company.partner_id.country_id"/>
<br/>
<span t-field="company.partner_id.vat"/>
<br/>
</div>
</div>
</div>
<t t-call="web.html_container">
<t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context(lang=o.partner_id.lang)"/>
<t t-set="partner" t-value="o.partner_id or (o.move_ids and o.move_ids[0].partner_id) or False"/>
<div class="row col-6"
t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<div name="div_incoming_address">
<div name="vendor_address" t-if="o.picking_type_id.code=='incoming' and partner">
<span>
<strong>Vendor Address:</strong>
</span>
</div>
<div name="warehouse_address" t-if="o.picking_type_id.code=='internal' and partner">
<span>
<strong>Warehouse Address:</strong>
</span>
</div>
<div name="customer_address" t-if="o.picking_type_id.code=='outgoing' and partner">
<span>
<strong>Customer Address:</strong>
</span>
</div>
<div t-if="partner" name="partner_header">
<div t-field="partner.commercial_partner_id"
t-options='{"widget": "contact", "fields": ["address", "name", "phone", "vat"], "no_marker": True, "phone_icons": True}'/>
</div>
</div>
</div>
<br/>
<br/>
<div class="col-12"
t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<h2>Number
<span t-field="o.name"/>
</h2>
</div>
<div class="page">
<div class="row mt32 mb32"
t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<div t-if="o.origin" class="col-auto" name="div_origin">
<strong>Order:</strong>
<p t-field="o.origin"/>
</div>
<div t-if="o.state" class="col-auto" name="div_sched_date">
<strong>Shipping Date:</strong>
<t t-if="o.state == 'done'">
<p t-field="o.date_done"/>
</t>
<t t-if="o.state != 'done'">
<p t-field="o.scheduled_date"/>
</t>
</div>
<div t-if="o.scheduled_date" class="col-auto" name="div_sched_date">
<strong>Scheduled Date:</strong>
<p t-field="o.scheduled_date"/>
</div>
<div t-if="o.origin" class="col-auto" name="div_sched_date">
<strong>Source:</strong>
<p t-field="o.origin"/>
</div>
</div>
<br/>
<br/>
<br/>
<table class="table table-sm" t-if="o.state!='done'" name="stock_move_table">
<thead t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr>
<th name="th_sm_product">
<strong>Product</strong>
</th>
<th name="th_sm_ordered">
<strong>Ordered</strong>
</th>
<th name="th_sm_quantity">
<strong>Delivered</strong>
</th>
</tr>
</thead>
<tbody>
<t t-set="lines" t-value="o.move_ids.filtered(lambda x: x.product_uom_qty)"/>
<tr t-foreach="lines" t-as="move">
<td>
<span t-field="move.product_id"/>
<p t-if="move.description_picking != move.product_id.name and move.description_picking != move.product_id.display_name">
<span t-field="move.description_picking"/>
</p>
</td>
<td>
<span t-field="move.product_uom_qty"/>
<span t-field="move.product_uom"/>
</td>
<td>
<span t-field="move.quantity"/>
<span t-field="move.product_uom"/>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm mt48" t-if="o.move_line_ids and o.state=='done'"
name="stock_move_line_table">
<t t-set="has_serial_number" t-value="False"/>
<t t-set="has_serial_number" t-value="o.move_line_ids.mapped('lot_id')"
groups="stock.group_lot_on_delivery_slip"/>
<thead t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr>
<th name="th_sml_product">
<strong>Product</strong>
</th>
<t name="lot_serial" t-if="has_serial_number">
<th>
Lot/Serial Number
</th>
</t>
<th name="th_sml_qty_ordered" class="text-center" t-if="not has_serial_number">
<strong>Ordered</strong>
</th>
<th name="th_sml_quantity" class="text-center">
<strong>Delivered</strong>
</th>
</tr>
</thead>
<tbody>
<!-- This part gets complicated with different use cases (additional use cases in extensions of this report):
1. If serial numbers are used and set to print on delivery slip => print lines as is, otherwise group them by overlapping
product + description + uom combinations
2. If any packages are assigned => split products up by package (or non-package) and then apply use case 1 -->
<!-- If has destination packages => create sections of corresponding products -->
<t t-if="o.has_packages" name="has_packages">
<t t-set="packages" t-value="o.move_line_ids.mapped('result_package_id')"/>
<t t-foreach="packages" t-as="package">
<t t-call="stock.stock_report_delivery_package_section_line"/>
<t t-set="package_move_lines"
t-value="o.move_line_ids.filtered(lambda l: l.result_package_id == package)"/>
<!-- If printing lots/serial numbers => keep products in original lines -->
<t t-if="has_serial_number">
<tr t-foreach="package_move_lines" t-as="move_line">
<t t-call="stock.stock_report_delivery_has_serial_move_line"/>
</tr>
</t>
<!-- If not printing lots/serial numbers => merge lines with same product+description+uom -->
<t t-else="">
<t t-set="aggregated_lines"
t-value="package_move_lines._get_aggregated_product_quantities(strict=True)"/>
<t t-call="stock.stock_report_delivery_aggregated_move_lines"/>
</t>
</t>
<!-- Make sure we do another section for package-less products if they exist -->
<t t-set="move_lines"
t-value="o.move_line_ids.filtered(lambda l: not l.result_package_id)"/>
<t t-set="aggregated_lines"
t-value="o.move_line_ids._get_aggregated_product_quantities(except_package=True)"/>
<t t-if="move_lines or aggregated_lines" name="no_package_move_lines">
<t t-call="stock.stock_report_delivery_no_package_section_line"
name="no_package_section"/>
<t t-if="has_serial_number">
<tr t-foreach="move_lines" t-as="move_line">
<t t-call="stock.stock_report_delivery_has_serial_move_line"/>
</tr>
</t>
<t t-elif="aggregated_lines">
<t t-call="stock.stock_report_delivery_aggregated_move_lines"/>
</t>
</t>
</t>
<!-- No destination packages -->
<t t-else="">
<!-- If printing lots/serial numbers => keep products in original lines -->
<t t-if="has_serial_number">
<tr t-foreach="o.move_line_ids" t-as="move_line">
<t t-call="stock.stock_report_delivery_has_serial_move_line"/>
</tr>
</t>
<!-- If not printing lots/serial numbers => merge lines with same product -->
<t t-else="" name="aggregated_move_lines">
<t t-set="aggregated_lines"
t-value="o.move_line_ids._get_aggregated_product_quantities()"/>
<t t-call="stock.stock_report_delivery_aggregated_move_lines"/>
</t>
</t>
</tbody>
</table>
<t t-set="backorders"
t-value="o.backorder_ids.filtered(lambda x: x.state not in ('done', 'cancel'))"/>
<t t-if="o.backorder_ids and backorders">
<p class="mt-5">
<span>Remaining quantities not yet delivered:</span>
</p>
<table class="table table-sm" name="stock_backorder_table" style="table-layout: fixed;">
<thead t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr>
<th name="th_sb_product">
<strong>Product</strong>
</th>
<th/>
<th name="th_sb_quantity" class="text-center">
<strong>Quantity</strong>
</th>
</tr>
</thead>
<tbody>
<t t-foreach="backorders" t-as="backorder">
<t t-set="bo_lines"
t-value="backorder.move_ids.filtered(lambda x: x.product_uom_qty)"/>
<tr t-foreach="bo_lines" t-as="bo_line">
<td class="w-auto">
<span t-field="bo_line.product_id"/>
<p t-if="bo_line.description_picking != bo_line.product_id.name and bo_line.description_picking != bo_line.product_id.display_name">
<span t-field="bo_line.description_picking"/>
</p>
</td>
<td/>
<td class="text-center w-auto">
<span t-field="bo_line.product_uom_qty"/>
<span t-field="bo_line.product_uom"/>
</td>
</tr>
</t>
</tbody>
</table>
<br/>
<br/>
<br/>
</t>
</div>
</t>
</t>
</template>
</odoo>

285
base_advanced_report_templates/report/stock_modern_templates.xml

@ -0,0 +1,285 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Stock report modern template-->
<template id="report_stock_modern_document">
<t t-if="o and 'company_id' in o">
<t t-set="company" t-value="o.company_id"/>
</t>
<t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"/>
</t>
<div class="header row mt32 mb32">
<div class="page-header col-12">
<div t-attf-class="pull-left">
<t t-if="company.logo">
<img t-if="company.logo" t-att-src="image_data_uri(company.logo)"
style="max-height: 80px;"/>
</t>
</div>
<div t-attf-class="pull-left"
t-attf-style="font:14px lucida-console,sans-serif; color:#{o.theme_id.company_text_color} !important;">
<span t-field="company.partner_id"/>
<br/>
<span t-field="company.partner_id.street"/>
<br/>
<span t-field="company.partner_id.street2"/>
<br/>
<span t-field="company.partner_id.city"/>
<br/>
<span t-field="company.partner_id.country_id"/>
<br/>
<span t-field="company.partner_id.vat"/>
<br/>
</div>
</div>
</div>
<t t-call="web.html_container">
<t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context(lang=o.partner_id.lang)"/>
<t t-set="partner" t-value="o.partner_id or (o.move_ids and o.move_ids[0].partner_id) or False"/>
<div name="vendor_address" t-if="o.picking_type_id.code=='incoming' and partner"
t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<span>
<strong>Vendor Address:</strong>
</span>
</div>
<div name="warehouse_address" t-if="o.picking_type_id.code=='internal' and partner"
t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<span>
<strong>Warehouse Address:</strong>
</span>
</div>
<div name="customer_address" t-if="o.picking_type_id.code=='outgoing' and partner"
t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<span>
<strong>Customer Address:</strong>
</span>
</div>
<div t-if="partner" name="partner_header">
<div t-field="partner.commercial_partner_id"
t-options='{"widget": "contact", "fields": ["address", "name", "phone", "vat"], "no_marker": True, "phone_icons": True}'/>
</div>
<div name="customer_address"
t-if="o.picking_type_id.code != 'internal' and (not o.move_ids_without_package or not o.move_ids_without_package[0].partner_id or o.move_ids_without_package[0].partner_id == partner) and o.picking_type_id.warehouse_id.partner_id"
t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<span>
<strong>Warehouse Address:</strong>
</span>
</div>
<div t-if="partner" name="partner_header">
<div t-field="o.picking_type_id.warehouse_id.partner_id"
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/>
</div>
<div name="customer_address"
t-if="o.move_ids_without_package and o.move_ids_without_package[0].partner_id and o.move_ids_without_package[0].partner_id != partner"
t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<span>
<strong>Delivery Address:</strong>
</span>
</div>
<div t-if="partner" name="partner_header">
<div t-field="o.move_ids_without_package[0].partner_id"
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/>
</div>
<table class="table table-sm" t-if="o.state!='done'" name="stock_move_table">
<thead t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr>
<th name="th_sm_ordered" t-if="o.state">
<strong>Source</strong>
</th>
<th name="th_sm_product" t-if="o.origin">
<strong>Order</strong>
</th>
<th name="th_sm_ordered" t-if="o.state">
<strong>Shipping Date</strong>
</th>
</tr>
</thead>
<tbody>
<tr t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<td>
<span t-field="o.name"/>
</td>
<td>
<p t-field="o.origin"/>
</td>
<td>
<t t-if="o.state == 'done'">
<p t-field="o.date_done"/>
</t>
<t t-if="o.state != 'done'">
<p t-field="o.scheduled_date"/>
</t>
</td>
</tr>
</tbody>
</table>
<br/>
<br/>
<br/>
<div class="page">
<table class="table table-sm" t-if="o.state!='done'" name="stock_move_table">
<thead t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr>
<th name="th_sm_product">
<strong>Product</strong>
</th>
<th name="th_sm_ordered">
<strong>Ordered</strong>
</th>
<th name="th_sm_quantity">
<strong>Delivered</strong>
</th>
</tr>
</thead>
<tbody t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<t t-set="lines" t-value="o.move_ids.filtered(lambda x: x.product_uom_qty)"/>
<tr t-foreach="lines" t-as="move">
<td>
<span t-field="move.product_id"/>
<p t-if="move.description_picking != move.product_id.name and move.description_picking != move.product_id.display_name">
<span t-field="move.description_picking"/>
</p>
</td>
<td>
<span t-field="move.product_uom_qty"/>
<span t-field="move.product_uom"/>
</td>
<td>
<span t-field="move.quantity"/>
<span t-field="move.product_uom"/>
</td>
</tr>
</tbody>
</table>
<br/>
<br/>
<br/>
<br/>
<table class="table table-sm mt48" t-if="o.move_line_ids and o.state=='done'"
name="stock_move_line_table">
<t t-set="has_serial_number" t-value="False"/>
<t t-set="has_serial_number" t-value="o.move_line_ids.mapped('lot_id')"
groups="stock.group_lot_on_delivery_slip"/>
<thead t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr>
<th name="th_sml_product">
<strong>Product</strong>
</th>
<t name="lot_serial" t-if="has_serial_number">
<th>
Lot/Serial Number
</th>
</t>
<th name="th_sml_qty_ordered" class="text-center" t-if="not has_serial_number">
<strong>Ordered</strong>
</th>
<th name="th_sml_quantity" class="text-center">
<strong>Delivered</strong>
</th>
</tr>
</thead>
<tbody t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<!-- This part gets complicated with different use cases (additional use cases in extensions of this report):
1. If serial numbers are used and set to print on delivery slip => print lines as is, otherwise group them by overlapping
product + description + uom combinations
2. If any packages are assigned => split products up by package (or non-package) and then apply use case 1 -->
<!-- If has destination packages => create sections of corresponding products -->
<t t-if="o.has_packages" name="has_packages">
<t t-set="packages" t-value="o.move_line_ids.mapped('result_package_id')"/>
<t t-foreach="packages" t-as="package">
<t t-call="stock.stock_report_delivery_package_section_line"/>
<t t-set="package_move_lines"
t-value="o.move_line_ids.filtered(lambda l: l.result_package_id == package)"/>
<!-- If printing lots/serial numbers => keep products in original lines -->
<t t-if="has_serial_number">
<tr t-foreach="package_move_lines" t-as="move_line">
<t t-call="stock.stock_report_delivery_has_serial_move_line"/>
</tr>
</t>
<!-- If not printing lots/serial numbers => merge lines with same product+description+uom -->
<t t-else="">
<t t-set="aggregated_lines"
t-value="package_move_lines._get_aggregated_product_quantities(strict=True)"/>
<t t-call="stock.stock_report_delivery_aggregated_move_lines"/>
</t>
</t>
<!-- Make sure we do another section for package-less products if they exist -->
<t t-set="move_lines"
t-value="o.move_line_ids.filtered(lambda l: not l.result_package_id)"/>
<t t-set="aggregated_lines"
t-value="o.move_line_ids._get_aggregated_product_quantities(except_package=True)"/>
<t t-if="move_lines or aggregated_lines" name="no_package_move_lines">
<t t-call="stock.stock_report_delivery_no_package_section_line"
name="no_package_section"/>
<t t-if="has_serial_number">
<tr t-foreach="move_lines" t-as="move_line">
<t t-call="stock.stock_report_delivery_has_serial_move_line"/>
</tr>
</t>
<t t-elif="aggregated_lines">
<t t-call="stock.stock_report_delivery_aggregated_move_lines"/>
</t>
</t>
</t>
<!-- No destination packages -->
<t t-else="">
<!-- If printing lots/serial numbers => keep products in original lines -->
<t t-if="has_serial_number">
<tr t-foreach="o.move_line_ids" t-as="move_line">
<t t-call="stock.stock_report_delivery_has_serial_move_line"/>
</tr>
</t>
<!-- If not printing lots/serial numbers => merge lines with same product -->
<t t-else="" name="aggregated_move_lines">
<t t-set="aggregated_lines"
t-value="o.move_line_ids._get_aggregated_product_quantities()"/>
<t t-call="stock.stock_report_delivery_aggregated_move_lines"/>
</t>
</t>
</tbody>
</table>
<t t-set="backorders"
t-value="o.backorder_ids.filtered(lambda x: x.state not in ('done', 'cancel'))"/>
<t t-if="o.backorder_ids and backorders">
<p class="mt-5">
<span>Remaining quantities not yet delivered:</span>
</p>
<table class="table table-sm" name="stock_backorder_table" style="table-layout: fixed;">
<thead>
<tr>
<th name="th_sb_product">
<strong>Product</strong>
</th>
<th/>
<th name="th_sb_quantity" class="text-center">
<strong>Quantity</strong>
</th>
</tr>
</thead>
<tbody t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<t t-foreach="backorders" t-as="backorder">
<t t-set="bo_lines"
t-value="backorder.move_ids.filtered(lambda x: x.product_uom_qty)"/>
<tr t-foreach="bo_lines" t-as="bo_line">
<td class="w-auto">
<span t-field="bo_line.product_id"/>
<p t-if="bo_line.description_picking != bo_line.product_id.name and bo_line.description_picking != bo_line.product_id.display_name">
<span t-field="bo_line.description_picking"/>
</p>
</td>
<td/>
<td class="text-center w-auto">
<span t-field="bo_line.product_uom_qty"/>
<span t-field="bo_line.product_uom"/>
</td>
</tr>
</t>
</tbody>
</table>
</t>
</div>
</t>
</t>
</template>
</odoo>

273
base_advanced_report_templates/report/stock_standard_templates.xml

@ -0,0 +1,273 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Stock standard report template-->
<template id="report_stock_standard_document">
<t t-if="o and 'company_id' in o">
<t t-set="company" t-value="o.company_id"/>
</t>
<t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"/>
</t>
<div class="header row mt32 mb32">
<div class="page-header col-12">
<div t-attf-class="pull-left">
<t t-if="company.logo">
<img t-if="company.logo" t-att-src="image_data_uri(company.logo)"
style="max-height: 80px;"/>
</t>
</div>
<div t-attf-class="pull-left"
t-attf-style="font:14px lucida-console,sans-serif; color:#{o.theme_id.company_text_color} !important;">
<span t-field="company.partner_id"/>
<br/>
<span t-field="company.partner_id.street"/>
<br/>
<span t-field="company.partner_id.street2"/>
<br/>
<span t-field="company.partner_id.city"/>
<br/>
<span t-field="company.partner_id.country_id"/>
<br/>
<span t-field="company.partner_id.vat"/>
<br/>
</div>
</div>
</div>
<t t-call="web.html_container">
<t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context(lang=o.partner_id.lang)"/>
<t t-set="partner" t-value="o.partner_id or (o.move_ids and o.move_ids[0].partner_id) or False"/>
<div t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<h2>
<span t-field="o.name"/>
</h2>
<div class="row mt32 mb32">
<div t-if="o.origin" class="col-auto" name="div_origin">
<strong>Order:</strong>
<p t-field="o.origin"/>
</div>
<div t-if="o.state" class="col-auto" name="div_sched_date">
<strong>Shipping Date:</strong>
<t t-if="o.state == 'done'">
<p t-field="o.date_done"/>
</t>
<t t-if="o.state != 'done'">
<p t-field="o.scheduled_date"/>
</t>
</div>
</div>
</div>
<div class="row mt32 mb32">
<div name="vendor_address" t-if="o.picking_type_id.code=='incoming' and partner" class="col-auto">
<div>
<strong>Vendor Address:</strong>
</div>
</div>
<div name="warehouse_address" t-if="o.picking_type_id.code=='internal' and partner"
class="col-auto">
<div>
<strong>Warehouse Address:</strong>
</div>
</div>
<div name="customer_address" t-if="o.picking_type_id.code=='outgoing' and partner" class="col-auto">
<div>
<strong>Customer Address:</strong>
</div>
<div t-if="partner" name="partner_header" class="col-auto">
<div t-field="partner.commercial_partner_id"
t-options='{"widget": "contact", "fields": ["address", "name", "phone", "vat"], "no_marker": True, "phone_icons": True}'/>
</div>
</div>
<div name="outgoing_delivery_address" class="col-auto"
t-if="o.move_ids_without_package and o.move_ids_without_package[0].partner_id and o.move_ids_without_package[0].partner_id != partner">
<div>
<strong>Delivery Address:</strong>
</div>
<div t-field="o.move_ids_without_package[0].partner_id"
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/>
</div>
<div name="outgoing_warehouse_address" class="col-auto"
t-if="o.picking_type_id.code != 'internal' and (not o.move_ids_without_package or not o.move_ids_without_package[0].partner_id or o.move_ids_without_package[0].partner_id == partner) and o.picking_type_id.warehouse_id.partner_id">
<div>
<strong>Warehouse Address:</strong>
</div>
<div t-field="o.picking_type_id.warehouse_id.partner_id"
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/>
</div>
</div>
<br/>
<br/>
<br/>
<div class="page">
<table class="table table-sm" t-if="o.state!='done'" name="stock_move_table">
<thead t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr>
<th name="th_sm_product">
<strong>Product</strong>
</th>
<th name="th_sm_ordered">
<strong>Ordered</strong>
</th>
<th name="th_sm_quantity">
<strong>Delivered</strong>
</th>
</tr>
</thead>
<tbody t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<t t-set="lines" t-value="o.move_ids.filtered(lambda x: x.product_uom_qty)"/>
<tr t-foreach="lines" t-as="move">
<td>
<span t-field="move.product_id"/>
<p t-if="move.description_picking != move.product_id.name and move.description_picking != move.product_id.display_name">
<span t-field="move.description_picking"/>
</p>
</td>
<td>
<span t-field="move.product_uom_qty"/>
<span t-field="move.product_uom"/>
</td>
<td>
<span t-field="move.quantity"/>
<span t-field="move.product_uom"/>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm mt48" t-if="o.move_line_ids and o.state=='done'"
name="stock_move_line_table">
<t t-set="has_serial_number" t-value="False"/>
<t t-set="has_serial_number" t-value="o.move_line_ids.mapped('lot_id')"
groups="stock.group_lot_on_delivery_slip"/>
<thead>
<tr>
<th name="th_sml_product">
<strong>Product</strong>
</th>
<t name="lot_serial" t-if="has_serial_number">
<th>
Lot/Serial Number
</th>
</t>
<th name="th_sml_qty_ordered" class="text-center" t-if="not has_serial_number">
<strong>Ordered</strong>
</th>
<th name="th_sml_quantity" class="text-center">
<strong>Delivered</strong>
</th>
</tr>
</thead>
<tbody t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<!-- This part gets complicated with different use cases (additional use cases in extensions of this report):
1. If serial numbers are used and set to print on delivery slip => print lines as is, otherwise group them by overlapping
product + description + uom combinations
2. If any packages are assigned => split products up by package (or non-package) and then apply use case 1 -->
<!-- If has destination packages => create sections of corresponding products -->
<t t-if="o.has_packages" name="has_packages">
<t t-set="packages" t-value="o.move_line_ids.mapped('result_package_id')"/>
<t t-foreach="packages" t-as="package">
<t t-call="stock.stock_report_delivery_package_section_line"/>
<t t-set="package_move_lines"
t-value="o.move_line_ids.filtered(lambda l: l.result_package_id == package)"/>
<!-- If printing lots/serial numbers => keep products in original lines -->
<t t-if="has_serial_number">
<tr t-foreach="package_move_lines" t-as="move_line">
<t t-call="stock.stock_report_delivery_has_serial_move_line"/>
</tr>
</t>
<!-- If not printing lots/serial numbers => merge lines with same product+description+uom -->
<t t-else="">
<t t-set="aggregated_lines"
t-value="package_move_lines._get_aggregated_product_quantities(strict=True)"/>
<t t-call="stock.stock_report_delivery_aggregated_move_lines"/>
</t>
</t>
<!-- Make sure we do another section for package-less products if they exist -->
<t t-set="move_lines"
t-value="o.move_line_ids.filtered(lambda l: not l.result_package_id)"/>
<t t-set="aggregated_lines"
t-value="o.move_line_ids._get_aggregated_product_quantities(except_package=True)"/>
<t t-if="move_lines or aggregated_lines" name="no_package_move_lines">
<t t-call="stock.stock_report_delivery_no_package_section_line"
name="no_package_section"/>
<t t-if="has_serial_number">
<tr t-foreach="move_lines" t-as="move_line">
<t t-call="stock.stock_report_delivery_has_serial_move_line"/>
</tr>
</t>
<t t-elif="aggregated_lines">
<t t-call="stock.stock_report_delivery_aggregated_move_lines"/>
</t>
</t>
</t>
<!-- No destination packages -->
<t t-else="">
<!-- If printing lots/serial numbers => keep products in original lines -->
<t t-if="has_serial_number">
<tr t-foreach="o.move_line_ids" t-as="move_line">
<t t-call="stock.stock_report_delivery_has_serial_move_line"/>
</tr>
</t>
<!-- If not printing lots/serial numbers => merge lines with same product -->
<t t-else="" name="aggregated_move_lines">
<t t-set="aggregated_lines"
t-value="o.move_line_ids._get_aggregated_product_quantities()"/>
<t t-call="stock.stock_report_delivery_aggregated_move_lines"/>
</t>
</t>
</tbody>
</table>
<t t-set="backorders"
t-value="o.backorder_ids.filtered(lambda x: x.state not in ('done', 'cancel'))"/>
<t t-if="o.backorder_ids and backorders">
<p class="mt-5">
<span>Remaining quantities not yet delivered:</span>
</p>
<table class="table table-sm" name="stock_backorder_table" style="table-layout: fixed;">
<thead>
<tr>
<th name="th_sb_product">
<strong>Product</strong>
</th>
<th/>
<th name="th_sb_quantity" class="text-center">
<strong>Quantity</strong>
</th>
</tr>
</thead>
<tbody t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<t t-foreach="backorders" t-as="backorder">
<t t-set="bo_lines"
t-value="backorder.move_ids.filtered(lambda x: x.product_uom_qty)"/>
<tr t-foreach="bo_lines" t-as="bo_line">
<td class="w-auto">
<span t-field="bo_line.product_id"/>
<p t-if="bo_line.description_picking != bo_line.product_id.name and bo_line.description_picking != bo_line.product_id.display_name">
<span t-field="bo_line.description_picking"/>
</p>
</td>
<td/>
<td class="text-center w-auto">
<span t-field="bo_line.product_uom_qty"/>
<span t-field="bo_line.product_uom"/>
</td>
</tr>
</t>
</tbody>
</table>
</t>
<div t-if="o.signature" class="mt32 ml64 mr4" name="signature">
<div class="offset-8">
<strong>Signature</strong>
</div>
<div class="offset-8">
<img t-att-src="image_data_uri(o.signature)" style="max-height: 4cm; max-width: 8cm;"/>
</div>
<div class="offset-8 text-center">
<p t-field="o.partner_id.name"/>
</div>
</div>
</div>
</t>
</t>
</template>
</odoo>

314
base_advanced_report_templates/report/stock_traditional_templates.xml

@ -0,0 +1,314 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="stock.action_report_delivery" model="ir.actions.report">
<field name="name">Delivery Slip</field>
<field name="model">stock.picking</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">base_advanced_report_templates.report_deliveryslip_custom</field>
<field name="report_file">base_advanced_report_templates.report_deliveryslip_custom</field>
<field name="print_report_name">'Delivery Slip - %s - %s' % (object.partner_id.name or '', object.name)</field>
<field name="binding_type">report</field>
</record>
<template id="report_deliveryslip_custom">
<t t-foreach="docs" t-as="o">
<t t-if="o.theme_id.name=='Traditional'">
<t t-call="base_advanced_report_templates.report_stock_traditional_document"
t-lang="o.partner_id.lang"/>
</t>
<t t-elif="o.theme_id.name=='Standard'">
<t t-call="base_advanced_report_templates.report_stock_standard_document"
t-lang="o.partner_id.lang"/>
</t>
<t t-elif="o.theme_id.name=='Modern'">
<t t-call="base_advanced_report_templates.report_stock_modern_document"
t-lang="o.partner_id.lang"/>
</t>
<t t-elif="o.theme_id.name=='Attractive'">
<t t-call="base_advanced_report_templates.report_stock_attractive_document"
t-lang="o.partner_id.lang"/>
</t>
</t>
</template>
<!-- Stock traditional report template-->
<template id="report_stock_traditional_document">
<t t-if="o and 'company_id' in o">
<t t-set="company" t-value="o.company_id"/>
</t>
<t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"/>
</t>
<div class="header row mt32 mb32">
<div class="page-header col-12">
<div t-attf-class="pull-left">
<t t-if="company.logo">
<img t-if="company.logo" t-att-src="image_data_uri(company.logo)"
style="max-height: 80px;"/>
</t>
</div>
<div t-attf-class="pull-left"
t-attf-style="font:14px lucida-console,sans-serif; color:#{o.theme_id.company_text_color} !important;">
<span t-field="company.partner_id"/>
<br/>
<span t-field="company.partner_id.street"/>
<br/>
<span t-field="company.partner_id.street2"/>
<br/>
<span t-field="company.partner_id.city"/>
<br/>
<span t-field="company.partner_id.country_id"/>
<br/>
<span t-field="company.partner_id.vat"/>
<br/>
</div>
</div>
</div>
<t t-call="web.html_container">
<t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context(lang=o.partner_id.lang)"/>
<t t-set="partner" t-value="o.partner_id or (o.move_ids and o.move_ids[0].partner_id) or False"/>
<div class="page">
<table class="table table-sm" t-if="o.state!='done'" name="stock_move_table">
<thead t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr>
<th name="th_sm_quantity" t-if="o.picking_type_id.code=='incoming' and partner"
class="text-start">
<strong>Vendor Address</strong>
</th>
<th name="th_sm_quantity" t-if="o.picking_type_id.code=='internal'" class="text-start">
<strong>Warehouse Address</strong>
</th>
<th name="th_sm_quantity" t-if="o.picking_type_id.code=='outgoing' and partner"
class="text-start">
<strong>Customer Address</strong>
</th>
<th name="th_sm_quantity"
t-if="o.picking_type_id.code != 'internal' and (not o.move_ids_without_package or not o.move_ids_without_package[0].partner_id or o.move_ids_without_package[0].partner_id == partner) and o.picking_type_id.warehouse_id.partner_id"
class="text-start">
<strong>Warehouse Address</strong>
</th>
<th name="th_sm_quantity"
t-if="o.move_ids_without_package and o.move_ids_without_package[0].partner_id and o.move_ids_without_package[0].partner_id != partner">
<strong>Delivery Address</strong>
</th>
<th name="th_sm_product" t-if="o.origin">
<strong>Order</strong>
</th>
<th name="th_sm_ordered" t-if="o.state">
<strong>Shipping Date</strong>
</th>
</tr>
</thead>
<tbody>
<tr t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<td>
<div t-if="partner" name="partner_header">
<div t-field="partner.commercial_partner_id"
t-options='{"widget": "contact", "fields": ["address", "name", "phone", "vat"], "no_marker": True, "phone_icons": True}'/>
</div>
</td>
<td t-if="o.picking_type_id.code != 'internal' and (not o.move_ids_without_package or not o.move_ids_without_package[0].partner_id or o.move_ids_without_package[0].partner_id == partner) and o.picking_type_id.warehouse_id.partner_id">
<div t-field="o.picking_type_id.warehouse_id.partner_id"
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/>
</td>
<td t-if="o.move_ids_without_package and
o.move_ids_without_package[0].partner_id and
o.move_ids_without_package[0].partner_id != partner">
<div t-field="o.move_ids_without_package[0].partner_id"
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/>
</td>
<td>
<p t-field="o.origin"/>
</td>
<td>
<t t-if="o.state == 'done'">
<p t-field="o.date_done"/>
</t>
<t t-if="o.state != 'done'">
<p t-field="o.scheduled_date"/>
</t>
</td>
</tr>
</tbody>
</table>
<br/>
<br/>
<br/>
<br/>
<table class="table table-sm" t-if="o.state!='done'" name="stock_move_table">
<thead t-attf-style="background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};">
<tr>
<th name="th_sm_product">
<strong>Product</strong>
</th>
<th name="th_sm_product">
<strong>Image</strong>
</th>
<th name="th_sm_ordered">
<strong>Ordered</strong>
</th>
<th name="th_sm_quantity">
<strong>Delivered</strong>
</th>
</tr>
</thead>
<tbody t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<t t-set="lines" t-value="o.move_ids.filtered(lambda x: x.product_uom_qty)"/>
<tr t-foreach="lines" t-as="move">
<td>
<span t-field="move.product_id"/>
<p t-if="move.description_picking != move.product_id.name and move.description_picking != move.product_id.display_name">
<span t-field="move.description_picking"/>
</p>
</td>
<td>
<span t-field="move.order_line_image" t-options='{"widget": "image"}'/>
</td>
<td>
<span t-field="move.product_uom_qty"/>
<span t-field="move.product_uom"/>
</td>
<td>
<span t-field="move.quantity"/>
<span t-field="move.product_uom"/>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm mt48" t-if="o.move_line_ids and o.state=='done'"
name="stock_move_line_table">
<t t-set="has_serial_number" t-value="False"/>
<t t-set="has_serial_number" t-value="o.move_line_ids.mapped('lot_id')"
groups="stock.group_lot_on_delivery_slip"/>
<thead>
<tr>
<th name="th_sml_product">
<strong>Product</strong>
</th>
<t name="lot_serial" t-if="has_serial_number">
<th>
Lot/Serial Number
</th>
</t>
<th name="th_sml_qty_ordered" class="text-center" t-if="not has_serial_number">
<strong>Ordered</strong>
</th>
<th name="th_sml_quantity" class="text-center">
<strong>Delivered</strong>
</th>
</tr>
</thead>
<tbody t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<!-- This part gets complicated with different use cases (additional use cases in extensions of this report):
1. If serial numbers are used and set to print on delivery slip => print lines as is, otherwise group them by overlapping
product + description + uom combinations
2. If any packages are assigned => split products up by package (or non-package) and then apply use case 1 -->
<!-- If it has destination packages => create sections of corresponding products -->
<t t-if="o.has_packages" name="has_packages">
<t t-set="packages" t-value="o.move_line_ids.mapped('result_package_id')"/>
<t t-foreach="packages" t-as="package">
<t t-call="stock.stock_report_delivery_package_section_line"/>
<t t-set="package_move_lines"
t-value="o.move_line_ids.filtered(lambda l: l.result_package_id == package)"/>
<!-- If printing lots/serial numbers => keep products in original lines -->
<t t-if="has_serial_number">
<tr t-foreach="package_move_lines" t-as="move_line">
<t t-call="stock.stock_report_delivery_has_serial_move_line"/>
</tr>
</t>
<!-- If not printing lots/serial numbers => merge lines with same product+description+uom -->
<t t-else="">
<t t-set="aggregated_lines"
t-value="package_move_lines._get_aggregated_product_quantities(strict=True)"/>
<t t-call="stock.stock_report_delivery_aggregated_move_lines"/>
</t>
</t>
<!-- Make sure we do another section for package-less products if they exist -->
<t t-set="move_lines"
t-value="o.move_line_ids.filtered(lambda l: not l.result_package_id)"/>
<t t-set="aggregated_lines"
t-value="o.move_line_ids._get_aggregated_product_quantities(except_package=True)"/>
<t t-if="move_lines or aggregated_lines" name="no_package_move_lines">
<t t-call="stock.stock_report_delivery_no_package_section_line"
name="no_package_section"/>
<t t-if="has_serial_number">
<tr t-foreach="move_lines" t-as="move_line">
<t t-call="stock.stock_report_delivery_has_serial_move_line"/>
</tr>
</t>
<t t-elif="aggregated_lines">
<t t-call="stock.stock_report_delivery_aggregated_move_lines"/>
</t>
</t>
</t>
<!-- No destination packages -->
<t t-else="">
<!-- If printing lots/serial numbers => keep products in original lines -->
<t t-if="has_serial_number">
<tr t-foreach="o.move_line_ids" t-as="move_line">
<t t-call="stock.stock_report_delivery_has_serial_move_line"/>
</tr>
</t>
<!-- If not printing lots/serial numbers => merge lines with same product -->
<t t-else="" name="aggregated_move_lines">
<t t-set="aggregated_lines"
t-value="o.move_line_ids._get_aggregated_product_quantities()"/>
<t t-call="stock.stock_report_delivery_aggregated_move_lines"/>
</t>
</t>
</tbody>
</table>
<t t-set="backorders"
t-value="o.backorder_ids.filtered(lambda x: x.state not in ('done', 'cancel'))"/>
<t t-if="o.backorder_ids and backorders">
<p class="mt-5">
<span>Remaining quantities not yet delivered:</span>
</p>
<table class="table table-sm" name="stock_backorder_table" style="table-layout: fixed;">
<thead>
<tr>
<th name="th_sb_product">
<strong>Product</strong>
</th>
<th/>
<th name="th_sb_quantity" class="text-center">
<strong>Quantity</strong>
</th>
</tr>
</thead>
<tbody t-attf-style="color:#{o.theme_id.customer_text_color} !important;">
<t t-foreach="backorders" t-as="backorder">
<t t-set="bo_lines"
t-value="backorder.move_ids.filtered(lambda x: x.product_uom_qty)"/>
<tr t-foreach="bo_lines" t-as="bo_line">
<td class="w-auto">
<span t-field="bo_line.product_id"/>
<p t-if="bo_line.description_picking != bo_line.product_id.name and bo_line.description_picking != bo_line.product_id.display_name">
<span t-field="bo_line.description_picking"/>
</p>
</td>
<td/>
<td class="text-center w-auto">
<span t-field="bo_line.product_uom_qty"/>
<span t-field="bo_line.product_uom"/>
</td>
</tr>
</t>
</tbody>
</table>
</t>
<div t-if="o.signature" class="mt32 ml64 mr4" name="signature">
<div class="offset-8">
<strong>Signature</strong>
</div>
<div class="offset-8">
<img t-att-src="image_data_uri(o.signature)" style="max-height: 4cm; max-width: 8cm;"/>
</div>
<div class="offset-8 text-center">
<p t-field="o.partner_id.name"/>
</div>
</div>
</div>
</t>
</t>
</template>
</odoo>

2
base_advanced_report_templates/security/ir.model.access.csv

@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_doc_layout_user,access.doc.layout.user,model_doc_layout,base.group_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_doc_layout_user access.doc.layout.user model_doc_layout base.group_user 1 1 1 1

BIN
base_advanced_report_templates/static/description/Icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
base_advanced_report_templates/static/description/assets/icons/capture (1).png

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
base_advanced_report_templates/static/description/assets/icons/check.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
base_advanced_report_templates/static/description/assets/icons/chevron.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
base_advanced_report_templates/static/description/assets/icons/cogs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
base_advanced_report_templates/static/description/assets/icons/consultation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
base_advanced_report_templates/static/description/assets/icons/ecom-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

BIN
base_advanced_report_templates/static/description/assets/icons/education-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
base_advanced_report_templates/static/description/assets/icons/hotel-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
base_advanced_report_templates/static/description/assets/icons/img.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
base_advanced_report_templates/static/description/assets/icons/license.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
base_advanced_report_templates/static/description/assets/icons/lifebuoy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
base_advanced_report_templates/static/description/assets/icons/manufacturing-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
base_advanced_report_templates/static/description/assets/icons/photo-capture.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
base_advanced_report_templates/static/description/assets/icons/pos-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
base_advanced_report_templates/static/description/assets/icons/puzzle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
base_advanced_report_templates/static/description/assets/icons/restaurant-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

BIN
base_advanced_report_templates/static/description/assets/icons/service-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
base_advanced_report_templates/static/description/assets/icons/trading-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

BIN
base_advanced_report_templates/static/description/assets/icons/training.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
base_advanced_report_templates/static/description/assets/icons/update.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
base_advanced_report_templates/static/description/assets/icons/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

BIN
base_advanced_report_templates/static/description/assets/icons/wrench.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
base_advanced_report_templates/static/description/assets/misc/Cybrosys R.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
base_advanced_report_templates/static/description/assets/misc/categories.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
base_advanced_report_templates/static/description/assets/misc/check-box.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
base_advanced_report_templates/static/description/assets/misc/compass.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
base_advanced_report_templates/static/description/assets/misc/corporate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
base_advanced_report_templates/static/description/assets/misc/customer-support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
base_advanced_report_templates/static/description/assets/misc/cybrosys-logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

33
base_advanced_report_templates/static/description/assets/misc/email.svg

@ -0,0 +1,33 @@
<svg width="80" height="81" viewBox="0 0 80 81" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="3116889_design_email_material_communication_mail_icon 1" clip-path="url(#clip0_81_366)">
<g id="layer1">
<path id="rect3851" d="M74.6067 0.730957H5.5424C2.75742 0.730957 0.499756 3.01685 0.499756 5.83664V75.7642C0.499756 78.584 2.75742 80.8699 5.5424 80.8699H74.6067C77.3916 80.8699 79.6493 78.584 79.6493 75.7642V5.83664C79.6493 3.01685 77.3916 0.730957 74.6067 0.730957Z" fill="#DB534B"/>
<g id="Clip path group">
<mask id="mask0_81_366" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="1" y="5" width="78" height="76">
<g id="clipPath4206">
<path id="rect4208" d="M73.6244 5.2915H6.62595C3.92428 5.2915 1.73413 7.4473 1.73413 10.1066V76.0546C1.73413 78.7139 3.92428 80.8697 6.62595 80.8697H73.6244C76.3261 80.8697 78.5162 78.7139 78.5162 76.0546V10.1066C78.5162 7.4473 76.3261 5.2915 73.6244 5.2915Z" fill="white"/>
</g>
</mask>
<g mask="url(#mask0_81_366)">
<g id="g4145" opacity="0.489612">
<g id="g4147">
<path id="path4149" d="M65.8115 41.5171C65.8115 54.9863 54.4292 65.9053 40.3884 65.9053L198.828 221.861C212.869 221.861 224.251 210.942 224.251 197.472L65.8115 41.5171Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4151" d="M40.3884 65.9051C33.2495 65.9051 26.7979 63.0825 22.1802 58.5371L180.62 214.492C185.237 219.038 191.689 221.86 198.828 221.86L40.3884 65.9051Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4153" d="M22.1802 58.5373C17.7157 54.1428 14.9653 48.1381 14.9653 41.5171L173.405 197.472C173.405 204.093 176.155 210.098 180.62 214.493L22.1802 58.5373Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4155" d="M14.9653 41.5171C14.9653 28.0479 26.3476 17.1289 40.3884 17.1289L198.828 173.084C184.787 173.084 173.405 184.003 173.405 197.472L14.9653 41.5171Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4157" d="M40.3884 17.1289C47.5273 17.1289 53.9789 19.9516 58.5966 24.4969L217.036 180.452C212.418 175.907 205.967 173.084 198.828 173.084L40.3884 17.1289Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4159" d="M58.5964 24.4971C63.0609 28.8916 65.8113 34.8963 65.8113 41.5173L224.251 197.473C224.251 190.852 221.5 184.847 217.036 180.452L58.5964 24.4971Z" fill="black" fill-opacity="0.0588235"/>
</g>
<path id="path4111" d="M65.8114 41.5171C65.8114 54.9863 54.4291 65.9053 40.3884 65.9053C26.3476 65.9053 14.9653 54.9863 14.9653 41.5171C14.9653 28.0479 26.3476 17.1289 40.3884 17.1289C54.4291 17.1289 65.8114 28.0479 65.8114 41.5171Z" fill="black" fill-opacity="0.0588235"/>
</g>
</g>
</g>
<path id="path3864" d="M17.506 17.5386H62.9018C64.4068 17.5386 65.8501 18.1439 66.9143 19.2214C67.9784 20.2988 68.5763 21.7602 68.5763 23.284V57.7564C68.5763 58.5109 68.4295 59.258 68.1443 59.9551C67.8592 60.6521 67.4412 61.2855 66.9143 61.819C66.3873 62.3525 65.7618 62.7757 65.0733 63.0645C64.3849 63.3532 63.647 63.5018 62.9018 63.5018H17.506C14.3567 63.5018 11.8315 60.9164 11.8315 57.7564V23.284C11.8315 20.0953 14.3567 17.5386 17.506 17.5386ZM40.2039 37.6475L62.9018 23.284H17.506L40.2039 37.6475ZM17.506 57.7564H62.9018V30.0923L40.2039 44.4271L17.506 30.0923V57.7564Z" fill="white"/>
</g>
</g>
<defs>
<clipPath id="clip0_81_366">
<rect width="80" height="81" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
base_advanced_report_templates/static/description/assets/misc/features.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

BIN
base_advanced_report_templates/static/description/assets/misc/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

3
base_advanced_report_templates/static/description/assets/misc/phone.svg

@ -0,0 +1,3 @@
<svg width="36" height="44" viewBox="0 0 36 44" fill="none" xmlns="http://www.w3.org/2000/svg">
<path id="Vector" d="M7.25 19.3903C10.13 26.0689 14.76 31.5322 20.43 34.9305L24.83 29.7268C25.38 29.0778 26.17 28.889 26.86 29.1486C29.1 30.0218 31.51 30.4938 34 30.4938C35.11 30.4938 36 31.544 36 32.8537V41.1135C36 42.4233 35.11 43.4734 34 43.4734C15.22 43.4734 0 25.5143 0 3.35456C0 2.0448 0.9 0.994629 2 0.994629H9C10.11 0.994629 11 2.0448 11 3.35456C11 6.29268 11.4 9.1364 12.14 11.7795C12.36 12.5937 12.2 13.5259 11.65 14.1749L7.25 19.3903Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 565 B

BIN
base_advanced_report_templates/static/description/assets/misc/pictures.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
base_advanced_report_templates/static/description/assets/misc/pie-chart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
base_advanced_report_templates/static/description/assets/misc/right-arrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

9
base_advanced_report_templates/static/description/assets/misc/star (1) 2.svg

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 26 KiB

BIN
base_advanced_report_templates/static/description/assets/misc/star.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

9
base_advanced_report_templates/static/description/assets/misc/support (1) 1.svg

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 43 KiB

6
base_advanced_report_templates/static/description/assets/misc/support-email.svg

@ -0,0 +1,6 @@
<svg width="49" height="37" viewBox="0 0 49 37" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="Group">
<path id="Vector" d="M2.23798 3.59132C3.53363 4.39742 21.5313 15.9748 22.2027 16.3917C22.8741 16.8087 23.5573 17.0032 24.6173 17.0032C25.6774 17.0032 26.3606 16.8087 27.0319 16.3917C27.7033 15.9748 45.701 4.39742 46.9967 3.59132C47.4796 3.29945 48.2923 2.77131 48.469 2.17368C48.7753 1.11741 48.4455 0.714355 47.138 0.714355H24.6173H2.09664C0.789214 0.714355 0.459412 1.13131 0.765656 2.17368C0.942335 2.78521 1.75506 3.29945 2.23798 3.59132Z" fill="white"/>
<path id="Vector_2" d="M48.0214 4.21664C47.0555 4.80037 38.3865 12.0831 32.6503 16.4611L42.3323 29.3171C42.5679 29.5951 42.6739 29.9286 42.5443 30.0954C42.403 30.2483 42.0967 30.1649 41.8494 29.9008L30.2357 18.3374C28.4807 19.6716 27.2439 20.5889 27.0319 20.7279C26.1249 21.2699 25.4889 21.3394 24.6173 21.3394C23.7457 21.3394 23.1096 21.2699 22.2027 20.7279C21.9789 20.5889 20.7539 19.6716 18.9989 18.3374L7.38519 29.9008C7.14961 30.1788 6.83159 30.2622 6.69025 30.0954C6.54891 29.9425 6.65491 29.5951 6.89048 29.3171L16.5607 16.4611C10.8245 12.0831 2.06126 4.80037 1.09541 4.21664C0.0588929 3.59121 0 4.32783 0 4.89766C0 5.46749 0 33.3893 0 33.3893C0 34.6819 1.61367 36.2941 2.76797 36.2941H24.6173H46.4666C47.6209 36.2941 48.999 34.668 48.999 33.3893C48.999 33.3893 48.999 5.4536 48.999 4.89766C48.999 4.31393 49.0697 3.59121 48.0214 4.21664Z" fill="white"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
base_advanced_report_templates/static/description/assets/misc/support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

17
base_advanced_report_templates/static/description/assets/misc/tick-mark.svg

@ -0,0 +1,17 @@
<svg width="52" height="52" viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect width="52" height="52" fill="#F5F5F5"/>
<g clip-path="url(#clip0_0_1)">
<rect width="1440" height="7504" transform="translate(-107 -1660)" fill="white"/>
<rect x="-45" y="-203" width="1305" height="937" rx="19" fill="#FFF5FC"/>
<rect width="52" height="52" fill="url(#pattern0)"/>
</g>
<defs>
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0_0_1" transform="scale(0.00387597)"/>
</pattern>
<clipPath id="clip0_0_1">
<rect width="1440" height="7504" fill="white" transform="translate(-107 -1660)"/>
</clipPath>
<image id="image0_0_1" width="258" height="258" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQIAAAECCAYAAAAVT9lQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAJJ0lEQVR4nO3dYZXjNhQGUDEohEAohEAohEAYCIawEAxhIQRCIQTCQmhX202bTWcmcWzpSda953y/J9JYL5EsyykBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD1/f49f37PXwXztVprgMXeUtkCkDNXaw2wyOF7zql8EXir1SBgmTw4v6XyReBUq0HA835L/8zVSxeAXGSOldoELPBHqvMrIP+N3yu1CXhS/hXwJZUvAIoANKrGbcFr8t/5rU6zgGfVWhBUBKBBtRYEFQFoVJ4KXJIiAMOqsUNQEYBG1Z4K/PXz7ykC0IjaU4GcuUrLgKecUt0CoAhAQ/JP8jwgFQEY1CHV2yCkCECDaj0rcJ8/azQOeGxK9QvAtQi4OwDBIm4NKgLQkJoPDCkC0KCo9QBFABpRe6uwIgANidofcM23pAhAqDwAo9YDrkXAyUIQKA/AqPUARQAacEqxRSBHEYBAkYuC15yKtxL40JwUARhWXhQ8p/gi4DVkEOSQYu8MXDOXbijwvug7A4oABIvcLnwbuwYhyCnFFwBFAALVet/go+RfI4fCbQXekefi0QXgWgRsGILKWrk9eM0fZZsL3It+cOg+p7LNBe5Fnib0XuayzQXutbJHQBGAIK0VAbcJobI8B2+pCDhhCCrLRSB64N8XAbcJoaLWikCO24RQ0ZTiB/19PFIMFc0pftDfZy7aYuAXLRYBLyeFilosApfkDgFU02IRcIcAKmnt4aHbuEMAFbT28NBtpoLtBn5quQh8Ldhu4KeWi4BnCKCClouAo8aggpaLQM6xXNOBrPUiYPswFNZ6EZjLNR3IWi8CFgehsNaLgMVBKKz1IpBj5yAU1EMRmIq1HuiiCNg5CAX1UAQuyeIgFNNDEfBYMRTUQxHIOZXqAKDd8wRuMxdrPdDkyUL3ceYgFNRDEbBpCArqoQjk2DQEhfRSBKZSHQCj+5LiB/gzOZfqABjdKcUP8GfibcVQSC9FIOdYqA9gaD0VgalQH8DQ8rdr9OB+NudCfQBDy/vy83w7eoA/E+sCUEBPRSDnWKYbYFz5m7WnIjCV6QYYVy9PEl5zLtMNMK7eioB1ASggf7tGD+4lOZbpBhjXnOIH9pJ8KdMNMK5enh+4xvkCsLFTih/YS+J8AdhYb0Ugx/kCsKG8YSh6UC/NXKQnaFb+h+d5oJ+AZfS2azDHy0oHk4vA9Z+fL9ZT7MfZnTyYLil+YC+N9xEM5LYI3Ca/osq3wXq9bRi65q1EZ9Cmj4rANflb7Bj26fYhF9ToQb003lM4kEdF4DZT0Gfs3ZI+biW2EA/klQvUQuIy+ad19KB+JccSnUF71nxLWUh8Tu6j6AH9SmwhHsSaInAbC4kf6/E2YY4txIPYqghcc0l+Rt47pD6LgFeXD2LrInCbqWI7WtbrbcIctwoHULIIXGMhsb9zBa5xq3AANYrANSMvJNbs563/Z9Z6di7q4hxtITEXv+gB/Wo8Vbhz0d9QlzTGQmJuY/RgfjVuFe5cdBG4zVS4rZF6vU2Yc0lj/WobTktF4Jo9LiT2fIcgx63CnWv14tzbQuI5xffpq5kK9AeNaf3n6h4WEucU34+vxu7BgZxS/AX3WS6p34XE1vv2sziAdEA9PAM/FWt9Gbl4RffZmtg9OKBejsbqZSExf8aWp1yPct6+S+hFLyfmtr6Q2PsdArsH6epwjFYXEucU3zdrYvcgP/SwXnDNJbW1kNhTIX0vHijiX72sF9xmKtITy+SCFN0Pa2JKwP/0eFFHLiTmv9vz4mDOcfNeYRemFH9xLk3EQmLvi4M5HijiU+cUf5G+kpoLiXOlNpXKJZkS8EC+QHr9yZsv8OP2XfKL3hcHc0r3ETuRL5Toi3VNpu275Ife+yXHlIBF8gUTfdGuydYLiT3/UrrtE1MCFut9QWzLhcTe+yLHGQO85JD6/xbMWbuQ2Puvo5xpRfvhx/bT6It4i1zSa4tke2i/MwbYxJziL+atMi1o9yHt4xeRKQGb2MMGmts8s5C4lzZPD9oJi/TyyPKzebSQODfwGdfGlIAi9rCZ5j7vLSTuYV0gx5SAYnp6ZPnZXNJ/C4mHtI91gend/x5sZA8baz4bPHtYFzAloIpjir/Y5eOYElDNlOIvePl/ps/+aVDCHn5G7ymmBIQ4pP2uF/QYUwLCnFL8ABBTAhowp/iBMHIuyePFNKDHU5D3lOPjfxHUsbctyL3EiUM0Z0rxA2OkXJIpAY06p/gBMkqOT/5PoLpDckuxRkwJaN5ent5rNV5VRjf2cM5fq/H2YrqxlxN+Wou3F9MdtxS3jSkB3drjqUZROS3se2jKOcUPot5zXtzr0JhDcktxTb6lbV/fBmHcUnw90wv9Dc2aU/yg6i0OG2F3PKW4PA4bYZfcUnw+04t9DF3IF3j0IGs9l2TPAAOw6/DzHF/vWujHIbml+FHmFf0K3Tml+EHXWmwjZkh7fJfimpzWdSf0ac/vUlya88q+hK4dU/wgjI5txJAcZDKt70Lo38gHmdhGDDdG3XV43KLzYE/yT+TogVkzTiOGD5xT/ACtEXsG4BOHNMYtRacRwwN7P+vwvF1Xwb7tedfhYcN+gl3b667DactOghHs7azDy7bdA+OYU/wA3irHjfsGhrGXsw7nrTsGRpO/SaMH8prYMwAb6fnBpLcC/QFD6nWK4KEi2FiPDyZ5NwEUMKX4wf1sPFQEBfVwdoEFQiishynCqVjrgX+1PEU4F2w3cKfVKcKhZKOBX7U4RZiKthh4V0tThEuyQAhhWpkiOHUIArUwRTgXbyXwUPQU4VC+icAzoqYIU43GAc+JmCJckgVCaE7tKYIFQmhUrSnCuVaDgOVqTREOtRoEvKb0FGGq1xRgjVJTBAuE0JFSU4RTzUYA6209RbBACB3a+tBTZxBCp45pmyLgDELo3Nr3IjiDEHZg7RTBAiHsxKtvV/aSEtiZr2l5ITiGfFKgmDxFyPP9Z4vAHPMxgdLyS0mfXSA8BH1GoIK8MehRIZjCPh1QxaPtx5e4jwbUlL/xPyoEDhyBQXy0t+Ac+aGA+t7bW+B5AhjQ7d4CzxPAoPItwm/J8wQwvLxw+Bb9IQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4DV/A/Mf3+pWEmbtAAAAAElFTkSuQmCC"/>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 4.0 KiB

9
base_advanced_report_templates/static/description/assets/misc/whatsapp 1.svg

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 38 KiB

BIN
base_advanced_report_templates/static/description/assets/misc/whatsapp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

33
base_advanced_report_templates/static/description/assets/misc/whatsapp.svg

@ -0,0 +1,33 @@
<svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="3116884_whatsapp_square_chat_design_message_icon 1" clip-path="url(#clip0_81_382)">
<g id="layer1">
<path id="rect3851" d="M74.6066 0.72168H5.5424C2.75742 0.72168 0.499756 2.97935 0.499756 5.76433V74.8286C0.499756 77.6135 2.75742 79.8712 5.5424 79.8712H74.6066C77.3916 79.8712 79.6492 77.6135 79.6492 74.8286V5.76433C79.6492 2.97935 77.3916 0.72168 74.6066 0.72168Z" fill="#39BB59"/>
<g id="Clip path group">
<mask id="mask0_81_382" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="9" width="75" height="72">
<g id="clipPath4206">
<path id="rect4208" d="M75.7716 9.01709H11.1629C8.55758 9.01709 6.44556 11.0471 6.44556 13.5512V75.6502C6.44556 78.1543 8.55758 80.1843 11.1629 80.1843H75.7716C78.3769 80.1843 80.4889 78.1543 80.4889 75.6502V13.5512C80.4889 11.0471 78.3769 9.01709 75.7716 9.01709Z" fill="white"/>
</g>
</mask>
<g mask="url(#mask0_81_382)">
<g id="g4145" opacity="0.489612">
<g id="g4147">
<path id="path4149" d="M68.2374 43.1284C68.2374 55.8115 57.2611 66.0932 43.7212 66.0932L196.51 212.946C210.049 212.946 221.026 202.665 221.026 189.982L68.2374 43.1284Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4151" d="M43.7211 66.0932C36.8369 66.0932 30.6154 63.4353 26.1624 59.1553L178.951 206.008C183.404 210.289 189.625 212.946 196.51 212.946L43.7211 66.0932Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4153" d="M26.1623 59.1553C21.8571 55.0173 19.2048 49.363 19.2048 43.1284L171.993 189.982C171.993 196.216 174.645 201.87 178.951 206.008L26.1623 59.1553Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4155" d="M19.2048 43.1284C19.2048 30.4453 30.1811 20.1636 43.7211 20.1636L196.509 167.017C182.969 167.017 171.993 177.299 171.993 189.982L19.2048 43.1284Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4157" d="M43.7212 20.1636C50.6054 20.1636 56.8269 22.8215 61.2799 27.1015L214.068 173.955C209.615 169.675 203.394 167.017 196.51 167.017L43.7212 20.1636Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4159" d="M61.2798 27.1016C65.585 31.2396 68.2373 36.8939 68.2373 43.1284L221.026 189.982C221.026 183.747 218.373 178.093 214.068 173.955L61.2798 27.1016Z" fill="black" fill-opacity="0.0588235"/>
</g>
<path id="path4111" d="M68.2373 43.1284C68.2373 55.8115 57.261 66.0932 43.7211 66.0932C30.1811 66.0932 19.2048 55.8115 19.2048 43.1284C19.2048 30.4453 30.1811 20.1636 43.7211 20.1636C57.261 20.1636 68.2373 30.4453 68.2373 43.1284Z" fill="black" fill-opacity="0.0588235"/>
</g>
</g>
</g>
<path id="path4074" d="M51.3896 43.6875C51.9673 43.9879 52.337 44.1497 52.4526 44.3808C52.5912 44.635 52.545 45.7904 51.9673 47.1076C51.5051 48.4017 49.1018 49.6496 48.0388 49.6958C46.9758 49.7421 46.9527 50.5277 41.1985 48.0089C35.4444 45.49 31.9781 39.3431 31.7008 38.9502C31.4235 38.5574 29.4823 35.7612 29.5748 32.9188C29.6903 30.0995 31.1693 28.7592 31.7701 28.2046C32.3247 27.6037 32.9487 27.5344 33.3415 27.6037H34.4276C34.7743 27.6037 35.2596 27.4651 35.6986 28.6437L37.2931 32.965C37.4318 33.2654 37.5242 33.6121 37.3163 33.9818L36.6923 34.9293L35.7911 35.8998C35.5138 36.1771 35.1902 36.4776 35.5138 37.0553C35.7911 37.6561 36.9465 39.5741 38.5641 41.1687C40.667 43.2022 42.5158 43.8724 43.0704 44.1728C43.625 44.4963 43.9716 44.4501 44.3182 44.0804L46.1901 41.9081C46.6291 41.3304 46.9989 41.4691 47.5304 41.6539L51.3896 43.6875ZM40.4128 16.0493C46.5417 16.0493 52.4195 18.484 56.7533 22.8178C61.0871 27.1515 63.5217 33.0293 63.5217 39.1582C63.5217 45.287 61.0871 51.1649 56.7533 55.4986C52.4195 59.8324 46.5417 62.2671 40.4128 62.2671C35.8604 62.2671 31.6315 60.9498 28.0496 58.6852L17.304 62.2671L20.8858 51.5214C18.6212 47.9396 17.304 43.7106 17.304 39.1582C17.304 33.0293 19.7386 27.1515 24.0724 22.8178C28.4061 18.484 34.284 16.0493 40.4128 16.0493ZM40.4128 20.6711C35.5098 20.6711 30.8075 22.6188 27.3405 26.0858C23.8735 29.5528 21.9257 34.2551 21.9257 39.1582C21.9257 43.1329 23.1736 46.8072 25.2996 49.8114L23.0812 56.4898L29.7596 54.2714C32.7638 56.3974 36.4381 57.6453 40.4128 57.6453C45.3159 57.6453 50.0182 55.6975 53.4852 52.2305C56.9522 48.7635 58.9 44.0613 58.9 39.1582C58.9 34.2551 56.9522 29.5528 53.4852 26.0858C50.0182 22.6188 45.3159 20.6711 40.4128 20.6711Z" fill="white"/>
</g>
</g>
<defs>
<clipPath id="clip0_81_382">
<rect width="80" height="80" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
base_advanced_report_templates/static/description/assets/modules/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
base_advanced_report_templates/static/description/assets/modules/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
base_advanced_report_templates/static/description/assets/modules/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
base_advanced_report_templates/static/description/assets/modules/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

BIN
base_advanced_report_templates/static/description/assets/modules/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
base_advanced_report_templates/static/description/assets/modules/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
base_advanced_report_templates/static/description/assets/screenshots/hero.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 502 KiB

BIN
base_advanced_report_templates/static/description/assets/screenshots/image1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

BIN
base_advanced_report_templates/static/description/assets/screenshots/image10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
base_advanced_report_templates/static/description/assets/screenshots/image11.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

BIN
base_advanced_report_templates/static/description/assets/screenshots/image12.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
base_advanced_report_templates/static/description/assets/screenshots/image13.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

BIN
base_advanced_report_templates/static/description/assets/screenshots/image14.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
base_advanced_report_templates/static/description/assets/screenshots/image15.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

BIN
base_advanced_report_templates/static/description/assets/screenshots/image16.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

BIN
base_advanced_report_templates/static/description/assets/screenshots/image17.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

BIN
base_advanced_report_templates/static/description/assets/screenshots/image2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

BIN
base_advanced_report_templates/static/description/assets/screenshots/image3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
base_advanced_report_templates/static/description/assets/screenshots/image4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
base_advanced_report_templates/static/description/assets/screenshots/image5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save