diff --git a/invoice_multi_approval/__manifest__.py b/invoice_multi_approval/__manifest__.py index 28cf3827e..f13988e3d 100644 --- a/invoice_multi_approval/__manifest__.py +++ b/invoice_multi_approval/__manifest__.py @@ -21,7 +21,7 @@ ############################################################################# { 'name': "Invoice Multi level Approval", - 'version': '16.0.1.0.0', + 'version': '16.0.2.0.0', 'summary': """This module add the multiple approval option for invoice, bill,refund and credit notes.""", 'description': """This module add the multiple approval option for invoice, diff --git a/invoice_multi_approval/doc/RELEASE_NOTES.md b/invoice_multi_approval/doc/RELEASE_NOTES.md index 9b45eccc6..795e73e1e 100644 --- a/invoice_multi_approval/doc/RELEASE_NOTES.md +++ b/invoice_multi_approval/doc/RELEASE_NOTES.md @@ -4,3 +4,8 @@ #### Version 16.0.1.0.0 ##### ADD - Initial commit + +#### 28.02.2023 +#### Version 16.0.2.0.0 +#### UPDT +- Bug fixed diff --git a/invoice_multi_approval/models/account_move.py b/invoice_multi_approval/models/account_move.py index 8ca6a096d..4f014a12c 100644 --- a/invoice_multi_approval/models/account_move.py +++ b/invoice_multi_approval/models/account_move.py @@ -125,6 +125,17 @@ class AccountMove(models.Model): else: self.document_fully_approved = False + @api.model + def create(self, vals_list): + """ + Super the create function adding approvers while create account move through sale /purchase + :param vals_list: dictionary with the detaisl of current record set + :return: record + """ + res = super(AccountMove, self).create(vals_list) + res._onchange_partner_id() + return res + class ApprovalLine(models.Model): _name = 'approval.line'