Browse Source

Marc 1 [FIX] : Bug Fixed 'invoice_multi_approval'

pull/243/head
AjmalCybro 2 years ago
parent
commit
190d478c6e
  1. 2
      invoice_multi_approval/__manifest__.py
  2. 5
      invoice_multi_approval/doc/RELEASE_NOTES.md
  3. 11
      invoice_multi_approval/models/account_move.py

2
invoice_multi_approval/__manifest__.py

@ -21,7 +21,7 @@
############################################################################# #############################################################################
{ {
'name': "Invoice Multi level Approval", '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, 'summary': """This module add the multiple approval option for invoice,
bill,refund and credit notes.""", bill,refund and credit notes.""",
'description': """This module add the multiple approval option for invoice, 'description': """This module add the multiple approval option for invoice,

5
invoice_multi_approval/doc/RELEASE_NOTES.md

@ -4,3 +4,8 @@
#### Version 16.0.1.0.0 #### Version 16.0.1.0.0
##### ADD ##### ADD
- Initial commit - Initial commit
#### 28.02.2023
#### Version 16.0.2.0.0
#### UPDT
- Bug fixed

11
invoice_multi_approval/models/account_move.py

@ -125,6 +125,17 @@ class AccountMove(models.Model):
else: else:
self.document_fully_approved = False 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): class ApprovalLine(models.Model):
_name = 'approval.line' _name = 'approval.line'

Loading…
Cancel
Save