@ -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: (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>`__ |
@ -0,0 +1,22 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<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 |
@ -0,0 +1,69 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<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': '17.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': ['base', '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', |
|||
'views/purchase_traditional_templates.xml', |
|||
'views/purchase_standard_templates.xml', |
|||
'views/purchase_modern_templates.xml', |
|||
'views/purchase_attractive_templates.xml', |
|||
'views/sale_traditional_templates.xml', |
|||
'views/sale_standrd_templates.xml', |
|||
'views/sale_modern_templates.xml', |
|||
'views/sale_attractive_templates.xml', |
|||
'views/stock_traditional_templates.xml', |
|||
'views/stock_standard_templates.xml', |
|||
'views/stock_modern_templates.xml', |
|||
'views/stock_attractive_templates.xml', |
|||
'views/account_traditional_templates.xml', |
|||
'views/account_standrd_templates.xml', |
|||
'views/account_modern_templates.xml', |
|||
'views/account_attractive_templates.xml', |
|||
], |
|||
'images': ['static/description/banner.jpg'], |
|||
'license': 'LGPL-3', |
|||
'installable': True, |
|||
'auto_install': False, |
|||
'application': False, |
|||
} |
@ -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> |
@ -0,0 +1,6 @@ |
|||
## Module <base_advanced_report_templates> |
|||
|
|||
#### 09.04.2024 |
|||
#### Version 17.0.1.0.0 |
|||
##### ADD |
|||
- Initial commit for Odoo Professional Report Templates |
@ -0,0 +1,33 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<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 |
@ -0,0 +1,33 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<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 models, fields |
|||
|
|||
|
|||
class AccountMove(models.Model): |
|||
_inherit = 'account.move' |
|||
|
|||
theme_id = fields.Many2one('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') |
|||
|
@ -0,0 +1,35 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<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." |
|||
) |
@ -0,0 +1,190 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<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 models, fields, api |
|||
|
|||
|
|||
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 |
@ -0,0 +1,61 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<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 models, fields |
|||
|
|||
|
|||
class DocLayout(models.Model): |
|||
"""Adding the fields for customization""" |
|||
_name = "doc.layout" |
|||
_description = 'Adding the fields for customization' |
|||
|
|||
name = fields.Char("Name") |
|||
|
|||
base_color = fields.Char("Base Color", |
|||
help="Background color for the invoice") |
|||
|
|||
heading_text_color = fields.Char("Heading text Color", |
|||
help="Heading Text color") |
|||
|
|||
text_color = fields.Char("Text Color", help="Text color of items") |
|||
|
|||
customer_text_color = fields.Char("Customer Text Color", |
|||
help="Customer address text color") |
|||
|
|||
company_text_color = fields.Char("Company Text Color", |
|||
help="Company address Text color") |
|||
|
|||
logo_position = fields.Selection([('left', 'Left'), ('right', 'Right')], |
|||
string="Logo Position", |
|||
help="Company logo position") |
|||
|
|||
customer_position = fields.Selection( |
|||
[('left', 'Left'), ('right', 'Right')], string="Customer position", |
|||
help="Customer address position") |
|||
|
|||
company_position = fields.Selection([('left', 'Left'), ('right', 'Right')], |
|||
string="Company Address Position", |
|||
help="Company address position") |
|||
|
|||
company_id = fields.Many2one('res.company', string='Company', index=True, |
|||
default=lambda self: self.env.company, |
|||
help="Company name") |
@ -0,0 +1,37 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<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 models, fields |
|||
|
|||
|
|||
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('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. " |
|||
) |
|||
|
@ -0,0 +1,34 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<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.") |
@ -0,0 +1,52 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<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 models, fields |
|||
|
|||
|
|||
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("doc.layout", |
|||
string="Sale", help="This field " |
|||
"specifies the document layout " |
|||
"associated with sales for the " |
|||
"company." |
|||
) |
|||
purchase_document_layout_id = fields.Many2one("doc.layout", |
|||
string="Purchase", help="This" |
|||
"field specifies the document" |
|||
"layout associated with " |
|||
"purchases for the company." |
|||
) |
|||
account_document_layout_id = fields.Many2one("doc.layout", |
|||
string="Account", |
|||
help="Document layout " |
|||
"associated with accounting" |
|||
" for the company." |
|||
) |
|||
stock_document_layout_id = fields.Many2one("doc.layout", |
|||
string="Stock", help="Document " |
|||
"layout associated with stock" |
|||
) |
@ -0,0 +1,42 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<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 models, fields |
|||
|
|||
|
|||
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('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." |
|||
) |
@ -0,0 +1,35 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<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." |
|||
) |
@ -0,0 +1,33 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<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 models, fields |
|||
|
|||
|
|||
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.") |
@ -0,0 +1,35 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<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 models, fields |
|||
|
|||
|
|||
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('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") |
|
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 589 B |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 565 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 967 B |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 92 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 502 KiB |
After Width: | Height: | Size: 157 KiB |
After Width: | Height: | Size: 78 KiB |
After Width: | Height: | Size: 79 KiB |
After Width: | Height: | Size: 78 KiB |
After Width: | Height: | Size: 79 KiB |
After Width: | Height: | Size: 73 KiB |
After Width: | Height: | Size: 76 KiB |
After Width: | Height: | Size: 67 KiB |
After Width: | Height: | Size: 67 KiB |
After Width: | Height: | Size: 89 KiB |
After Width: | Height: | Size: 83 KiB |
After Width: | Height: | Size: 74 KiB |
After Width: | Height: | Size: 79 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 66 KiB |
After Width: | Height: | Size: 55 KiB |
After Width: | Height: | Size: 54 KiB |
After Width: | Height: | Size: 99 KiB |
After Width: | Height: | Size: 7.7 KiB |
@ -0,0 +1,953 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="en"> |
|||
|
|||
<head> |
|||
<meta charset="UTF-8"> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|||
<title>Odoo App 3 Index</title> |
|||
<!-- Bootstrap CSS --> |
|||
<link rel="stylesheet" |
|||
href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" |
|||
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" |
|||
crossorigin="anonymous"> |
|||
<link rel="stylesheet" |
|||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"> |
|||
<link rel="preconnect" href="https://fonts.googleapis.com"> |
|||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
|||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" |
|||
rel="stylesheet"> |
|||
</head> |
|||
<body> |
|||
<section> |
|||
<div class="container" |
|||
style="font-family: 'Inter', sans-serif !important;background-color: #fff !important;"> |
|||
<div class="row"> |
|||
<div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between flex-wrap align-items-sm-center" |
|||
style="border-bottom:1px solid rgba(0, 0, 0, 0.22)"> |
|||
<div class="my-3"> |
|||
<img src="assets/misc/Cybrosys R.png" |
|||
style="width:auto !important; height:40px !important"> |
|||
</div> |
|||
<div class="my-3 d-flex align-items-center"> |
|||
<div class="text-center" |
|||
style="background-color:#017E84 !important;font-size: 0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> |
|||
Community |
|||
</div> |
|||
<div class="text-center" |
|||
style="background-color:#875A7B !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important;min-width: 120px !important;"> |
|||
Enterprise |
|||
</div> |
|||
<div class="text-center" |
|||
style="background-color:#7C7BAD !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> |
|||
Odoo.sh |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="row"> |
|||
<div class="col-sm-12 col-md-12 col-lg-12 text-center d-flex align-items-center flex-column" |
|||
style="margin: 80px 0px !important;"> |
|||
<h1 style="font-size: 2.8rem;font-weight: 700; color: |
|||
#1A202C;"> |
|||
Odoo Professional Report Templates</h1> |
|||
<p class="my-3 mb-4" |
|||
style="max-width: 80%; font-weight: 400 !important; line-height: 32px; color: #718096;"> |
|||
Customizable Multiple Report Templates for Sale, Purchase, Invoice and Delivery |
|||
</p> |
|||
<div style="width: 80%; margin-top: 3rem;"> |
|||
<img src="assets/screenshots/hero.gif" |
|||
class="img-responsive" width="100%" height="auto"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container mt-5 mb-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
|||
<p class="m-0" |
|||
style="font-weight: 600; font-size: 24px; color:#714b67 !important"> |
|||
Key Highlights |
|||
</p> |
|||
</div> |
|||
<div class="row py-4"> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
|||
background: #FFF; |
|||
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
|||
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
|||
display: flex; justify-content: center; align-items: center; |
|||
margin-right: 10px; flex-shrink: 0;"> |
|||
<i class="fa-solid fa-star " |
|||
style="color: #fff;font-size:14px;"></i> |
|||
</div> |
|||
<div> |
|||
<p style="color: #1A202C;font-weight: 600; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
Configure the layout</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
|||
background: #FFF; |
|||
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
|||
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
|||
display: flex; justify-content: center; align-items: center; |
|||
margin-right: 10px; flex-shrink: 0;"> |
|||
<i class="fa-solid fa-star " |
|||
style="color: #fff;font-size:14px;"></i> |
|||
</div> |
|||
<div> |
|||
<p style="color: #1A202C;font-weight: 600; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
Configure the position of Text color, |
|||
Heading and Background |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
|||
background: #FFF; |
|||
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
|||
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
|||
display: flex; justify-content: center; align-items: center; |
|||
margin-right: 10px; flex-shrink: 0;"> |
|||
<i class="fa-solid fa-star " |
|||
style="color: #fff;font-size:14px;"></i> |
|||
</div> |
|||
<div> |
|||
<p style="color: #1A202C;font-weight: 600; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
Configure Layout In Each Module</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
|||
background: #FFF; |
|||
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
|||
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
|||
display: flex; justify-content: center; align-items: center; |
|||
margin-right: 10px; flex-shrink: 0; "> |
|||
<i class="fa-solid fa-star " |
|||
style="color: #fff;font-size:14px;"></i> |
|||
</div> |
|||
<div> |
|||
<p style="color: #1A202C;font-weight: 600; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
Edit the theme</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container rounded"> |
|||
<ul class="nav nav-tabs d-flex" |
|||
style="width: fit-content;margin: 0 auto;gap: 1rem;"> |
|||
<li class="col text-center py-2 text-nowrap " |
|||
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> |
|||
<a |
|||
class="active show" data-toggle="tab" href="#tab1" |
|||
style="color: #fff;font-weight: 500; background-color: #714B67; text-decoration: none;"> |
|||
<i class="fa-regular fa-image pr-2" |
|||
style="color: #fff;"></i> |
|||
Screenshots</a></li> |
|||
<li class="col text-center py-2 text-nowrap " |
|||
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> |
|||
<a |
|||
data-toggle="tab" href="#tab2" |
|||
style="color: #fff;font-weight: 500; text-decoration: none;"><i |
|||
class="fa-solid fa-star pr-2" |
|||
style="color: #fff;"></i>Features</a></li> |
|||
<li class="col text-center py-2 text-nowrap " |
|||
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> |
|||
<a |
|||
data-toggle="tab" href="#tab3" |
|||
style="color: #fff;font-weight: 500; text-decoration: none; background-color: #714B67;"><i |
|||
class="fa-solid fa-book-open pr-2" |
|||
style="color: #fff;"></i>Released Notes</a></li> |
|||
</ul> |
|||
<div class="tab-content" |
|||
style="background-color: rgba(121, 113, 119, 0.04);"> |
|||
<div id="tab1" class="tab-pane fade in active show"> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/image1.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Select The Configuration Layout</h4> |
|||
<p style=" color:#718096!important; font-size:1rem !important;line-height: 28px;"> |
|||
From the company form view we can select the layout type in each module |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/image2.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Report Template Configuration</h4> |
|||
<p style=" color:#718096!important; font-size:1rem !important;line-height: 28px;"> |
|||
you can configure the template on the external link of the template type. |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/image3.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Print SalesOrder Traditional report</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/image10.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Print SalesOrder Modern report</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/image4.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Print SalesOrder Standard report</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/image5.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Print SalesOrder Attractive report</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/image6.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Print PurchaseOrder Traditional report</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/image7.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Print PurchaseOrder Modern report |
|||
</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/image8.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Print PurchaseOrder Standard report</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/image9.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Print PurchaseOrder Attractive report</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/image3.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Print Invoice Traditional report</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/image11.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Print Invoice Modern report |
|||
</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/image12.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Print Invoice Standard report |
|||
</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/image13.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Print Invoice Attractive report |
|||
</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/image15.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Print Delivery Traditional report |
|||
</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/image14.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Print Delivery Modern report |
|||
</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/image16.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Print Delivery Standard report |
|||
</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/image17.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Print Delivery Attractive report |
|||
</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div id="tab2" class="tab-pane fade"> |
|||
<div class="col-mg-12" style="padding: 1rem 4rem;"> |
|||
<ul style="list-style: none; padding: 1rem 0;font-weight: 500;"> |
|||
<li class="py-3" |
|||
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<span style="margin-right: 12px;"><img |
|||
src="assets/misc/star (1) 2.svg" |
|||
alt="" |
|||
width="16px"></span> |
|||
Configure the layout |
|||
</li> |
|||
<li class="py-3" |
|||
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<span style="margin-right: 12px;"><img |
|||
src="assets/misc/star (1) 2.svg" |
|||
alt="" |
|||
width="16px"></span> |
|||
Configure the position of Text color,Heading,Background |
|||
</li> |
|||
<li class="py-3" |
|||
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<span style="margin-right: 12px;"><img |
|||
src="assets/misc/star (1) 2.svg" |
|||
alt="" |
|||
width="16px"></span> |
|||
Configure Layout In Each Module |
|||
</li> |
|||
<li class="py-3" |
|||
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<span style="margin-right: 12px;"><img |
|||
src="assets/misc/star (1) 2.svg" |
|||
alt="" |
|||
width="16px"></span> |
|||
Edit the theme |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
</div> |
|||
<div id="tab3" class="tab-pane fade"> |
|||
<div class="col-mg-12 active" style="padding: 1rem 4rem;"> |
|||
<div class="py-3" |
|||
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="d-flex mb-3" |
|||
style="font-size: 0.8rem; font-weight: 500;"><span>Version |
|||
17.0.1.0.0</span><span |
|||
class="px-2">|</span><span |
|||
style="color: #714B67;font-weight: 600;">Released on:11th December 2023</span> |
|||
</div> |
|||
<p class="m-0" |
|||
style=" color:#718096!important; font-size:1rem !important;line-height: 28px;"> |
|||
Initial Commit for Odoo Professional Report Templates</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container mt-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> |
|||
<p class="m-0" |
|||
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
|||
Related Products</p> |
|||
</div> |
|||
</div> |
|||
<div id="myCarousel" class="carousel slide py-3" data-ride="carousel"> |
|||
<div class="carousel-inner"> |
|||
<div class="carousel-item active"> |
|||
<div class="row p-4"> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/sale_discount_total/" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/1.png" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/subscription_package/" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/2.png" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/dynamic_product_fields/" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/3.png" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="carousel-item"> |
|||
<div class="row p-4"> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/export_stockinfo_xls/" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/4.png" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/sale_discount_total/" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/5.png" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/sale_invoice_due_date_reminder/" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px;"> |
|||
<img src="assets/modules/6.png" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<a class="carousel-control-prev" href="#myCarousel" |
|||
data-slide="prev" style="width: 35px; color: #000;"> |
|||
<span class="carousel-control-prev-icon"> |
|||
<i class="fa fa-chevron-left" |
|||
style="font-size: 24px;"></i> |
|||
</span> |
|||
</a> |
|||
<a class="carousel-control-next" href="#myCarousel" |
|||
data-slide="next" style="width: 35px; color: #000;"> |
|||
<span class="carousel-control-next-icon"> |
|||
<i class="fa fa-chevron-right" |
|||
style="font-size: 24px;"></i> |
|||
</span> |
|||
</a> |
|||
</div> |
|||
<div class="container mt-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
|||
<p class="m-0" |
|||
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
|||
Our Services</p> |
|||
|
|||
</div> |
|||
</div> |
|||
<div class="container my-5"> |
|||
<div class="row py-3"> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#13EA36 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/cogs.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Customization</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#DBC711; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/wrench.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Implementation</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#FF6B6B ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/lifebuoy.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Support</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#FFA801 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/user.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Hire |
|||
Odoo Developer</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
|||
|
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#54A0FF; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/puzzle.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Integration</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#6D7680 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/update.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Migration</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#786FA6 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/consultation.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Consultancy</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#F8A5C2 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/training.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Implementation</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#E6BE26; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/license.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Licensing Consultancy</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container mt-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
|||
<p class="m-0" |
|||
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
|||
Our Industries</p> |
|||
|
|||
</div> |
|||
</div> |
|||
<div class="container"> |
|||
<div class="row my-5 py-4"> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100 " |
|||
style="border-right: 1px solid rgb(209, 209, 209); border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; box-shadow: 6px 0 10px rgba(228, 227, 227, 0.373);"> |
|||
<img src="assets/icons/trading-black.png" width="42px" |
|||
height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Trading</p> |
|||
<p>Easily procure and sell your products</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgb(209, 209, 209); padding: 30px;"> |
|||
<img src="assets/icons/pos-black.png" width="42px" |
|||
height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">POS</p> |
|||
<p>Easy configuration and convivial experience</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgba(0, 0, 0, 0.2); padding: 30px; box-shadow: 0 5px 10px rgba(228, 227, 227, 0.373)"> |
|||
<img src="assets/icons/education-black.png" width="42px" |
|||
height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
Education</p> |
|||
<p>A platform for educational management</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; "> |
|||
<img src="assets/icons/manufacturing-black.png" |
|||
width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
Manufacturing</p> |
|||
<p>Plan, track and schedule your operations</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;"> |
|||
<img src="assets/icons/ecom-black.png" width="42px" |
|||
height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">E-commerce & |
|||
Website</p> |
|||
<p>Mobile friendly, awe-inspiring product pages</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;box-shadow: 0 -5px 10px rgba(228, 227, 227, 0.373);"> |
|||
<img src="assets/icons/service-black.png" width="42px" |
|||
height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Service |
|||
Management</p> |
|||
<p>Keep track of services and invoice</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px; "> |
|||
<img src="assets/icons/restaurant-black.png" |
|||
width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
Restaurant</p> |
|||
<p>Run your bar or restaurant methodically</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style=" padding: 30px;box-shadow: -5px 0 10px rgba(228, 227, 227, 0.373);"> |
|||
<img src="assets/icons/hotel-black.png" width="42px" |
|||
height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Hotel |
|||
Management</p> |
|||
<p>An all-inclusive hotel management application</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container mt-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> |
|||
<p class="m-0" |
|||
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
|||
Support</p> |
|||
</div> |
|||
</div> |
|||
<div class="container my-5"> |
|||
<div class="row" style="background-color: #FFFAFE;"> |
|||
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center" |
|||
style="border-right: 1px solid #D9D9D9;"> |
|||
<div style="padding: 30px;"> |
|||
<div class="d-flex align-items-center"> |
|||
<img src="assets/misc/support (1) 1.svg" alt="" |
|||
width="60px" style="margin-right: 12px;"> |
|||
<div style="padding: 0px 8px;"> |
|||
<span |
|||
style="color: #714B67;font-size: 24px;font-weight: 600;padding-bottom: 1rem;">Need |
|||
Help?</span> |
|||
<p class="m-0" style="color:#718096;">Got |
|||
questions or need help? Get in touch.</p> |
|||
<div style="font-weight: 400;"><span><img |
|||
src="assets/misc/support-email.svg" |
|||
alt="" |
|||
width="18px" |
|||
style="filter: invert(1);margin-right: 0.8rem;"></span>odoo@cybrosys.com |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center"> |
|||
<div style="padding: 30px;"> |
|||
<div class="d-flex align-items-center"> |
|||
<img src="assets/misc/whatsapp 1.svg" alt="" |
|||
width="60px" style="margin-right: 12px;"> |
|||
<div> |
|||
<span style="color: #714B67;font-size: 24px;font-weight: 600;">WhatsApp</span> |
|||
<p class="m-0" style="color:#718096;">Say hi to |
|||
us on WhatsApp!</p> |
|||
<div style="font-weight: 400; font-size: 16px;"><span><img |
|||
src="assets/misc/phone.svg" |
|||
alt="" width="14px" |
|||
style="filter: invert(1); margin-right: 0.8rem;"></span>+91 |
|||
99456767686 |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
<!-- Optional JavaScript --> |
|||
<!-- jQuery first, then Popper.js, then Bootstrap JS --> |
|||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> |
|||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> |
|||
</body> |
|||
</html> |
@ -0,0 +1,336 @@ |
|||
<?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-set="tax_totals" t-value="o.tax_totals"/> |
|||
<t t-call="account.document_tax_totals"/> |
|||
<!--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> |
@ -0,0 +1,388 @@ |
|||
<?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-set="tax_totals" |
|||
t-value="o.tax_totals"/> |
|||
<t t-call="account.document_tax_totals"/> |
|||
<!--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> |
@ -0,0 +1,20 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<data> |
|||
<!-- Extend account form view to add image to the invoice line --> |
|||
<record id="view_move_form" model="ir.ui.view"> |
|||
<field name="name">account.move.view.form.inherit.base.advanced.report.templates</field> |
|||
<field name="model">account.move</field> |
|||
<field name="inherit_id" ref="account.view_move_form"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='invoice_line_ids']/tree/field[@name='product_id']" position="after"> |
|||
<field name="order_line_image" widget="image" |
|||
style="height:30px;width:30px ;" readonly="1" invisible="1"/> |
|||
</xpath> |
|||
<xpath expr="//field[@name='partner_id']" position="after"> |
|||
<field name="theme_id" invisible="1"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
</data> |
|||
</odoo> |
@ -0,0 +1,319 @@ |
|||
<?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-set="tax_totals" |
|||
t-value="o.tax_totals"/> |
|||
<t t-call="account.document_tax_totals"/> |
|||
<!--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> |
@ -0,0 +1,333 @@ |
|||
<?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-set="tax_totals" |
|||
t-value="o.tax_totals"/> |
|||
<t t-call="account.document_tax_totals"/> |
|||
<!--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> |
@ -0,0 +1,36 @@ |
|||
<odoo> |
|||
<data> |
|||
<!--Configuration Layout View--> |
|||
<record id="doc_layout_view_form" model="ir.ui.view"> |
|||
<field name="name">doc.layout.view.form</field> |
|||
<field name="model">doc.layout</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Customize Document"> |
|||
<sheet> |
|||
<div class="oe_title"> |
|||
<h1> |
|||
<field name="name"/> |
|||
</h1> |
|||
</div> |
|||
<group> |
|||
<group> |
|||
<field name="text_color" widget="color"/> |
|||
<field name="heading_text_color" |
|||
widget="color"/> |
|||
<field name="customer_text_color" |
|||
widget="color"/> |
|||
<field name="company_text_color" |
|||
widget="color"/> |
|||
</group> |
|||
<group> |
|||
<field name="base_color" widget="color"/> |
|||
<field name="company_position"/> |
|||
<field name="logo_position"/> |
|||
</group> |
|||
</group> |
|||
</sheet> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
</data> |
|||
</odoo> |
@ -0,0 +1,203 @@ |
|||
<?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></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> |
|||
<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-set="tax_totals" t-value="o.tax_totals"/> |
|||
<t t-call="account.document_tax_totals"/> |
|||
</table> |
|||
</div> |
|||
</div> |
|||
<br></br> |
|||
<br></br> |
|||
<br></br> |
|||
<div t-attf-style=" background-color:#{o.theme_id.base_color};color:#{o.theme_id.heading_text_color};"> |
|||
<span></span> |
|||
<span></span> |
|||
<span>Note</span> |
|||
<p t-field="o.notes" class="mt-4"/> |
|||
<div class="oe_structure"/> |
|||
</div> |
|||
</div> |
|||
</t> |
|||
</template> |
|||
</odoo> |
@ -0,0 +1,241 @@ |
|||
<?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> |
|||
<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-set="tax_totals" t-value="o.tax_totals"/> |
|||
<t t-call="account.document_tax_totals"/> |
|||
</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> |
@ -0,0 +1,21 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<data> |
|||
<!-- Extended purchase order form view to add image to the order line--> |
|||
<record id="purchase_order_form" model="ir.ui.view"> |
|||
<field name="name">purchase.order.view.form.inherit.base.advanced.report.templates</field> |
|||
<field name="model">purchase.order</field> |
|||
<field name="inherit_id" ref="purchase.purchase_order_form"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='order_line']/tree/field[@name='product_id']" position="after"> |
|||
<field name="order_line_image" widget="image" |
|||
style="height:30px;width:30px ;" readonly="1" invisible="1"/> |
|||
</xpath> |
|||
|
|||
<xpath expr="//field[@name='partner_id']" position="after"> |
|||
<field name="theme_id" invisible="1"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
</data> |
|||
</odoo> |
@ -0,0 +1,167 @@ |
|||
<?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-set="tax_totals" t-value="o.tax_totals"/> |
|||
<t t-call="account.document_tax_totals"/> |
|||
</table> |
|||
</div> |
|||
</div> |
|||
<br></br> |
|||
<br></br> |
|||
<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> |