Browse Source

Oct 15 [UPDT] : Feature Update 'invoice_multi_approval'

pull/219/head
AjmalCybro 3 years ago
parent
commit
db32278ca5
  1. 2
      invoice_multi_approval/__manifest__.py
  2. 2
      invoice_multi_approval/doc/RELEASE_NOTES.md
  3. 1
      invoice_multi_approval/models/account_move.py
  4. 4
      invoice_multi_approval/security/groups.xml

2
invoice_multi_approval/__manifest__.py

@ -21,7 +21,7 @@
############################################################################# #############################################################################
{ {
'name': "Invoice Multi level Approval", 'name': "Invoice Multi level Approval",
'version': '15.0.1.0.0', 'version': '15.0.1.1.1',
'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,

2
invoice_multi_approval/doc/RELEASE_NOTES.md

@ -1,6 +1,6 @@
## Module <invoice_multi_approval> ## Module <invoice_multi_approval>
#### 31.10.2020 #### 31.10.2020
#### Version 15.0.1.0.0 #### Version 15.0.1.1.1
##### ADD ##### ADD
- Initial commit - Initial commit

1
invoice_multi_approval/models/account_move.py

@ -43,6 +43,7 @@ class AccountMove(models.Model):
def _onchange_partner_id(self): def _onchange_partner_id(self):
"""This is the onchange function of the partner which loads the """This is the onchange function of the partner which loads the
persons for the approval to the approver table of the account.move""" persons for the approval to the approver table of the account.move"""
print("Onchange")
res = super(AccountMove, self)._onchange_partner_id() res = super(AccountMove, self)._onchange_partner_id()
invoice_approval_id = self.env['invoice.approval'].search([]) invoice_approval_id = self.env['invoice.approval'].search([])
self.approval_ids = None self.approval_ids = None

4
invoice_multi_approval/security/groups.xml

@ -9,12 +9,12 @@
<record id="group_approver" model="res.groups"> <record id="group_approver" model="res.groups">
<field name="name">Approvers</field> <field name="name">Approvers</field>
<field name="category_id" ref="invoice_multi_approval.group_invoice_multi_approval"/> <field name="category_id" ref="invoice_multi_approval.group_invoice_multi_approval"/>
<field name="implied_ids" eval="[(4, ref('account.group_account_invoice'))]"/>
</record> </record>
<record id="group_approve_manager" model="res.groups"> <record id="group_approve_manager" model="res.groups">
<field name="name">Approve Manager</field> <field name="name">Approve Manager</field>
<field name="category_id" ref="invoice_multi_approval.group_invoice_multi_approval"/> <field name="category_id" ref="invoice_multi_approval.group_invoice_multi_approval"/>
<field name="implied_ids" <field name="implied_ids" eval="[(4, ref('invoice_multi_approval.group_approver')), (4, ref('account.group_account_invoice'))]"/>
eval="[(4, ref('invoice_multi_approval.group_approver'))]"/>
</record> </record>
<record id="account.group_account_manager" model="res.groups"> <record id="account.group_account_manager" model="res.groups">
<field name="name">Billing Administrator</field> <field name="name">Billing Administrator</field>

Loading…
Cancel
Save