Skip to content

Commit

Permalink
[sprint_receipt_update_back_office] 8.0.2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevhe18 committed Aug 28, 2024
1 parent a2dd7cf commit ac3922c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sprint_receipt_update_back_office/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "SPRINT - Receipt Update Back Office",
"version": "8.0.2.1.1",
"version": "8.0.2.1.2",
"license": "AGPL-3",
"category": "Invoicing",
"website": "https://simetri-sinergi.id",
Expand Down
9 changes: 6 additions & 3 deletions sprint_receipt_update_back_office/models/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,18 @@ def action_number(self):
_super = super(AccountInvoice, self)
res = _super.action_number()
for document in self:
document._update_payment("Invoice Validation")
if document.type == "out_invoice":
document._update_payment("Invoice Validation")
return res

@api.multi
def action_manual_update_payment(self):
for document in self:
document._update_payment("Manual Update")
if document.type == "out_invoice":
document._update_payment("Manual Update")

@api.multi
def action_manual_cancel_payment(self):
for document in self:
document._cancel_payment("Manual Update")
if document.type == "out_invoice":
document._cancel_payment("Manual Update")

0 comments on commit ac3922c

Please sign in to comment.