diff --git a/invoice_multi_approval/README.rst b/invoice_multi_approval/README.rst new file mode 100644 index 000000000..32a6ff68b --- /dev/null +++ b/invoice_multi_approval/README.rst @@ -0,0 +1,52 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Invoice Multi Level Approval +============================ +Enables the option for adding multiple approvals to the invoice documents + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +GNU Affero General Public License v3.0 (AGPL v3) +(http://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +* Developer: + Sayooj A O + (V14) Muhammed Nafih, + (V15) Akshay CK, + (V16) Sahla Sherin, + (V17) Jumana Haseen, + 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 `__ + +Further information +=================== +HTML Description: ``__ diff --git a/invoice_multi_approval/__init__.py b/invoice_multi_approval/__init__.py new file mode 100644 index 000000000..93201bac6 --- /dev/null +++ b/invoice_multi_approval/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Jumana Haseen () +# +# 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 . +# +############################################################################# +from . import models diff --git a/invoice_multi_approval/__manifest__.py b/invoice_multi_approval/__manifest__.py new file mode 100644 index 000000000..b6f64f020 --- /dev/null +++ b/invoice_multi_approval/__manifest__.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Jumana Haseen () +# +# 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 . +# +############################################################################# +{ + 'name': "Invoice Multi Level Approval", + 'version': '17.0.1.0.0', + 'category': 'Accounting', + 'summary': """This module add the multiple approval option for invoice, + bill, refund and credit notes with single or multiple approvals""", + 'description': """This module add the multiple approval option for invoice, + bill,refund and credit notes.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['account'], + 'data': [ + 'security/invoice_multi_approval_groups.xml', + 'security/ir.model.access.csv', + 'data/invoice_approval_data.xml', + 'views/invoice_approval_views.xml', + 'views/account_move_views.xml', + ], + 'images': ['static/description/banner.png'], + 'license': "AGPL-3", + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/invoice_multi_approval/data/invoice_approval_data.xml b/invoice_multi_approval/data/invoice_approval_data.xml new file mode 100644 index 000000000..d75d2be39 --- /dev/null +++ b/invoice_multi_approval/data/invoice_approval_data.xml @@ -0,0 +1,12 @@ + + + + + + True + + + + diff --git a/invoice_multi_approval/doc/RELEASE_NOTES.md b/invoice_multi_approval/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..1e2c29901 --- /dev/null +++ b/invoice_multi_approval/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 05.03.2024 +#### Version 17.0.1.0.0 +##### ADD +- Initial commit for Invoice Multi Level Approval diff --git a/invoice_multi_approval/models/__init__.py b/invoice_multi_approval/models/__init__.py new file mode 100644 index 000000000..5a89a46da --- /dev/null +++ b/invoice_multi_approval/models/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Jumana Haseen () +# +# 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 . +# +############################################################################# +from . import account_move +from . import approval_line +from . import invoice_approval diff --git a/invoice_multi_approval/models/account_move.py b/invoice_multi_approval/models/account_move.py new file mode 100644 index 000000000..94630ad0b --- /dev/null +++ b/invoice_multi_approval/models/account_move.py @@ -0,0 +1,208 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Jumana Haseen () +# +# 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 . +# +############################################################################# +from odoo import api, fields, models + + +class AccountMove(models.Model): + """This class inherits model account.move and adds required fields""" + _inherit = 'account.move' + + approval_ids = fields.One2many('approval.line', + 'move_id', string="Lines", + help="Approval lines") + document_fully_approved = fields.Boolean(string="Document Fully Approved", + compute='_compute_document_fully_' + 'approved', + help="Enable/disable to approve" + " document.") + check_approve_ability = fields.Boolean(string="Check Approve Ability", + compute='_compute_check_approve_' + 'ability', + help="Enable/disable to check " + "approve ability.") + is_approved = fields.Boolean(string="Is Approved", + compute='_compute_is_approved', + help="Enable/disable to compute approved" + " or not.") + page_visibility = fields.Boolean(string="Page visibility", + compute='_compute_page_visibility', + help=" To compute page visibility.") + users_approved = fields.Boolean(string="Users Approved", + help="All the users approved the invoice") + + @api.depends('approval_ids') + def _compute_page_visibility(self): + """Compute function for making the approval page visible/invisible""" + for rec in self: + rec.page_visibility = True if rec.approval_ids else False + + @api.onchange('partner_id') + def _onchange_partner_id(self): + """This is the onchange function of the partner which loads the + persons for the approval to the approver table of the account.move""" + res = super(AccountMove, self)._onchange_partner_id() + invoice_approval_id = self.env['invoice.approval'].browse(self.env.ref( + 'invoice_multi_approval.default_invoice_multi_approval_config').id) + self.approval_ids = None + approval_managers = self.env['res.users'].search([('groups_id', 'in', + self.env.ref( + 'invoice_multi_' + 'approval.group_approve_manager').id)]) + if invoice_approval_id.no_approve: + if approval_managers: + for manager in approval_managers: + if not manager.id in self.approval_ids.approver_id.ids: + vals = { + 'approver_id': manager.id + } + self.approval_ids |= self.approval_ids.new(vals) + if (invoice_approval_id.approve_customer_invoice and + self.move_type == 'out_invoice'): + for user in invoice_approval_id.invoice_approver_ids: + if not user.id in self.approval_ids.approver_id.ids: + vals = { + 'approver_id': user.id + } + self.approval_ids |= self.approval_ids.new(vals) + elif (invoice_approval_id.approve_vendor_bill and + self.move_type == 'in_invoice'): + for user in invoice_approval_id.bill_approver_ids: + if not user.id in self.approval_ids.approver_id.ids: + vals = { + 'approver_id': user.id + } + self.approval_ids |= self.approval_ids.new(vals) + elif (invoice_approval_id.approve_customer_credit and + self.move_type == 'out_refund'): + for user in invoice_approval_id.cust_credit_approver_ids: + if not user.id in self.approval_ids.approver_id.ids: + vals = { + 'approver_id': user.id + } + self.approval_ids |= self.approval_ids.new(vals) + elif (invoice_approval_id.approve_vendor_credit and + self.move_type == 'in_refund'): + for user in invoice_approval_id.vend_credit_approver_ids: + if not user.id in self.approval_ids.approver_id.ids: + vals = { + 'approver_id': user.id + } + self.approval_ids |= self.approval_ids.new(vals) + return res + + @api.depends('approval_ids.approver_id') + def _compute_check_approve_ability(self): + """This is the compute function which checks if the current + logged-in user is eligible for approving the document""" + for rec in self: + current_user = self.env.uid + if self.env.ref( + 'invoice_multi_approval.default_invoice_multi_approval_config').approve_customer_invoice: + approvers_list = [approver.approver_id.id for approver in + rec.approval_ids] + rec.check_approve_ability = current_user in approvers_list + else: + rec.check_approve_ability = False + + def action_invoice_approve(self): + """This is the function of the approve button also updates the approval + table values according to the approval of the users""" + self.ensure_one() + current_user = self.env.uid + for approval_id in self.approval_ids: + if current_user == approval_id.approver_id.id: + approval_id.update({'approval_status': True}) + invoice_approval_id = self.env['invoice.approval'].browse(self.env.ref( + 'invoice_multi_approval.default_invoice_multi_approval_config').id) + approved_users = self.approval_ids.filtered( + lambda item: item.approval_status).approver_id.ids + if (invoice_approval_id.approve_customer_invoice and + self.move_type == 'out_invoice'): + approval_users = invoice_approval_id.invoice_approver_ids.ids + if approved_users == approval_users: + self.users_approved = True + elif (invoice_approval_id.approve_vendor_bill and + self.move_type == 'in_invoice'): + approval_users = invoice_approval_id.bill_approver_ids.ids + if approved_users == approval_users: + self.users_approved = True + elif (invoice_approval_id.approve_customer_credit and + self.move_type == 'out_refund'): + approval_users = invoice_approval_id.cust_credit_approver_ids.ids + if approved_users == approval_users: + self.users_approved = True + elif (invoice_approval_id.approve_vendor_credit and + self.move_type == 'in_refund'): + approval_users = invoice_approval_id.vend_credit_approver_ids.ids + if approved_users == approval_users: + self.users_approved = True + + def _compute_is_approved(self): + """In this compute function we are verifying whether the document + is approved/not approved by the current logged in user""" + for rec in self: + current_user = rec.env.uid + if rec.invoice_line_ids and rec.approval_ids: + for approval_id in rec.approval_ids: + if current_user == approval_id.approver_id.id: + if approval_id.approval_status: + rec.is_approved = True + break + else: + rec.is_approved = False + else: + rec.is_approved = False + else: + rec.is_approved = False + + @api.depends('approval_ids') + def _compute_document_fully_approved(self): + """This is the compute function which verifies whether + the document is completely approved or not""" + for rec in self: + length_approval_ids = len(rec.approval_ids) + approval_ids = rec.approval_ids + approve_lines = approval_ids.filtered( + lambda item: item.approval_status) + length_approve_lines = len(approve_lines) + rec.document_fully_approved = True \ + if length_approval_ids == length_approve_lines else False + approval_managers = self.env['res.users'].search( + [('groups_id', 'in', + self.env.ref( + 'invoice_multi_' + 'approval.group_approve_manager').id)]).ids + for approval in approve_lines: + if approval.approver_id.id in approval_managers: + rec.document_fully_approved = True + if rec.users_approved: + rec.document_fully_approved = True + + @api.model + def create(self, vals_list): + """Super the create function adding approvers while create account + move through sale /purchase + :param vals_list: dictionary with the detaisl of current record set + :return: record""" + res = super(AccountMove, self).create(vals_list) + res._onchange_partner_id() + return res diff --git a/invoice_multi_approval/models/approval_line.py b/invoice_multi_approval/models/approval_line.py new file mode 100644 index 000000000..9f4a29c72 --- /dev/null +++ b/invoice_multi_approval/models/approval_line.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Jumana Haseen () +# +# 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 . +# +############################################################################# +from odoo import fields, models + + +class ApprovalLine(models.Model): + """This class creates a model 'approval.line' and adds fields""" + _name = 'approval.line' + _description = 'Approval Line In Move' + + move_id = fields.Many2one('account.move', + string="Approval lines", help="Approval line") + approver_id = fields.Many2one('res.users', string='Approver', + help="Approver of the invoice") + approval_status = fields.Boolean(string='Status', help="Status of" + "approvals") diff --git a/invoice_multi_approval/models/invoice_approval.py b/invoice_multi_approval/models/invoice_approval.py new file mode 100644 index 000000000..a3e0f5cac --- /dev/null +++ b/invoice_multi_approval/models/invoice_approval.py @@ -0,0 +1,110 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Jumana Haseen () +# +# 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 . +# +############################################################################# +from odoo import api, fields, models + + +class InvoiceApproval(models.Model): + """This class creates a model 'invoice.approval' and adds + required fields""" + _name = 'invoice.approval' + _rec_name = 'name' + _inherit = ['mail.thread', 'mail.activity.mixin'] + _description = 'Invoice Approval' + + name = fields.Char(default='Approval Configuration', string="Name", + help="Approval configuration.") + approve_customer_invoice = fields.Boolean(string="Approval on" + " Customer Invoice", + help='Enable this field ' + 'for adding the approvals ' + 'for the customer invoice.') + invoice_approver_ids = fields.Many2many('res.users', + 'invoice_id', + string='Invoice Approver', + domain=lambda self: [ + ('groups_id', 'in', + self.env.ref('invoice_multi_' + 'approval.group_approver').id)], + help='In this field you can add ' + 'the approvers for the ' + 'customer invoice.') + approve_vendor_bill = fields.Boolean(string="Approval on Vendor Bill", + help='Enable this field for adding' + ' the approvals for the' + ' Vendor bill.') + bill_approver_ids = fields.Many2many('res.users', + 'bill_id', + string='Bill Approver', + domain=lambda self: [ + ('groups_id', 'in', + self.env.ref('invoice_multi_' + 'approval.group_approver').id)], + help='In this field you can add the ' + 'approvers for the Vendor bill.') + approve_customer_credit = fields.Boolean(string='Approval on Customer' + ' Refund', + help='Enable this field for' + ' adding the approvals' + ' for the customer credit ' + 'note.') + cust_credit_approver_ids = fields.Many2many('res.users', + 'cust_credit_id', + string='Customer Credit Note' + ' Approver', + domain=lambda self: [ + ('groups_id', 'in', + self.env.ref( + 'invoice_multi_' + 'approval.group_' + 'approver').id)], + help='In this field you can add' + 'the approvers for the' + ' Customer credit note.') + approve_vendor_credit = fields.Boolean(string='Approval on Vendor Refund', + help='Enable this field for adding ' + 'the approvals for the' + ' Vendor credit note.') + vend_credit_approver_ids = fields.Many2many('res.users', + 'vend_credit_id', + string='Vendor Credit Note' + ' Approver', + domain=lambda self: [ + ('groups_id', 'in', + self.env.ref( + 'invoice_multi_' + 'approval.group_' + 'approver').id)], + help='In this field you can' + ' add the approvers ' + 'for the Vendor credit' + ' note.') + no_approve = fields.Boolean(string='No Approval', + help='Approval is not needed', + compute="_compute_no_approve") + + @api.depends('approve_vendor_credit', 'approve_customer_invoice', + 'approve_vendor_bill', 'approve_customer_credit') + def _compute_no_approve(self): + """Method _compute_no_approve to compute the value to the field + no_approve""" + for rec in self: + rec.no_approve = True if rec.approve_customer_invoice or rec.approve_customer_credit or rec.approve_vendor_credit or rec.approve_vendor_bill else False diff --git a/invoice_multi_approval/security/invoice_multi_approval_groups.xml b/invoice_multi_approval/security/invoice_multi_approval_groups.xml new file mode 100644 index 000000000..007fa2627 --- /dev/null +++ b/invoice_multi_approval/security/invoice_multi_approval_groups.xml @@ -0,0 +1,41 @@ + + + + + Invoice Approval + Access to the invoice approval menu + 3 + + + + Approvers + + + + + + Approve Manager + + + + + + Billing Administrator + + + + + + Billing + + + + diff --git a/invoice_multi_approval/security/ir.model.access.csv b/invoice_multi_approval/security/ir.model.access.csv new file mode 100644 index 000000000..f3e6435e4 --- /dev/null +++ b/invoice_multi_approval/security/ir.model.access.csv @@ -0,0 +1,7 @@ +id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink +access_invoice_approval_approver,access.invoice.approval approver,model_invoice_approval,invoice_multi_approval.group_approver,1,1,0,1 +access_invoice_approval_approve_manager,access.invoice.approval approve manager,model_invoice_approval,invoice_multi_approval.group_approve_manager,1,1,0,1 +access_approval_line_approver,access.approval.line approver,model_approval_line,invoice_multi_approval.group_approver,1,1,1,1 +access_approval_line_approve_manager,access.approval.line approve manager,model_approval_line,invoice_multi_approval.group_approve_manager,1,1,1,1 +access_approval_line_user,access.approval.line.user,model_approval_line,base.group_user,1,0,1,0 +access_invoice_approval_user,access.invoice.approval.user,model_invoice_approval,base.group_user,1,0,0,0 diff --git a/invoice_multi_approval/static/description/assets/icons/capture (1).png b/invoice_multi_approval/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/capture (1).png differ diff --git a/invoice_multi_approval/static/description/assets/icons/check.png b/invoice_multi_approval/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/check.png differ diff --git a/invoice_multi_approval/static/description/assets/icons/chevron.png b/invoice_multi_approval/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/chevron.png differ diff --git a/invoice_multi_approval/static/description/assets/icons/cogs.png b/invoice_multi_approval/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/cogs.png differ diff --git a/invoice_multi_approval/static/description/assets/icons/consultation.png b/invoice_multi_approval/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/consultation.png differ diff --git a/invoice_multi_approval/static/description/assets/icons/ecom-black.png b/invoice_multi_approval/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/ecom-black.png differ diff --git a/invoice_multi_approval/static/description/assets/icons/education-black.png b/invoice_multi_approval/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/education-black.png differ diff --git a/invoice_multi_approval/static/description/assets/icons/hotel-black.png b/invoice_multi_approval/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/hotel-black.png differ diff --git a/invoice_multi_approval/static/description/assets/icons/img.png b/invoice_multi_approval/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/img.png differ diff --git a/invoice_multi_approval/static/description/assets/icons/license.png b/invoice_multi_approval/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/license.png differ diff --git a/invoice_multi_approval/static/description/assets/icons/lifebuoy.png b/invoice_multi_approval/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/lifebuoy.png differ diff --git a/invoice_multi_approval/static/description/assets/icons/manufacturing-black.png b/invoice_multi_approval/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/manufacturing-black.png differ diff --git a/invoice_multi_approval/static/description/assets/icons/photo-capture.png b/invoice_multi_approval/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/photo-capture.png differ diff --git a/invoice_multi_approval/static/description/assets/icons/pos-black.png b/invoice_multi_approval/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/pos-black.png differ diff --git a/invoice_multi_approval/static/description/assets/icons/puzzle.png b/invoice_multi_approval/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/puzzle.png differ diff --git a/invoice_multi_approval/static/description/assets/icons/restaurant-black.png b/invoice_multi_approval/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/restaurant-black.png differ diff --git a/invoice_multi_approval/static/description/assets/icons/service-black.png b/invoice_multi_approval/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/service-black.png differ diff --git a/invoice_multi_approval/static/description/assets/icons/trading-black.png b/invoice_multi_approval/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/trading-black.png differ diff --git a/invoice_multi_approval/static/description/assets/icons/training.png b/invoice_multi_approval/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/training.png differ diff --git a/invoice_multi_approval/static/description/assets/icons/update.png b/invoice_multi_approval/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/update.png differ diff --git a/invoice_multi_approval/static/description/assets/icons/user.png b/invoice_multi_approval/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/user.png differ diff --git a/invoice_multi_approval/static/description/assets/icons/wrench.png b/invoice_multi_approval/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/invoice_multi_approval/static/description/assets/icons/wrench.png differ diff --git a/invoice_multi_approval/static/description/assets/misc/Cybrosys R.png b/invoice_multi_approval/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/invoice_multi_approval/static/description/assets/misc/Cybrosys R.png differ diff --git a/invoice_multi_approval/static/description/assets/misc/email.svg b/invoice_multi_approval/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/invoice_multi_approval/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/invoice_multi_approval/static/description/assets/misc/phone.svg b/invoice_multi_approval/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/invoice_multi_approval/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/invoice_multi_approval/static/description/assets/misc/star (1) 2.svg b/invoice_multi_approval/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/invoice_multi_approval/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/invoice_multi_approval/static/description/assets/misc/support (1) 1.svg b/invoice_multi_approval/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/invoice_multi_approval/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/invoice_multi_approval/static/description/assets/misc/support-email.svg b/invoice_multi_approval/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/invoice_multi_approval/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/invoice_multi_approval/static/description/assets/misc/tick-mark.svg b/invoice_multi_approval/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/invoice_multi_approval/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/invoice_multi_approval/static/description/assets/misc/whatsapp 1.svg b/invoice_multi_approval/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/invoice_multi_approval/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/invoice_multi_approval/static/description/assets/misc/whatsapp.svg b/invoice_multi_approval/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/invoice_multi_approval/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/invoice_multi_approval/static/description/assets/modules/1.jpg b/invoice_multi_approval/static/description/assets/modules/1.jpg new file mode 100644 index 000000000..e19e7ab11 Binary files /dev/null and b/invoice_multi_approval/static/description/assets/modules/1.jpg differ diff --git a/invoice_multi_approval/static/description/assets/modules/2.jpg b/invoice_multi_approval/static/description/assets/modules/2.jpg new file mode 100644 index 000000000..3f6a08970 Binary files /dev/null and b/invoice_multi_approval/static/description/assets/modules/2.jpg differ diff --git a/invoice_multi_approval/static/description/assets/modules/3.jpg b/invoice_multi_approval/static/description/assets/modules/3.jpg new file mode 100644 index 000000000..33491bcf0 Binary files /dev/null and b/invoice_multi_approval/static/description/assets/modules/3.jpg differ diff --git a/invoice_multi_approval/static/description/assets/modules/4.png b/invoice_multi_approval/static/description/assets/modules/4.png new file mode 100644 index 000000000..612be4b77 Binary files /dev/null and b/invoice_multi_approval/static/description/assets/modules/4.png differ diff --git a/invoice_multi_approval/static/description/assets/modules/5.jpg b/invoice_multi_approval/static/description/assets/modules/5.jpg new file mode 100644 index 000000000..693671ccf Binary files /dev/null and b/invoice_multi_approval/static/description/assets/modules/5.jpg differ diff --git a/invoice_multi_approval/static/description/assets/modules/6.png b/invoice_multi_approval/static/description/assets/modules/6.png new file mode 100644 index 000000000..a0ac2d840 Binary files /dev/null and b/invoice_multi_approval/static/description/assets/modules/6.png differ diff --git a/invoice_multi_approval/static/description/assets/screenshots/1.png b/invoice_multi_approval/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..bbcc9f444 Binary files /dev/null and b/invoice_multi_approval/static/description/assets/screenshots/1.png differ diff --git a/invoice_multi_approval/static/description/assets/screenshots/2.png b/invoice_multi_approval/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..1e64d4d0d Binary files /dev/null and b/invoice_multi_approval/static/description/assets/screenshots/2.png differ diff --git a/invoice_multi_approval/static/description/assets/screenshots/3.png b/invoice_multi_approval/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..b55d04f2f Binary files /dev/null and b/invoice_multi_approval/static/description/assets/screenshots/3.png differ diff --git a/invoice_multi_approval/static/description/assets/screenshots/4.png b/invoice_multi_approval/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..e83f9278b Binary files /dev/null and b/invoice_multi_approval/static/description/assets/screenshots/4.png differ diff --git a/invoice_multi_approval/static/description/assets/screenshots/5.png b/invoice_multi_approval/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..fd9be3c47 Binary files /dev/null and b/invoice_multi_approval/static/description/assets/screenshots/5.png differ diff --git a/invoice_multi_approval/static/description/assets/screenshots/hero.gif b/invoice_multi_approval/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..7d310db00 Binary files /dev/null and b/invoice_multi_approval/static/description/assets/screenshots/hero.gif differ diff --git a/invoice_multi_approval/static/description/banner.png b/invoice_multi_approval/static/description/banner.png new file mode 100644 index 000000000..107365cd8 Binary files /dev/null and b/invoice_multi_approval/static/description/banner.png differ diff --git a/invoice_multi_approval/static/description/icon.png b/invoice_multi_approval/static/description/icon.png new file mode 100644 index 000000000..badb545ab Binary files /dev/null and b/invoice_multi_approval/static/description/icon.png differ diff --git a/invoice_multi_approval/static/description/index.html b/invoice_multi_approval/static/description/index.html new file mode 100644 index 000000000..c303ed32b --- /dev/null +++ b/invoice_multi_approval/static/description/index.html @@ -0,0 +1,754 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Invoice + Multi Level Approval

+

+ Module Add the Multiple Approval + Option for Invoice, Bill, Refund and Credit Notes. +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Seperate user groups.

+

Seperate user + groups for approver and approval managers.. +

+
+
+
+
+
+
+ +
+
+

+ Document validation on approvals.

+

Document can + only validate when all approvals are completed +

+
+
+
+
+
+
+ +
+
+

+ Select the approval option from + configuration.

+

Approval + Option can be enabled/disabled from the + configuration panel. +

+
+
+
+
+
+
+ +
+
+
+
+
+ +
+
+

+ Two Security Groups:There are two security + groups present "Approval User" and + "Approval Manager"

+
+
+
+
+
+
+ +
+
+

+ Configure Approval Settings:There will be a + menu for configuring the approval + settings.

+
+
+
+
+
+
+ +
+
+

+ Select Approvers for Corresponding + Documents:This is the configuration panel of + approval. From here we can + set the approvers for the + corresponding documents.

+
+
+
+ +
+
+
+ +
+
+

+ Track Approval Process Progress: There is a + approval tab inside the documents from which + we can + see the progress of the + approval process and the list of persons + included.

+
+
+
+
+
+
+ +
+
+

+ Approve Option for Users Included in the + List: There will a button "Approve" for the + users who are included in + the list..

+
+ +
+
+
+
+
+
    +
  • + Configure Approval Settings. +
  • +
  • + Select Approvers for Corresponding + Documents. +
  • +
  • + Invoice Multi + Level Approval. +
      +
    • This module add the multiple approval + option for invoice, + bill, refund and credit notes with + single or multiple approvals. +
    • +
    +
  • + +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:17th November 2023 +
+

+ Initial Commit for Invoice Multi level Approval.

+
+
+
+
+
+
+
+

+ Related Products

+
+
+ +
+
+

+ Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire + Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo + Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Licensing Consultancy

+
+
+
+
+
+
+

+ Our Industries

+ +
+
+
+
+
+
+ +

Trading

+

Easily procure and sell your products

+
+
+
+
+ +

POS

+

Easy configuration and convivial experience

+
+
+
+
+ +

+ Education

+

A platform for educational management

+
+
+
+
+ +

+ Manufacturing

+

Plan, track and schedule your operations

+
+
+
+
+ +

E-commerce & + Website

+

Mobile friendly, awe-inspiring product pages

+
+
+
+
+ +

Service + Management

+

Keep track of services and invoice

+
+
+
+
+ +

+ Restaurant

+

Run your bar or restaurant methodically

+
+
+
+
+ +

Hotel + Management

+

An all-inclusive hotel management application

+
+
+
+
+
+
+

+ Support

+
+
+
+
+
+
+
+ +
+ Need + Help? +

Got + questions or need help? Get in touch.

+
odoo@cybrosys.com +
+
+
+
+
+
+
+
+ +
+ WhatsApp +

Say hi to + us on WhatsApp!

+
+91 + 99456767686 +
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/invoice_multi_approval/views/account_move_views.xml b/invoice_multi_approval/views/account_move_views.xml new file mode 100644 index 000000000..ec03ede5f --- /dev/null +++ b/invoice_multi_approval/views/account_move_views.xml @@ -0,0 +1,56 @@ + + + + + account.move.view.form.inherit.invoice.multi.approval + + account.move + + + + + + + + + + +