diff --git a/document_approval/__manifest__.py b/document_approval/__manifest__.py
index 959cb7eb5..c2dba6a41 100755
--- a/document_approval/__manifest__.py
+++ b/document_approval/__manifest__.py
@@ -21,7 +21,7 @@
#############################################################################
{
'name': "Document Approval",
- "version": "17.0.1.0.0",
+ "version": "17.0.1.0.1",
"category": "Documents Management",
"summary": "Manager can approve or reject documents",
"description": "User can create and upload various document for approvals."
diff --git a/document_approval/doc/RELEASE_NOTES.md b/document_approval/doc/RELEASE_NOTES.md
index efce2b79f..0ae466c46 100755
--- a/document_approval/doc/RELEASE_NOTES.md
+++ b/document_approval/doc/RELEASE_NOTES.md
@@ -4,3 +4,9 @@
#### Version 17.0.1.0.0
#### ADD
- Initial commit for Document Approval
+
+
+#### 22.07.2024
+#### Version 17.0.1.0.1
+#### BUG FIX
+- Bug Fix
\ No newline at end of file
diff --git a/document_approval/models/document_approval.py b/document_approval/models/document_approval.py
index 7232a778f..fc35f1f26 100755
--- a/document_approval/models/document_approval.py
+++ b/document_approval/models/document_approval.py
@@ -20,7 +20,7 @@
#
#############################################################################
from odoo import api, fields, models, _
-from odoo.exceptions import UserError
+from odoo.exceptions import UserError, ValidationError
class DocumentApproval(models.Model):
@@ -43,6 +43,9 @@ class DocumentApproval(models.Model):
team_id = fields.Many2one('document.approval.team', string="Approval Team",
required=True,
help='Set which team is approving the document.')
+ team_lead_id = fields.Many2one(string='Team leader',
+ related='team_id.team_lead_id',
+ help="team Leader")
method = fields.Selection(selection=[('button', 'Button'),
('sign', 'Signature')],
default='button', string="Method",
@@ -97,6 +100,13 @@ class DocumentApproval(models.Model):
'note': step.note
})]
+ @api.constrains('team_id')
+ def _check_team_member(self):
+ """function to check whether the team has atleast one member."""
+ if not self.team_id.step_ids.approver_id:
+ raise ValidationError(
+ "Your Team member should atleast have one Approver.")
+
@api.depends('team_id')
def _compute_show_approve(self):
"""This method _compute_show_approve to compute the valur to the field
diff --git a/document_approval/models/document_approval_step.py b/document_approval/models/document_approval_step.py
index 1979b9ce7..4e6295983 100755
--- a/document_approval/models/document_approval_step.py
+++ b/document_approval/models/document_approval_step.py
@@ -52,6 +52,6 @@ class DocumentApprovalSteps(models.Model):
note = fields.Char(string='Notes', help="To add notes")
current_state = fields.Selection(
selection=[('upcoming', 'Upcoming'), ('pending', 'Pending'),
- ('approved', 'Approved')],
+ ('approved', 'Approved'), ('rejected', 'Rejected')],
default="upcoming", string="Approval State",
help="THe current state of approval")
diff --git a/document_approval/security/document_approval_security.xml b/document_approval/security/document_approval_security.xml
index 0ea5b47c7..bdb7c56f1 100755
--- a/document_approval/security/document_approval_security.xml
+++ b/document_approval/security/document_approval_security.xml
@@ -6,7 +6,7 @@
Approve or Reject Various Documents. + style="max-width: 80%; font-weight: 400 !important; line-height: 32px; color: #718096;"> + Approve or Reject Various Documents.
Approve or Reject Various Documents.
+ font-size: 1.2rem; margin-bottom: 2px;"> + Approve or Reject Various Documents.- Set Various Steps for Approving.
+ Set Various Steps for Approving.- Signature Approval.
+ Signature Approval.- 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. + 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.
@@ -262,6 +269,87 @@ ++ We can Configure A team for step-wise + approval
++ We can create an Approval And check the work + flow
++ If the Team Lead Approves the request, it + Will directly go to Approved Stage.
++ Team members will be assigned approval + requests based on the structured sequence of + steps.
+- 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. + 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.
+
Initial commit for Document Approval
- Size Restriction For Attachments
+ Size Restriction For Attachments