[IMP] account_document_reversal: black, isort

This commit is contained in:
kittiu
2020-03-26 11:38:12 +07:00
committed by OCA Transbot
parent b78efe0593
commit 0cbb026770
12 changed files with 481 additions and 393 deletions

View File

@@ -1,17 +1,18 @@
# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from odoo import models, api
from odoo import api, models
class AccountDocumentReversal(models.AbstractModel):
_name = 'account.document.reversal'
_description = 'Abstract Module for Document Reversal'
_name = "account.document.reversal"
_description = "Abstract Module for Document Reversal"
@api.model
def reverse_document_wizard(self):
""" Return Wizard to Cancel Document """
action = self.env.ref('account_document_reversal.'
'action_view_reverse_account_document')
action = self.env.ref(
"account_document_reversal." "action_view_reverse_account_document"
)
vals = action.read()[0]
return vals