diff --git a/invoice_format_editor/README.rst b/invoice_format_editor/README.rst index 7fb044466..97c3d8dc4 100644 --- a/invoice_format_editor/README.rst +++ b/invoice_format_editor/README.rst @@ -1,32 +1,35 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + Invoice Format Editor ===================== -* Invoice Format Editor for Odoo 15 community editions +* The module assists in customizing invoice layouts in Odoo 16. -Installation +Configuration ============= - - www.odoo.com/documentation/15.0/setup/install.html - - Install our custom addon +* No additional configurations needed -License +Company ------- -General Public License, Version 3 (LGPL v3). -(https://www.odoo.com/documentation/user/15.0/legal/licenses/licenses.html) +* `Cybrosys Techno Solutions `__ -Company +License ------- -* 'Cybrosys Techno Solutions `__ +Affero General Public License v3.0 (AGPL v3) +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) Credits ------- * Developer: -(v14) Sonu @ Cybrosys -(v14) Dino @ Cybrosys -(v15) Midilaj V K @ Cybrosys - + (v14) - Sonu@cybrosys, Dino@cybrosys, Contact: odoo@cybrosys.com + (v15) - Midilaj V K, Contact: odoo@cybrosys.com + (v16) - Jumana Jabin MK, Contact: odoo@cybrosys.com Contacts -------- * Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com Bug Tracker ----------- @@ -34,9 +37,12 @@ Bugs are tracked on GitHub Issues. In case of trouble, please check there if you 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 https://www.cybrosys.com +For support and more information, please visit `Our Website `__ Further information =================== diff --git a/invoice_format_editor/__init__.py b/invoice_format_editor/__init__.py index 4bb88c487..df75ca1b2 100644 --- a/invoice_format_editor/__init__.py +++ b/invoice_format_editor/__init__.py @@ -3,21 +3,20 @@ # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2021-TODAY Cybrosys Technologies() -# Author: Cybrosys Techno Solutions() +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Jumana Jabin MK() # -# You can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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. +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# (LGPL v3) along with this program. +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. # If not, see . # ############################################################################# - from . import model diff --git a/invoice_format_editor/__manifest__.py b/invoice_format_editor/__manifest__.py index b256b114a..fa08c604d 100644 --- a/invoice_format_editor/__manifest__.py +++ b/invoice_format_editor/__manifest__.py @@ -3,51 +3,52 @@ # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2021-TODAY Cybrosys Technologies() -# Author: Cybrosys Techno Solutions() +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Jumana Jabin MK() # -# You can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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. +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# (LGPL v3) along with this program. +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. # If not, see . # ############################################################################# - { 'name': 'Invoice Format Editor', - 'version': '16.0.1.0.0', + 'version': '16.0.2.0.0', 'category': 'Accounting', 'summary': 'Invoice Format Editor', - 'description': """Invoice Format Editor For Configuring the Invoice Templates""", + 'description': """Invoice Format Editor For Configuring the Invoice + Templates""", 'author': 'Cybrosys Techno Solutions', 'company': 'Cybrosys Techno Solutions', 'maintainer': 'Cybrosys Techno Solutions', 'images': ['static/description/banner.png'], 'website': 'https://www.cybrosys.com', - 'depends': ['account'], + 'depends': ['base', 'account', 'web', 'sale_management'], 'data': ['security/ir.model.access.csv', 'data/design_templates.xml', - 'views/custom_layouts.xml', - 'views/document_base_layout.xml', - 'reports/custom_invoice_template.xml', - 'reports/custom_invoice_template_fantacy.xml', - 'reports/custom_invoice_template_old_standard.xml', - 'reports/default_invoice_template.xml', - 'template_view/default_template_view.xml', - 'template_view/normal_template_view.xml', - 'template_view/modern_template_view.xml', - 'template_view/old_template_view.xml', + 'views/doc_layout_views.xml', + 'views/base_document_layout_views.xml', + 'views/custom_external_layout_templates.xml', + 'reports/normal_invoice_templates.xml', + 'reports/modern_invoice_templates.xml', + 'reports/old_standard_invoice_templates.xml', + 'reports/report_invoice_templates.xml', + 'reports/preview_layout_report_templates.xml', + 'preview_templates/normal_preview_templates.xml', + 'preview_templates/modern_preview_templates.xml', + 'preview_templates/old_standard_preview_templates.xml', ], - 'license': 'LGPL-3', + 'license': 'AGPL-3', 'installable': True, - 'application': True, 'auto_install': False, + 'application': False, } diff --git a/invoice_format_editor/data/design_templates.xml b/invoice_format_editor/data/design_templates.xml index 3bfe5e48a..3d9e29661 100644 --- a/invoice_format_editor/data/design_templates.xml +++ b/invoice_format_editor/data/design_templates.xml @@ -1,27 +1,30 @@ - - Modern - #732673 - #ffffff - #000000 - #000000 - right - right - left - #808080 - - - Standard - #ff7733 - #ffffff - #000000 - #000000 - left - left - right - #808080 - + + + Modern + #732673 + #ffffff + #000000 + #d117d1 + right + right + right + left + #2439d6 + + + Standard + #ff7733 + #ffffff + #000000 + #0c1d75 + left + left + left + right + #17822f + \ No newline at end of file diff --git a/invoice_format_editor/doc/RELEASE_NOTES.md b/invoice_format_editor/doc/RELEASE_NOTES.md index d47e59b55..f9d0398e4 100644 --- a/invoice_format_editor/doc/RELEASE_NOTES.md +++ b/invoice_format_editor/doc/RELEASE_NOTES.md @@ -1,6 +1,6 @@ ## Module -#### 20.11.2021 +#### 31.07.2023 #### Version 16.0.1.0.0 #### ADD -- Initial commit for invoice_format_editor +- Initial commit for Invoice Format Editor diff --git a/invoice_format_editor/model/__init__.py b/invoice_format_editor/model/__init__.py index 67c1d90de..67b066e76 100644 --- a/invoice_format_editor/model/__init__.py +++ b/invoice_format_editor/model/__init__.py @@ -3,21 +3,23 @@ # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2021-TODAY Cybrosys Technologies() -# Author: Cybrosys Techno Solutions() +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Jumana Jabin MK() # -# You can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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. +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# (LGPL v3) along with this program. +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. # If not, see . # ############################################################################# from . import res_company -from . import document_layout +from . import doc_layout +from . import account_move +from . import base_document_layout diff --git a/invoice_format_editor/model/account_move.py b/invoice_format_editor/model/account_move.py new file mode 100644 index 000000000..68d3c87d7 --- /dev/null +++ b/invoice_format_editor/model/account_move.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Jumana Jabin MK() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +"""Inherit account move model""" +from odoo import models, fields + + +class TemplateInvoice(models.Model): + """Inheriting the account move model and added the base layout model and + a relational field to doc layout model""" + _inherit = 'account.move' + + base_layout = fields.Selection(selection=[('default', 'Default'), + ('modern', 'Modern'), + ('normal', 'Normal'), + ('old', 'Old Standard')], + required=True, + string="Invoice Document Layout", + default="default") + theme_id = fields.Many2one('doc.layout', + related='company_id.document_layout_id') diff --git a/invoice_format_editor/model/base_document_layout.py b/invoice_format_editor/model/base_document_layout.py new file mode 100644 index 000000000..ebd25eeca --- /dev/null +++ b/invoice_format_editor/model/base_document_layout.py @@ -0,0 +1,82 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Jumana Jabin MK() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +"""Base document layout""" +from odoo import api, models, fields + + +class BaseDocumentLayout(models.TransientModel): + """Inheriting the base document layout model""" + _inherit = 'base.document.layout' + + base_layout = fields.Selection(related='company_id.base_layout', + readonly=False, + help="Base layout selection field inside " + "document layout model") + document_layout_id = fields.Many2one( + related='company_id.document_layout_id', readonly=False, + help="custom document layouts") + + @api.depends('report_layout_id', 'logo', 'font', 'primary_color', + 'secondary_color', 'report_header', 'report_footer', + 'base_layout', '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.base_layout == 'default': + 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( + 'web.report_invoice_wizard_preview', + {'company': wizard, 'preview_css': preview_css}) + elif wizard.base_layout == 'normal': + 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( + 'invoice_format_editor.report_preview_normal', + {'company': wizard, 'preview_css': preview_css, }) + + elif wizard.base_layout == '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( + 'invoice_format_editor.report_preview_modern', + {'company': wizard, 'preview_css': preview_css, }) + + elif wizard.base_layout == 'old': + 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( + 'invoice_format_editor.report_preview_old', + {'company': wizard, 'preview_css': preview_css, }) + else: + wizard.preview = False + else: + wizard.preview = False + + @api.onchange('paperformat_id') + def _onchange_paperformat_id(self): + if self.paperformat_id.id == 3: + self.base_layout = 'default' diff --git a/invoice_format_editor/model/doc_layout.py b/invoice_format_editor/model/doc_layout.py new file mode 100644 index 000000000..6e6932148 --- /dev/null +++ b/invoice_format_editor/model/doc_layout.py @@ -0,0 +1,70 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Jumana Jabin MK() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +"""doc layout""" +from odoo import models, fields + + +class AddDocumentTemplate(models.Model): + """Doc layout model""" + _name = "doc.layout" + _description = 'Adding the fields for customization' + _rec_name = 'name' + + name = fields.Char("Name") + base_color = fields.Char(srting="Base Color", + help="Background color for the invoice") + heading_text_color = fields.Char(srting="Heading text Color", + help="Heading Text color") + text_color = fields.Char(srting="Text Color", help="Text color of items") + customer_text_color = fields.Char(srting="Customer Text Color", + help="Customer address text color") + company_text_color = fields.Char(srting="Company Text Color", + help="Company address Text color") + logo_position = fields.Selection(selection=[('left', 'Left'), ('right', 'Right')], + string="Logo Position", + help="Company logo position") + tagline_position = fields.Selection(selection=[('left', 'Left'), ('right', 'Right')], + string="Tagline Position", + help="Company Tagline position") + customer_position = fields.Selection( + selection=[('left', 'Left'), ('right', 'Right')], string="Customer position", + help="Customer address position") + company_position = fields.Selection(selection=[('left', 'Left'), ('right', 'Right')], + string="Company Address Position", + help="Company address position") + sales_person = fields.Boolean(string='Sales person', default=True, + help="Sales Person") + description = fields.Boolean(string='Description', default=True, + help="Description") + tax_value = fields.Boolean(string='Tax', default=True, help="Tax") + reference = fields.Boolean(string='Customer Reference', default=True, + help="Customer Reference") + source = fields.Boolean(string='Source', default=False, + help="Source Document") + address = fields.Boolean(string='Address', default=True, + help="Address") + city = fields.Boolean(string='City', default=True, + help="City") + country = fields.Boolean(string='Country', default=True, + help="Country") + vat = fields.Boolean(string='VAT', default=True, + help='Customer vat id') diff --git a/invoice_format_editor/model/document_layout.py b/invoice_format_editor/model/document_layout.py deleted file mode 100644 index c6303ce61..000000000 --- a/invoice_format_editor/model/document_layout.py +++ /dev/null @@ -1,74 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################# -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2021-TODAY Cybrosys Technologies() -# Author: Cybrosys Techno Solutions() -# -# 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 . -# -############################################################################# - -from odoo import models, fields, api - - -class AddDocumentTemplate(models.Model): - _name = "doc.layout" - _description = 'Adding the fields for customization' - _rec_name = 'name' - - 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") - - sales_person = fields.Boolean('Sales person', default=False, - help="Sales Person") - description = fields.Boolean('Description', default=False, - help="Description") - hsn_code = fields.Boolean('HSN Code', default=False, help="HSN code") - tax_value = fields.Boolean('Tax', default=False, help="Tax") - reference = fields.Boolean('Reference', default=False, - help="Customer Reference") - source = fields.Boolean('Source', default=False, - help="Source Document") - address = fields.Boolean('Address', default=False, - help="Address") - city = fields.Boolean('City', default=False, - help="City") - country = fields.Boolean('Country', default=False, - help="Country") diff --git a/invoice_format_editor/model/res_company.py b/invoice_format_editor/model/res_company.py index 63098167e..e65e09ce8 100644 --- a/invoice_format_editor/model/res_company.py +++ b/invoice_format_editor/model/res_company.py @@ -3,93 +3,38 @@ # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2021-TODAY Cybrosys Technologies() -# Author: Cybrosys Techno Solutions() +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Jumana Jabin MK() # -# You can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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. +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# (LGPL v3) along with this program. +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. # If not, see . # ############################################################################# -from odoo import models, fields, api +"""res company""" +from odoo import models, fields class ReportCompanyTemplate(models.Model): + """Inheriting the res company model""" _inherit = 'res.company' - base_layout = fields.Selection( - [('normal', 'Normal'), ('modern', 'Modern'), ('old', 'Old Standard'), - ('default', 'Default')], - string="Invoice Document Layout", default="default") + base_layout = fields.Selection(selection=[('default', 'Default'), + ('modern', 'Modern'), + ('normal', 'Normal'), + ('old', 'Old Standard')], + required=True, + string="Invoice Document Layout", + help="base layout selection", + default="default") document_layout_id = fields.Many2one("doc.layout", - string="Invoice Layout Configuration" - ) - - -class TemplateInvoice(models.Model): - _inherit = 'account.move' - - base_layout = fields.Selection( - [('normal', 'Normal'), ('modern', 'Modern'), ('old', 'Old Standard'), - ('default', 'Default')]) - theme_id = fields.Many2one('doc.layout', - related='company_id.document_layout_id') - - -class BaseDocumentLayout(models.TransientModel): - _inherit = 'base.document.layout' - - base_layout = fields.Selection(related='company_id.base_layout', - readonly=False) - document_layout_id = fields.Many2one( - related='company_id.document_layout_id', readonly=False) - - @api.depends('report_layout_id', 'logo', 'font', 'primary_color', - 'secondary_color', 'report_header', 'report_footer', - 'base_layout', '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.base_layout == 'default': - 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( - 'invoice_format_editor.report_preview_default', - {'company': wizard, 'preview_css': preview_css}) - - elif wizard.base_layout == 'normal': - 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( - 'invoice_format_editor.report_preview_normal', - {'company': wizard, 'preview_css': preview_css, }) - - elif wizard.base_layout == '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( - 'invoice_format_editor.report_preview_modern', - {'company': wizard, 'preview_css': preview_css, }) - - elif wizard.base_layout == 'old': - 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( - 'invoice_format_editor.report_preview_old', - {'company': wizard, 'preview_css': preview_css, }) - else: - wizard.preview = False - else: - wizard.preview = False + string="Invoice Layout Configuration", + help="Invoice layout configuration") diff --git a/invoice_format_editor/preview_templates/modern_preview_templates.xml b/invoice_format_editor/preview_templates/modern_preview_templates.xml new file mode 100644 index 000000000..f795e5c60 --- /dev/null +++ b/invoice_format_editor/preview_templates/modern_preview_templates.xml @@ -0,0 +1,278 @@ + + + + + + + \ No newline at end of file diff --git a/invoice_format_editor/preview_templates/normal_preview_templates.xml b/invoice_format_editor/preview_templates/normal_preview_templates.xml new file mode 100644 index 000000000..9e9e94bd5 --- /dev/null +++ b/invoice_format_editor/preview_templates/normal_preview_templates.xml @@ -0,0 +1,293 @@ + + + + + + diff --git a/invoice_format_editor/preview_templates/old_standard_preview_templates.xml b/invoice_format_editor/preview_templates/old_standard_preview_templates.xml new file mode 100644 index 000000000..9262c5ed5 --- /dev/null +++ b/invoice_format_editor/preview_templates/old_standard_preview_templates.xml @@ -0,0 +1,282 @@ + + + + + + + \ No newline at end of file diff --git a/invoice_format_editor/reports/custom_invoice_template.xml b/invoice_format_editor/reports/custom_invoice_template.xml deleted file mode 100644 index 0a518738f..000000000 --- a/invoice_format_editor/reports/custom_invoice_template.xml +++ /dev/null @@ -1,463 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/invoice_format_editor/reports/custom_invoice_template_fantacy.xml b/invoice_format_editor/reports/custom_invoice_template_fantacy.xml deleted file mode 100644 index d14180992..000000000 --- a/invoice_format_editor/reports/custom_invoice_template_fantacy.xml +++ /dev/null @@ -1,389 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/invoice_format_editor/reports/custom_invoice_template_old_standard.xml b/invoice_format_editor/reports/custom_invoice_template_old_standard.xml deleted file mode 100644 index 630e05e2a..000000000 --- a/invoice_format_editor/reports/custom_invoice_template_old_standard.xml +++ /dev/null @@ -1,289 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/invoice_format_editor/reports/default_invoice_template.xml b/invoice_format_editor/reports/default_invoice_template.xml deleted file mode 100644 index a0dfbb13a..000000000 --- a/invoice_format_editor/reports/default_invoice_template.xml +++ /dev/null @@ -1,294 +0,0 @@ - - - - - - - - - - - - - - diff --git a/invoice_format_editor/reports/modern_invoice_templates.xml b/invoice_format_editor/reports/modern_invoice_templates.xml new file mode 100644 index 000000000..c9fed4936 --- /dev/null +++ b/invoice_format_editor/reports/modern_invoice_templates.xml @@ -0,0 +1,365 @@ + + + + + + + \ No newline at end of file diff --git a/invoice_format_editor/reports/normal_invoice_templates.xml b/invoice_format_editor/reports/normal_invoice_templates.xml new file mode 100644 index 000000000..c3bbf5cc3 --- /dev/null +++ b/invoice_format_editor/reports/normal_invoice_templates.xml @@ -0,0 +1,375 @@ + + + + + + + \ No newline at end of file diff --git a/invoice_format_editor/reports/old_standard_invoice_templates.xml b/invoice_format_editor/reports/old_standard_invoice_templates.xml new file mode 100644 index 000000000..4b2d63b5a --- /dev/null +++ b/invoice_format_editor/reports/old_standard_invoice_templates.xml @@ -0,0 +1,366 @@ + + + + + + \ No newline at end of file diff --git a/invoice_format_editor/reports/preview_layout_report_templates.xml b/invoice_format_editor/reports/preview_layout_report_templates.xml new file mode 100644 index 000000000..086aeeaa9 --- /dev/null +++ b/invoice_format_editor/reports/preview_layout_report_templates.xml @@ -0,0 +1,20 @@ + + + + \ No newline at end of file diff --git a/invoice_format_editor/reports/report_invoice_templates.xml b/invoice_format_editor/reports/report_invoice_templates.xml new file mode 100644 index 000000000..87472cc52 --- /dev/null +++ b/invoice_format_editor/reports/report_invoice_templates.xml @@ -0,0 +1,59 @@ + + + + + + + + \ No newline at end of file diff --git a/invoice_format_editor/security/ir.model.access.csv b/invoice_format_editor/security/ir.model.access.csv index d7804d521..f306374a0 100644 --- a/invoice_format_editor/security/ir.model.access.csv +++ b/invoice_format_editor/security/ir.model.access.csv @@ -1,2 +1,2 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_document_template,document.template,model_doc_layout,base.group_user,1,1,1,1 +access_doc_layout,access.doc.layout,model_doc_layout,base.group_user,1,1,1,1 diff --git a/invoice_format_editor/static/description/assets/modules/budget_image.png b/invoice_format_editor/static/description/assets/modules/budget_image.png deleted file mode 100644 index b50130c7d..000000000 Binary files a/invoice_format_editor/static/description/assets/modules/budget_image.png and /dev/null differ diff --git a/invoice_format_editor/static/description/assets/modules/credit_image.png b/invoice_format_editor/static/description/assets/modules/credit_image.png deleted file mode 100644 index 3ad04ecfd..000000000 Binary files a/invoice_format_editor/static/description/assets/modules/credit_image.png and /dev/null differ diff --git a/invoice_format_editor/static/description/assets/modules/employee_image.png b/invoice_format_editor/static/description/assets/modules/employee_image.png deleted file mode 100644 index 30ad58232..000000000 Binary files a/invoice_format_editor/static/description/assets/modules/employee_image.png and /dev/null differ diff --git a/invoice_format_editor/static/description/assets/modules/export_image.png b/invoice_format_editor/static/description/assets/modules/export_image.png deleted file mode 100644 index 492980ad0..000000000 Binary files a/invoice_format_editor/static/description/assets/modules/export_image.png and /dev/null differ diff --git a/invoice_format_editor/static/description/assets/modules/gantt_image.png b/invoice_format_editor/static/description/assets/modules/gantt_image.png deleted file mode 100644 index 1ae7cfe3b..000000000 Binary files a/invoice_format_editor/static/description/assets/modules/gantt_image.png and /dev/null differ diff --git a/invoice_format_editor/static/description/assets/modules/quotation_image.png b/invoice_format_editor/static/description/assets/modules/quotation_image.png deleted file mode 100644 index 499b1a72f..000000000 Binary files a/invoice_format_editor/static/description/assets/modules/quotation_image.png and /dev/null differ diff --git a/invoice_format_editor/static/description/assets/modules/w1.gif b/invoice_format_editor/static/description/assets/modules/w1.gif new file mode 100644 index 000000000..db040e0de Binary files /dev/null and b/invoice_format_editor/static/description/assets/modules/w1.gif differ diff --git a/invoice_format_editor/static/description/assets/modules/w2.png b/invoice_format_editor/static/description/assets/modules/w2.png new file mode 100644 index 000000000..b3c3ca084 Binary files /dev/null and b/invoice_format_editor/static/description/assets/modules/w2.png differ diff --git a/invoice_format_editor/static/description/assets/modules/w3.png b/invoice_format_editor/static/description/assets/modules/w3.png new file mode 100644 index 000000000..082948398 Binary files /dev/null and b/invoice_format_editor/static/description/assets/modules/w3.png differ diff --git a/invoice_format_editor/static/description/assets/modules/w4.png b/invoice_format_editor/static/description/assets/modules/w4.png new file mode 100644 index 000000000..4e506f79b Binary files /dev/null and b/invoice_format_editor/static/description/assets/modules/w4.png differ diff --git a/invoice_format_editor/static/description/assets/modules/w5.png b/invoice_format_editor/static/description/assets/modules/w5.png new file mode 100644 index 000000000..33372bdc1 Binary files /dev/null and b/invoice_format_editor/static/description/assets/modules/w5.png differ diff --git a/invoice_format_editor/static/description/assets/modules/w6.png b/invoice_format_editor/static/description/assets/modules/w6.png new file mode 100644 index 000000000..1b57f61b3 Binary files /dev/null and b/invoice_format_editor/static/description/assets/modules/w6.png differ diff --git a/invoice_format_editor/static/description/assets/screenshots/INV_EDT_001.png b/invoice_format_editor/static/description/assets/screenshots/INV_EDT_001.png new file mode 100644 index 000000000..892a70cce Binary files /dev/null and b/invoice_format_editor/static/description/assets/screenshots/INV_EDT_001.png differ diff --git a/invoice_format_editor/static/description/assets/screenshots/INV_EDT_002.png b/invoice_format_editor/static/description/assets/screenshots/INV_EDT_002.png new file mode 100644 index 000000000..98eeba83b Binary files /dev/null and b/invoice_format_editor/static/description/assets/screenshots/INV_EDT_002.png differ diff --git a/invoice_format_editor/static/description/assets/screenshots/INV_EDT_003.png b/invoice_format_editor/static/description/assets/screenshots/INV_EDT_003.png new file mode 100644 index 000000000..2474b73d9 Binary files /dev/null and b/invoice_format_editor/static/description/assets/screenshots/INV_EDT_003.png differ diff --git a/invoice_format_editor/static/description/assets/screenshots/INV_EDT_004.png b/invoice_format_editor/static/description/assets/screenshots/INV_EDT_004.png new file mode 100644 index 000000000..64cb244c9 Binary files /dev/null and b/invoice_format_editor/static/description/assets/screenshots/INV_EDT_004.png differ diff --git a/invoice_format_editor/static/description/assets/screenshots/INV_EDT_005.png b/invoice_format_editor/static/description/assets/screenshots/INV_EDT_005.png new file mode 100644 index 000000000..2df0b6b78 Binary files /dev/null and b/invoice_format_editor/static/description/assets/screenshots/INV_EDT_005.png differ diff --git a/invoice_format_editor/static/description/assets/screenshots/INV_EDT_007.png b/invoice_format_editor/static/description/assets/screenshots/INV_EDT_007.png new file mode 100644 index 000000000..26a4b9e52 Binary files /dev/null and b/invoice_format_editor/static/description/assets/screenshots/INV_EDT_007.png differ diff --git a/invoice_format_editor/static/description/assets/screenshots/hero.gif b/invoice_format_editor/static/description/assets/screenshots/hero.gif index 427b9e1bd..dc1d43da2 100644 Binary files a/invoice_format_editor/static/description/assets/screenshots/hero.gif and b/invoice_format_editor/static/description/assets/screenshots/hero.gif differ diff --git a/invoice_format_editor/static/description/assets/screenshots/inv_format1.png b/invoice_format_editor/static/description/assets/screenshots/inv_format1.png deleted file mode 100644 index 84f41d13d..000000000 Binary files a/invoice_format_editor/static/description/assets/screenshots/inv_format1.png and /dev/null differ diff --git a/invoice_format_editor/static/description/assets/screenshots/inv_format2.png b/invoice_format_editor/static/description/assets/screenshots/inv_format2.png deleted file mode 100644 index 458cbcc0f..000000000 Binary files a/invoice_format_editor/static/description/assets/screenshots/inv_format2.png and /dev/null differ diff --git a/invoice_format_editor/static/description/assets/screenshots/inv_format3.png b/invoice_format_editor/static/description/assets/screenshots/inv_format3.png deleted file mode 100644 index 299c60d8d..000000000 Binary files a/invoice_format_editor/static/description/assets/screenshots/inv_format3.png and /dev/null differ diff --git a/invoice_format_editor/static/description/assets/screenshots/inv_format4.png b/invoice_format_editor/static/description/assets/screenshots/inv_format4.png deleted file mode 100644 index 154e5a0af..000000000 Binary files a/invoice_format_editor/static/description/assets/screenshots/inv_format4.png and /dev/null differ diff --git a/invoice_format_editor/static/description/assets/screenshots/inv_format5.png b/invoice_format_editor/static/description/assets/screenshots/inv_format5.png deleted file mode 100644 index d647eab5c..000000000 Binary files a/invoice_format_editor/static/description/assets/screenshots/inv_format5.png and /dev/null differ diff --git a/invoice_format_editor/static/description/assets/screenshots/inv_format6.png b/invoice_format_editor/static/description/assets/screenshots/inv_format6.png deleted file mode 100644 index 4846adb7c..000000000 Binary files a/invoice_format_editor/static/description/assets/screenshots/inv_format6.png and /dev/null differ diff --git a/invoice_format_editor/static/description/assets/screenshots/inv_format7.png b/invoice_format_editor/static/description/assets/screenshots/inv_format7.png deleted file mode 100644 index 99666dc81..000000000 Binary files a/invoice_format_editor/static/description/assets/screenshots/inv_format7.png and /dev/null differ diff --git a/invoice_format_editor/static/description/index.html b/invoice_format_editor/static/description/index.html index 81632b3f4..15fd8857b 100644 --- a/invoice_format_editor/static/description/index.html +++ b/invoice_format_editor/static/description/index.html @@ -1,19 +1,19 @@
- + style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;"> +
+ class="mr-2"> Community
+ class="mr-2"> Enterprise
-
+
Odoo.sh
@@ -21,16 +21,13 @@ -

Invoice - Format Editor +

Invoice Format Editor

-

A Module For Configuring the - Invoice Templates +

A Module For Configuring the Invoice Templates

-
@@ -185,7 +182,7 @@ configuration in settings, user can select and configure the invoice document layout

- +
@@ -195,26 +192,32 @@

User can configure the text positions, text colors and invoice fields.

- +

Print Invoice

- +

Normal Template

- + +
+ +
+

Modern Template +

+

Old Standard Template

- +
@@ -222,91 +225,84 @@ -
-
- -
-

Related - Products -

-
- - + + diff --git a/invoice_format_editor/static/src/css/invoice_layout.css b/invoice_format_editor/static/src/css/invoice_layout.css deleted file mode 100644 index 84139d5c3..000000000 --- a/invoice_format_editor/static/src/css/invoice_layout.css +++ /dev/null @@ -1,3 +0,0 @@ -body{ - color:red; -} \ No newline at end of file diff --git a/invoice_format_editor/template_view/default_template_view.xml b/invoice_format_editor/template_view/default_template_view.xml deleted file mode 100644 index 070202ed5..000000000 --- a/invoice_format_editor/template_view/default_template_view.xml +++ /dev/null @@ -1,204 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/invoice_format_editor/template_view/modern_template_view.xml b/invoice_format_editor/template_view/modern_template_view.xml deleted file mode 100644 index 36db76ee1..000000000 --- a/invoice_format_editor/template_view/modern_template_view.xml +++ /dev/null @@ -1,233 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/invoice_format_editor/template_view/normal_template_view.xml b/invoice_format_editor/template_view/normal_template_view.xml deleted file mode 100644 index a071afa57..000000000 --- a/invoice_format_editor/template_view/normal_template_view.xml +++ /dev/null @@ -1,223 +0,0 @@ - - - - - - diff --git a/invoice_format_editor/template_view/old_template_view.xml b/invoice_format_editor/template_view/old_template_view.xml deleted file mode 100644 index cb836033a..000000000 --- a/invoice_format_editor/template_view/old_template_view.xml +++ /dev/null @@ -1,249 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/invoice_format_editor/views/document_base_layout.xml b/invoice_format_editor/views/base_document_layout_views.xml similarity index 54% rename from invoice_format_editor/views/document_base_layout.xml rename to invoice_format_editor/views/base_document_layout_views.xml index 2d41fa019..5e9191c1b 100644 --- a/invoice_format_editor/views/document_base_layout.xml +++ b/invoice_format_editor/views/base_document_layout_views.xml @@ -6,10 +6,10 @@ base.document.layout - - - + + + diff --git a/invoice_format_editor/views/custom_external_layout_templates.xml b/invoice_format_editor/views/custom_external_layout_templates.xml new file mode 100644 index 000000000..81aa980d7 --- /dev/null +++ b/invoice_format_editor/views/custom_external_layout_templates.xml @@ -0,0 +1,310 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/invoice_format_editor/views/custom_layouts.xml b/invoice_format_editor/views/doc_layout_views.xml similarity index 69% rename from invoice_format_editor/views/custom_layouts.xml rename to invoice_format_editor/views/doc_layout_views.xml index 35a4049eb..256f141ad 100644 --- a/invoice_format_editor/views/custom_layouts.xml +++ b/invoice_format_editor/views/doc_layout_views.xml @@ -8,25 +8,21 @@
-

- -

+

- - - + + + + - - - - + + + + @@ -35,7 +31,6 @@ - @@ -43,8 +38,12 @@ - - + + +