Browse Source

Apr 17: [ADD] Initial Commit 'document_approval'

pull/313/head
RisvanaCybro 1 year ago
parent
commit
baffbeb36f
  1. 47
      document_approval/README.rst
  2. 23
      document_approval/__init__.py
  3. 49
      document_approval/__manifest__.py
  4. 6
      document_approval/doc/RELEASE_NOTES.md
  5. 25
      document_approval/models/__init__.py
  6. 180
      document_approval/models/document_approval.py
  7. 48
      document_approval/models/document_approval_file.py
  8. 57
      document_approval/models/document_approval_step.py
  9. 45
      document_approval/models/document_approval_team.py
  10. 26
      document_approval/security/document_approval_security.xml
  11. 8
      document_approval/security/ir.model.access.csv
  12. BIN
      document_approval/static/description/assets/icons/check.png
  13. BIN
      document_approval/static/description/assets/icons/chevron.png
  14. BIN
      document_approval/static/description/assets/icons/cogs.png
  15. BIN
      document_approval/static/description/assets/icons/consultation.png
  16. BIN
      document_approval/static/description/assets/icons/ecom-black.png
  17. BIN
      document_approval/static/description/assets/icons/education-black.png
  18. BIN
      document_approval/static/description/assets/icons/hotel-black.png
  19. BIN
      document_approval/static/description/assets/icons/license.png
  20. BIN
      document_approval/static/description/assets/icons/lifebuoy.png
  21. BIN
      document_approval/static/description/assets/icons/manufacturing-black.png
  22. BIN
      document_approval/static/description/assets/icons/pos-black.png
  23. BIN
      document_approval/static/description/assets/icons/puzzle.png
  24. BIN
      document_approval/static/description/assets/icons/restaurant-black.png
  25. BIN
      document_approval/static/description/assets/icons/service-black.png
  26. BIN
      document_approval/static/description/assets/icons/trading-black.png
  27. BIN
      document_approval/static/description/assets/icons/training.png
  28. BIN
      document_approval/static/description/assets/icons/update.png
  29. BIN
      document_approval/static/description/assets/icons/user.png
  30. BIN
      document_approval/static/description/assets/icons/wrench.png
  31. BIN
      document_approval/static/description/assets/misc/categories.png
  32. BIN
      document_approval/static/description/assets/misc/check-box.png
  33. BIN
      document_approval/static/description/assets/misc/compass.png
  34. BIN
      document_approval/static/description/assets/misc/corporate.png
  35. BIN
      document_approval/static/description/assets/misc/customer-support.png
  36. BIN
      document_approval/static/description/assets/misc/cybrosys-logo.png
  37. BIN
      document_approval/static/description/assets/misc/features.png
  38. BIN
      document_approval/static/description/assets/misc/logo.png
  39. BIN
      document_approval/static/description/assets/misc/pictures.png
  40. BIN
      document_approval/static/description/assets/misc/pie-chart.png
  41. BIN
      document_approval/static/description/assets/misc/right-arrow.png
  42. BIN
      document_approval/static/description/assets/misc/star.png
  43. BIN
      document_approval/static/description/assets/misc/support.png
  44. BIN
      document_approval/static/description/assets/misc/whatsapp.png
  45. BIN
      document_approval/static/description/assets/modules/1.jpg
  46. BIN
      document_approval/static/description/assets/modules/2.jpg
  47. BIN
      document_approval/static/description/assets/modules/3.jpg
  48. BIN
      document_approval/static/description/assets/modules/4.jpg
  49. BIN
      document_approval/static/description/assets/modules/7.png
  50. BIN
      document_approval/static/description/assets/modules/8.png
  51. BIN
      document_approval/static/description/assets/screenshots/1.png
  52. BIN
      document_approval/static/description/assets/screenshots/10.png
  53. BIN
      document_approval/static/description/assets/screenshots/11.png
  54. BIN
      document_approval/static/description/assets/screenshots/12.png
  55. BIN
      document_approval/static/description/assets/screenshots/13.png
  56. BIN
      document_approval/static/description/assets/screenshots/14.png
  57. BIN
      document_approval/static/description/assets/screenshots/15.png
  58. BIN
      document_approval/static/description/assets/screenshots/2.png
  59. BIN
      document_approval/static/description/assets/screenshots/3.png
  60. BIN
      document_approval/static/description/assets/screenshots/4.png
  61. BIN
      document_approval/static/description/assets/screenshots/5.png
  62. BIN
      document_approval/static/description/assets/screenshots/6.png
  63. BIN
      document_approval/static/description/assets/screenshots/7.png
  64. BIN
      document_approval/static/description/assets/screenshots/8.png
  65. BIN
      document_approval/static/description/assets/screenshots/9.png
  66. BIN
      document_approval/static/description/assets/screenshots/hero.gif
  67. BIN
      document_approval/static/description/banner.png
  68. BIN
      document_approval/static/description/icon.png
  69. 908
      document_approval/static/description/index.html
  70. 22
      document_approval/views/document_approval_menus.xml
  71. 64
      document_approval/views/document_approval_team_views.xml
  72. 155
      document_approval/views/document_approval_views.xml
  73. 24
      document_approval/wizards/__init__.py
  74. 78
      document_approval/wizards/document_approval_signature.py
  75. 70
      document_approval/wizards/document_approval_signature_views.xml
  76. 74
      document_approval/wizards/document_approve.py
  77. 63
      document_approval/wizards/document_approve_views.xml
  78. 38
      document_approval/wizards/document_reject.py
  79. 46
      document_approval/wizards/document_reject_views.xml

47
document_approval/README.rst

@ -0,0 +1,47 @@
.. 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
Document Approval
=================
This module helps to approve or reject documents.
Configuration
=============
- No additional configuration required
License
-------
General Public License, Version 3 (LGPL v3).
(https://www.gnu.org/licenses/lgpl-3.0-standalone.html)
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
Developer: (V17) Saneen K, 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>`__

23
document_approval/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Saneen K (<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 models
from . import wizards

49
document_approval/__manifest__.py

@ -0,0 +1,49 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Saneen K (<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': "Document Approval",
"version": "17.0.1.0.0",
"category": "Documents Management",
"summary": "Manager can approve or reject documents",
"description": "User can create and upload various document for approvals."
"Manager can approve or reject documents.",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'depends': ['mail'],
'data': [
'security/document_approval_security.xml',
'security/ir.model.access.csv',
'views/document_approval_team_views.xml',
'views/document_approval_views.xml',
'views/document_approval_menus.xml',
'wizards/document_approve_views.xml',
'wizards/document_reject_views.xml',
'wizards/document_approval_signature_views.xml',
],
'images': ['static/description/banner.png'],
'license': 'LGPL-3',
'installable': True,
'auto_install': False,
'application': True,
}

6
document_approval/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <document_approval>
#### 16.04.2024
#### Version 17.0.1.0.0
#### ADD
- Initial commit for Document Approval

25
document_approval/models/__init__.py

@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Saneen K (<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 document_approval
from . import document_approval_file
from . import document_approval_step
from . import document_approval_team

180
document_approval/models/document_approval.py

@ -0,0 +1,180 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Saneen K (<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import api, fields, models, _
from odoo.exceptions import UserError
class DocumentApproval(models.Model):
""" A model for Managing the document approvals"""
_name = "document.approval"
_inherit = ["mail.thread", "mail.activity.mixin"]
_description = "Document Approvals"
name = fields.Char(string='Name', required=True,
help='Name of the record.')
is_active = fields.Boolean(string='Active', copy=False,
help='Used to check the record active or not.')
description = fields.Text(string="Description",
help='Used to add description about the document'
' approval')
approve_initiator_id = fields.Many2one('res.users', string="Initiator",
default=lambda self: self.env.user,
help='Set who has initiated the '
'document approval.')
team_id = fields.Many2one('document.approval.team', string="Approval Team",
required=True,
help='Set which team is approving the document.')
method = fields.Selection(selection=[('button', 'Button'),
('sign', 'Signature')],
default='button', string="Method",
help='Set the mode of approvals.')
visibility = fields.Selection(selection=[('all_user', 'All Users'),
('followers', 'Followers'),
('approvers', 'Approvers')],
string='Visibility',
help='Restrict the visibility of the '
'document', default="all_user")
state = fields.Selection(selection=[('draft', 'Draft'),
('waiting', 'Waiting'),
('approved', 'Approved'),
('reject', 'Rejected')],
string='Status', default='draft', readonly=True,
tracking=True,
help='State of the document.')
company_id = fields.Many2one('res.company', string='Company',
default=lambda self: self.env.company,
help='Company of the record.')
step_ids = fields.One2many('document.approval.step',
'document_approve_id',
compute='_compute_step_ids', store=True,
help='For setting document approval steps')
file_ids = fields.One2many('document.approval.file', 'approval_id',
string='Files',
help='You can upload file and file details')
step_count = fields.Integer(string="Step", help="Current Step",
readonly=True)
approver_ids = fields.Many2many('res.users', string="Approver",
help="User to approve the document")
show_approve = fields.Boolean(string="Show Approve Button", copy=False,
help="To show the approve button to approve "
"the document",
compute="_compute_show_approve")
approval_ids = fields.Many2many('document.approval.step',
string="Approval Step",
help="Approval Step of the document")
@api.depends('team_id')
def _compute_step_ids(self):
"""Method _compute_step_ids to compute the values to the field
step_ids"""
for rec in self:
rec.step_ids = False
for step in rec.team_id.step_ids:
rec.step_ids = [fields.Command.create({
'steps': step.steps,
'approver_id': step.approver_id.id,
'role': step.role,
'state': step.state,
'note': step.note
})]
@api.depends('team_id')
def _compute_show_approve(self):
"""This method _compute_show_approve to compute the valur to the field
show_approve"""
for rec in self:
rec.show_approve = True if self.env.uid in rec.approver_ids.ids else False
if rec.team_id.team_lead_id.id == self.env.uid:
rec.show_approve = True
def action_send_for_approval(self):
""" Action to sent document to approval also it changes the state
into waiting that document to be approved """
steps = self.step_ids.mapped('steps')
unique_steps = []
for step in steps:
if step not in unique_steps:
unique_steps.append(step)
unique_steps = sorted(unique_steps)
self.step_count = unique_steps[0]
aprroval_records = self.step_ids.search([('steps', '=',
unique_steps[0]), (
'document_approve_id',
'=', self.id)])
self.approval_ids = aprroval_records.ids
approval_user_ids = []
for record in aprroval_records:
approval_user_ids.append(record.approver_id.id)
record.current_state = 'pending'
self.approver_ids = approval_user_ids
self.state = "waiting"
def action_approve(self):
""" function that return wizard to do the approval by writing note
and approver can approve the document.
Approval is done just clicking the button"""
return {
'type': 'ir.actions.act_window',
'name': 'Document Approval',
'target': 'new',
'view_mode': 'form',
'res_model': 'document.approve',
'context': {
'default_document_id': self.id
}
}
def action_reject(self):
""" Return a wizard that to confirm rejection by adding a note"""
return {
'type': 'ir.actions.act_window',
'name': 'Document Rejection',
'target': 'new',
'view_mode': 'form',
'res_model': 'document.reject',
'context': {
'default_document_id': self.id
}
}
def action_approve_sign(self):
""" Return a wizard that approver can ensure to give
signature and approve. Approver can add signature confirmation """
return {
'type': 'ir.actions.act_window',
'name': 'Document Approval',
'target': 'new',
'view_mode': 'form',
'res_model': 'document.approval.signature',
'context': {
'default_document_id': self.id
}
}
def unlink(self):
""" This function is used to ensure to there is no record of
state approved has been deleted"""
for record in self:
if record.state in ["approved", "waiting"]:
raise UserError(
_("You cannot delete record in approved or waiting state"))
return super(DocumentApproval, self).unlink()

48
document_approval/models/document_approval_file.py

@ -0,0 +1,48 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Saneen K (<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, _
from odoo.exceptions import UserError
class DocumentApprovalFiles(models.Model):
""" Manage the documents for approvals"""
_name = 'document.approval.file'
_description = "document files"
name = fields.Char(string="Name", required=True,
help='For adding some noted about the file ')
file = fields.Binary(string="File", required=True, attachment=True,
help='For storing the file')
file_name = fields.Char(string="File Name",
help="Storing name of the file")
approval_id = fields.Many2one('document.approval',
help='Inverse fields for the document '
'approval')
def unlink(self):
"""Supering the method unlink of model document.approval.line to
restrict the deleting of the file"""
for rec in self:
if rec.approval_id.state != 'Draft':
raise UserError(
_(f"You cannot delete file from {rec.approval_id.state} state"))
super(DocumentApprovalFiles, rec).unlink()

57
document_approval/models/document_approval_step.py

@ -0,0 +1,57 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Saneen K (<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 DocumentApprovalSteps(models.Model):
""" Document approval steps"""
_name = "document.approval.step"
_description = "Document Approvals Steps"
steps = fields.Integer(string="Steps",
help='For counting how many steps needed')
approver_id = fields.Many2one('res.users', string="Approver",
help='The person who is responsible for '
'the approval')
role = fields.Char(string="Role/Position",
help='To determine the position of the approver')
document_approve_id = fields.Many2one('document.approval',
string='Document Approval',
help='Inverse field from document '
'approvals')
is_approve = fields.Boolean(string='Is Approved', copy=False,
help='Check weather it is approved or not')
document_approve_team_id = fields.Many2one('document.approval.team',
string="Approver Team",
help='The team who are '
'responsible for the '
'approvals')
state = fields.Selection(
selection=[('to_approve', 'To Approve'),
('approve', 'Approve')],
default="to_approve")
note = fields.Char(string='Notes', help="To add notes")
current_state = fields.Selection(
selection=[('upcoming', 'Upcoming'), ('pending', 'Pending'),
('approved', 'Approved')],
default="upcoming", string="Approval State",
help="THe current state of approval")

45
document_approval/models/document_approval_team.py

@ -0,0 +1,45 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Saneen K (<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 DocumentApprovalTeam(models.Model):
""" Configure document approval team"""
_name = "document.approval.team"
_inherit = ["mail.thread", "mail.activity.mixin"]
_description = "Document approval team"
name = fields.Char(string='Name', required=True, help='Name of the team',
tracking=True)
team_lead_id = fields.Many2one('res.users', string='Team Leader',
help='For setting th team lead',
tracking=True, required=True,
default=lambda self: self.env.user)
company_id = fields.Many2one('res.company', string='Company',
help='For setting the company',
default=lambda self: self.env.company)
is_active = fields.Boolean(string="Active", copy=False,
help='For checking the active status')
step_ids = fields.One2many('document.approval.step',
'document_approve_team_id',
help='For setting document approval steps for '
'the approval team')

26
document_approval/security/document_approval_security.xml

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Record rule for adding visibility to the approvers team -->
<record id="document_approval_rule_user" model="ir.rule">
<field name="name">document approval rule user</field>
<field name="model_id"
ref="document_approval.model_document_approval"/>
<field name="domain_force">
['|',('step_ids.approver_id.id','=',user.id),('approve_initiator_id','=',user.id)]
</field>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_unlink" eval="True"/>
<field name="active" eval="True"/>
</record>
<!--Multi company rule for the model document approval-->
<record model="ir.rule" id="document_approval_multi_company_rule">
<field name="name">Document Approval Multi Company</field>
<field name="model_id" ref="model_document_approval"/>
<field name="global" eval="True"/>
<field name="domain_force">['|', ('company_id', '=', False),
('company_id', 'in', company_ids)]
</field>
</record>
</odoo>

8
document_approval/security/ir.model.access.csv

@ -0,0 +1,8 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
document_approval.access_document_approval,access_document_approval,document_approval.model_document_approval,base.group_user,1,1,1,1
access_document_approval_team_user,access.document.approval.team.user,model_document_approval_team,base.group_user,1,1,1,1
access_document_approval_steps_user,access.document.approval.steps.user,model_document_approval_step,base.group_user,1,1,1,1
access_document_approval_file_user,access.document.approval.file.user,model_document_approval_file,base.group_user,1,1,1,1
access_document_approval_user,access.document.approval.user,model_document_approve,base.group_user,1,1,1,1
access_document_reject_user,access.document.reject.user,model_document_reject,base.group_user,1,1,1,1
access_document_approval_signature_user,access.document.approval.signature.user,model_document_approval_signature,base.group_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 document_approval.access_document_approval access_document_approval document_approval.model_document_approval base.group_user 1 1 1 1
3 access_document_approval_team_user access.document.approval.team.user model_document_approval_team base.group_user 1 1 1 1
4 access_document_approval_steps_user access.document.approval.steps.user model_document_approval_step base.group_user 1 1 1 1
5 access_document_approval_file_user access.document.approval.file.user model_document_approval_file base.group_user 1 1 1 1
6 access_document_approval_user access.document.approval.user model_document_approve base.group_user 1 1 1 1
7 access_document_reject_user access.document.reject.user model_document_reject base.group_user 1 1 1 1
8 access_document_approval_signature_user access.document.approval.signature.user model_document_approval_signature base.group_user 1 1 1 1

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
document_approval/static/description/assets/modules/1.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

BIN
document_approval/static/description/assets/modules/2.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
document_approval/static/description/assets/modules/3.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

BIN
document_approval/static/description/assets/modules/4.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
document_approval/static/description/assets/modules/7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

BIN
document_approval/static/description/assets/modules/8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

BIN
document_approval/static/description/assets/screenshots/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 KiB

BIN
document_approval/static/description/assets/screenshots/10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

BIN
document_approval/static/description/assets/screenshots/11.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

BIN
document_approval/static/description/assets/screenshots/12.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
document_approval/static/description/assets/screenshots/13.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
document_approval/static/description/assets/screenshots/14.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
document_approval/static/description/assets/screenshots/15.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
document_approval/static/description/assets/screenshots/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

BIN
document_approval/static/description/assets/screenshots/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
document_approval/static/description/assets/screenshots/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
document_approval/static/description/assets/screenshots/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

BIN
document_approval/static/description/assets/screenshots/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
document_approval/static/description/assets/screenshots/7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
document_approval/static/description/assets/screenshots/8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

BIN
document_approval/static/description/assets/screenshots/9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 KiB

BIN
document_approval/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

BIN
document_approval/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

908
document_approval/static/description/index.html

@ -0,0 +1,908 @@
<!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/logo.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>
</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;">
Document Approval</h1>
<p class="my-3 mb-4"
style="max-width: 80%; font-weight: 400 !important; line-height: 32px; color: #718096;">Approve or Reject Various Documents.
</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;">Approve or Reject Various Documents. </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;">
Set Different Team for Approvals.</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;">
Set Various Steps for Approving.</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;">
Signature Approval.</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/1.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">
Document Approval Menu.</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/2.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">
Approval Team Menu</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/3.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">
Set the Approval team.</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/4.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">
Approval Form View. Click on the 'Send for Approval' Button for Approval Request.</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/5.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">
Button Approval.</h4>
<p class="m-0" style="color:#718096">
After sending the approval request using the 'Button' method, clicking on the 'Approve'
button triggers a wizard to add a description for the approval. Upon adding the description,
clicking the 'Approve' button finalizes the approval process.
</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/6.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">
Approval Request Status.</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/7.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">
Signature Approval.</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/8.png"
class="img-responsive" width="100%"
height="auto">
</div>
<div class="px-3">
<p class="m-0" style="color:#718096">
After sending the approval request using the 'Signature' method, clicking on the 'Approve'
button prompts a wizard to input a description and add a signature for the approval. Once
the description and signature are provided, clicking the 'Approve' button completes the approval process.
</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/9.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">
After confirming the approval the state is changed to the 'Approved'.</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/10.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">
Reject the Approval Request.</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/11.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">
We can add the Description/Reason for the Approval Rejection.</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/12.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">
Rejected Approval Request.</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/13.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">
Document Signature Approval Description.</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/14.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">
Document Approval Description.</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/15.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">
Document Reject Description.</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>Approve or Reject Various Documents.
</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>Set Different Team for Approvals.
</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>Set Various Steps for Approving.
</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>
Signature Approval.
</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>
The module support Community and Enterprise
</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:01st Apr 2024</span>
</div>
<p class="m-0" style=" color:#718096!important; font-size:1rem !important;line-height: 28px;">
Initial commit for Document Approval</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/amazon_s3_connector/"
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.jpg"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
Odoo Amazon S3 Connector</p>
</div>
</a>
</div>
</div>
<div class="col">
<div class="p-3">
<a href="https://apps.odoo.com/apps/modules/17.0/contact_documents/"
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.jpg"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
Partner Related Documents</p>
</div>
</a>
</div>
</div>
<div class="col">
<div class="p-3">
<a href="https://apps.odoo.com/apps/modules/17.0/size_restriction_for_attachments/"
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.jpg"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
Size Restriction For Attachments</p>
</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/dropbox_integration/"
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.jpg"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
Dropbox Integration</p>
</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/8.png"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
Sale Discount On Total Amount</p>
</div>
</a>
</div>
</div>
<div class="col">
<div class="p-3">
<a href="https://apps.odoo.com/apps/modules/17.0/account_payment_approval/"
style="color: #000; text-decoration: none;">
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;">
<div style="width: 300px;">
<img src="assets/modules/7.png"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
Payment Approvals</p>
</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>

22
document_approval/views/document_approval_menus.xml

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Menus for document approvals -->
<menuitem id="document_approval_menu_root" name="Document Approval"
sequence="2"
web_icon="document_approval,static/description/icon.png">
<menuitem id="document_approval_menu" name="Document"
sequence="3"
action="document_approval_action"/>
</menuitem>
<menuitem id="document_approval_configuration_menu" name="Configuration"
sequence="4"
parent="document_approval_menu_root"/>
<menuitem id="document_approval_team_menu" name="Approval Team"
sequence="18"
parent="document_approval_configuration_menu"
action="document_approval.document_approval_team_action"/>
<menuitem id="document_approval_reject_reason_menu_root"
name="Approve/Reject Reason"
sequence="3"
parent="document_approval_menu_root"/>
</odoo>

64
document_approval/views/document_approval_team_views.xml

@ -0,0 +1,64 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Tree view for document approval team -->
<record id="document_approval_team_view_tree" model="ir.ui.view">
<field name="name">document.approval.team.view.tree</field>
<field name="model">document.approval.team</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="team_lead_id"/>
<field name="company_id"/>
</tree>
</field>
</record>
<!-- form view for document approval team -->
<record id="document_approval_team_view_form" model="ir.ui.view">
<field name="name">document.approval.team.view.form</field>
<field name="model">document.approval.team</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<group>
<field name="name"/>
<field name="team_lead_id"/>
</group>
<group>
<field name="company_id"/>
</group>
</group>
<group name="approvers" string="Approvers">
<field name="step_ids" nolabel="1" colspan="2">
<tree editable="bottom">
<field name="steps" style="text-align: {left};"/>
<field name="approver_id"/>
<field name="role"/>
<field name="state"/>
<field name="note"/>
</tree>
</field>
</group>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids"/>
<field name="message_ids"/>
<field name="activity_ids"/>
</div>
</form>
</field>
</record>
<!-- window action for document approval team -->
<record id="document_approval_team_action"
model="ir.actions.act_window">
<field name="name">Document Approval Team</field>
<field name="res_model">document.approval.team</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a Document Approval Team
</p>
</field>
</record>
</odoo>

155
document_approval/views/document_approval_views.xml

@ -0,0 +1,155 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Tree view for document approvals -->
<record id="document_approval_view_tree" model="ir.ui.view">
<field name="name">document.approval.view.tree</field>
<field name="model">document.approval</field>
<field name="arch" type="xml">
<tree decoration-danger="state == 'reject'"
decoration-warning="state == 'waiting'"
decoration-primary="state == 'draft'"
decoration-success="state == 'approved'">
<field name="name" readonly="state != 'draft'"/>
<field name="approve_initiator_id"/>
<field name="company_id" readonly="state != 'draft'"/>
<field name="state"
decoration-success="state == 'approved'"
decoration-danger="state == 'reject'"
decoration-primary="state == 'draft'"
decoration-warning="state == 'waiting'"
widget="badge" optional="show"/>
</tree>
</field>
</record>
<!-- Form view for document approvals -->
<record id="document_approval_view_form" model="ir.ui.view">
<field name="name">document.approval.view.form</field>
<field name="model">document.approval</field>
<field name="arch" type="xml">
<form>
<header>
<button string="Send for Approval"
name="action_send_for_approval" type="object"
invisible="state != 'draft'" class="oe_highlight"/>
<button string="Approve" name="action_approve_sign"
type="object"
class="oe_highlight"
invisible="state not in ('waiting') or method == 'button' or show_approve == False"/>
<button string="Approve"
name="action_approve"
type="object"
class="oe_highlight"
invisible="state not in ('waiting') or method == 'sign' or show_approve == False"/>
<button string="Reject" name="action_reject"
type="object"
invisible="state not in ('waiting') or method == False or show_approve == False"/>
<field name="state" widget="statusbar"
statusbar_visible="draft,waiting,approved,reject"/>
</header>
<sheet>
<h1>
<field name="name" readonly="state != 'draft'"/>
</h1>
<group>
<group name="description"
string="Description"/>
<field name="description"/>
<group name="document" string="Document">
<field name="file_ids" nolabel="1" readonly="state == 'approved'"
colspan="4">
<tree editable="bottom">
<field name="name"/>
<field name="file_name" column_invisible="1"/>
<field name="file" widget="binary"
filename="file_name"/>
</tree>
</field>
</group>
</group>
<group>
<group name="visibility" string="Visibility">
<field name="company_id" readonly="state != 'draft'"/>
<field name="visibility"/>
</group>
<group name="approval" string="Approval">
<field name="team_id" readonly="state == 'approved'"/>
<field name="method" readonly="state != 'draft'"/>
<field name="step_count"/>
<field name="show_approve" invisible="1"/>
<field name="approver_ids" widget="many2many_tags"
invisible="1"/>
<field name="approval_ids" widget="many2many_tags"
invisible="1"/>
</group>
</group>
<group name="approvers" string="Approvers">
<field name="step_ids"
nolabel="1" colspan="2">
<tree editable="bottom">
<field name="steps"/>
<field name="approver_id"/>
<field name="role"/>
<field name="state" optional="hide"/>
<field name="current_state"
decoration-success="current_state == 'approved'"
decoration-primary="current_state == 'pending'"
decoration-warning="current_state == 'upcoming'"
column_invisible="parent.state == 'draft'"/>
<field name="note"/>
</tree>
</field>
</group>
<group>
<field name="approve_initiator_id"/>
</group>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids"/>
<field name="message_ids"/>
<field name="activity_ids"/>
</div>
</form>
</field>
</record>
<!-- window action for document approvals -->
<record id="document_approval_action" model="ir.actions.act_window">
<field name="name">Document Approval</field>
<field name="res_model">document.approval</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create Document Approval
</p>
</field>
</record>
<!-- Tree view for document approval steps -->
<record id="document_approval_step_view_tree" model="ir.ui.view">
<field name="name">document.approval.step.view.tree</field>
<field name="model">document.approval.step</field>
<field name="arch" type="xml">
<tree editable="bottom">
<field name="steps"/>
<field name="approver_id"/>
<field name="role"/>
<field name="document_approve_id"/>
</tree>
</field>
</record>
<!--Form view for the files -->
<record id="document_approval_file_view_form" model="ir.ui.view">
<field name="name">document.approval.file.view.form</field>
<field name="model">document.approval.file</field>
<field name="arch" type="xml">
<form>
<group>
<group>
<field name="name" invisible="1"/>
</group>
<group>
<field name="file" filename="file_name" widget="binary"/>
</group>
</group>
</form>
</field>
</record>
</odoo>

24
document_approval/wizards/__init__.py

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Saneen K (<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 document_approve
from . import document_approval_signature
from . import document_reject

78
document_approval/wizards/document_approval_signature.py

@ -0,0 +1,78 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Saneen K (<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 DocumentApprovalSignature(models.TransientModel):
""" Document approval using signature confirmation"""
_name = "document.approval.signature"
_description = "Document signature approvals"
_rec_name = "document_id"
note = fields.Text(string='Note', required=True, help='For adding notes')
signature = fields.Binary(string='Signature', required=True,
help='For writing signature')
document_id = fields.Many2one("document.approval", string="Document",
help="To track which document is get "
"approved ")
def action_approve_signature(self):
""" Function to approve document using signature"""
if self.document_id.team_id.team_lead_id.id == self.env.uid:
self.document_id.state = "approved"
else:
if self.env.uid in self.document_id.approver_ids.ids:
self.document_id.approval_ids.write({
'current_state': 'approved',
})
if 'approve' in self.document_id.approval_ids.mapped('state'):
self.document_id.state = 'approved'
return True
steps = self.document_id.step_ids.mapped('steps')
unique_steps = []
for step in steps:
if step not in unique_steps:
unique_steps.append(step)
unique_steps = sorted(unique_steps)
index_unique = unique_steps.index(self.document_id.step_count)
if index_unique < len(unique_steps) - 1:
next_number = unique_steps[index_unique + 1]
self.document_id.step_count = next_number
approval_records = self.document_id.step_ids.search(
[('steps', '=',
next_number), (
'document_approve_id',
'=',
self.document_id.id)])
self.document_id.approval_ids = approval_records.ids
self.document_id.approval_ids.write({
'current_state': 'pending',
})
users = []
for step in approval_records:
users.append(step.approver_id.id)
self.document_id.approver_ids = users
else:
self.document_id.approval_ids.write({
'current_state': 'approved',
})
self.document_id.state = 'approved'

70
document_approval/wizards/document_approval_signature_views.xml

@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Wizard for document approvals using signature -->
<record id="document_approval_signature_view_form" model="ir.ui.view">
<field name="name">document.approval.signature.view.form</field>
<field name="model">document.approval.signature</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<field name="note"/>
<field name="signature" widget="signature"/>
</group>
<footer>
<button name="action_approve_signature"
string="Approve"
type="object" class="oe_highlight"/>
<button string="Cancel" special="cancel"/>
</footer>
</sheet>
</form>
</field>
</record>
<!-- Form view for document approval using signature for the menu item -->
<record id="document_approval_signature_view_form_readonly"
model="ir.ui.view">
<field name="name">document.approval.signature.view.form</field>
<field name="model">document.approval.signature</field>
<field name="arch" type="xml">
<form create="0">
<sheet>
<group>
<group>
<field name="document_id" readonly="1"/>
<field name="note" readonly="1"/>
<field name="signature" widget="signature"
readonly="1"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
<!-- Tree view for document approval using signature -->
<record id="document_approval_signature_view_tree" model="ir.ui.view">
<field name="name">document.approval.signature.view.tree</field>
<field name="model">document.approval.signature</field>
<field name="arch" type="xml">
<tree create="False">
<field name="document_id" readonly="1"/>
<field name="note" readonly="1"/>
</tree>
</field>
</record>
<!-- Action for document approval using signature description-->
<record id="document_approval_signature_action"
model="ir.actions.act_window">
<field name="name">Document Signature Approval</field>
<field name="res_model">document.approval.signature</field>
<field name="view_mode">tree,form</field>
<field name="view_ids" eval="[(5, 0, 0),
(0,0,{'view_mode':'tree', 'view_id': ref('document_approval_signature_view_tree')}),
(0,0,{'view_mode':'form', 'view_id': ref('document_approval_signature_view_form_readonly')}),]"/>
</record>
<menuitem id="document_approval_signature_menu"
name="Document Signature Approval Description"
sequence="10"
parent="document_approval_reject_reason_menu_root"
action="document_approval_signature_action"/>
</odoo>

74
document_approval/wizards/document_approve.py

@ -0,0 +1,74 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Saneen K (<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 DocumentApprove(models.TransientModel):
""" Wizard for approving documents"""
_name = "document.approve"
_description = "Wizard for approving document"
_rec_name = "document_id"
description = fields.Text(string="Description", required=True,
help='Add note which is the reason for the '
'approval')
document_id = fields.Many2one("document.approval", string="Document",
help="To track which document is get approved")
def action_approve_document(self):
""" function to approve document"""
if self.document_id.team_id.team_lead_id.id == self.env.uid:
self.document_id.state = "approved"
else:
if self.env.uid in self.document_id.approver_ids.ids:
self.document_id.approval_ids.write({
'current_state': 'approved',
})
if 'approve' in self.document_id.approval_ids.mapped('state'):
self.document_id.state = 'approved'
return True
steps = self.document_id.step_ids.mapped('steps')
unique_steps = []
for step in steps:
if step not in unique_steps:
unique_steps.append(step)
unique_steps = sorted(unique_steps)
index_unique = unique_steps.index(self.document_id.step_count)
if index_unique < len(unique_steps) - 1:
next_number = unique_steps[index_unique + 1]
self.document_id.step_count = next_number
approval_records = self.document_id.step_ids.search(
[('steps', '=',
next_number), (
'document_approve_id',
'=',
self.document_id.id)])
self.document_id.approval_ids = approval_records.ids
self.document_id.approval_ids.write({
'current_state': 'pending',
})
users = []
for step in approval_records:
users.append(step.approver_id.id)
self.document_id.approver_ids = users
else:
self.document_id.state = 'approved'

63
document_approval/wizards/document_approve_views.xml

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- wizard for document approvals -->
<record id="document_approve_view_form" model="ir.ui.view">
<field name="name">document.approve.view.form</field>
<field name="model">document.approve</field>
<field name="arch" type="xml">
<form create="0">
<group>
<field name="description"/>
</group>
<footer>
<button name="action_approve_document"
string="Approve"
class="btn-primary" type="object"/>
<button string="Cancel" special="cancel"/>
</footer>
</form>
</field>
</record>
<!-- Form view for document approval description for menu item -->
<record id="document_approve_view_form_readonly" model="ir.ui.view">
<field name="name">document.approve.view.form</field>
<field name="model">document.approve</field>
<field name="arch" type="xml">
<form create="0">
<sheet>
<group>
<group>
<field name="document_id" readonly="1"/>
<field name="description" readonly="1"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
<!-- Tree view for document approval description -->
<record id="document_approve_view_tree" model="ir.ui.view">
<field name="name">document.approve.view.tree</field>
<field name="model">document.approve</field>
<field name="arch" type="xml">
<tree create="False">
<field name="document_id" readonly="1"/>
<field name="description" readonly="1"/>
</tree>
</field>
</record>
<!-- Action for document approval description -->
<record id="document_approve_action"
model="ir.actions.act_window">
<field name="name">Document Approve</field>
<field name="res_model">document.approve</field>
<field name="view_mode">tree,form</field>
<field name="view_ids" eval="[(5, 0, 0),
(0,0,{'view_mode':'tree', 'view_id': ref('document_approve_view_tree')}),
(0,0,{'view_mode':'form', 'view_id': ref('document_approve_view_form_readonly')}),]"/>
</record>
<menuitem id="document_approve_menu" name="Document Approval Description"
sequence="12"
parent="document_approval_reject_reason_menu_root"
action="document_approve_action"/>
</odoo>

38
document_approval/wizards/document_reject.py

@ -0,0 +1,38 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Saneen K (<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 DocumentReject(models.TransientModel):
""" Wizard for rejecting documents"""
_name = "document.reject"
_description = "Wizard for document reject"
_rec_name = "document_id"
description = fields.Text(string="Description",
help='For adding reason for the rejection')
document_id = fields.Many2one("document.approval", string="Document",
help="To track which document is get approved")
def action_reject_document(self):
""" Function to reject document"""
self.document_id.state = "reject"

46
document_approval/wizards/document_reject_views.xml

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Wizard for document rejection -->
<record id="document_reject_view_form" model="ir.ui.view">
<field name="name">document.reject.view.form</field>
<field name="model">document.reject</field>
<field name="arch" type="xml">
<form>
<group>
<field name="document_id" readonly="1"/>
<field name="description"/>
</group>
<footer>
<button name="action_reject_document"
string="Reject"
class="btn-primary" type="object"/>
<button string="Cancel" special="cancel"/>
</footer>
</form>
</field>
</record>
<!-- Tree view for document reject reason -->
<record id="document_reject_form_view_tree" model="ir.ui.view">
<field name="name">document.reject.view.tree</field>
<field name="model">document.reject</field>
<field name="arch" type="xml">
<tree create="False">
<field name="document_id" readonly="1"/>
<field name="description" readonly="1"/>
</tree>
</field>
</record>
<!--Action for document reject reasons -->
<record id="document_reject_action"
model="ir.actions.act_window">
<field name="name">Document Reject</field>
<field name="res_model">document.reject</field>
<field name="view_mode">tree</field>
<field name="view_ids" eval="[(5, 0, 0),
(0,0,{'view_mode':'tree', 'view_id': ref('document_reject_form_view_tree')}),]"/>
</record>
<menuitem id="document_reject_menu" name="Document Reject Reason"
sequence="13"
parent="document_approval.document_approval_reject_reason_menu_root"
action="document_reject_action"/>
</odoo>
Loading…
Cancel
Save