[13.0][FIX] Remove wrong account_document_reversal to fix the broken branch.

https://github.com/OCA/account-financial-tools/pull/965
This commit is contained in:
kittiu
2020-04-09 16:09:34 +07:00
parent da95d87124
commit 82ea174b72
93 changed files with 1 additions and 2133 deletions

View File

@@ -1,35 +0,0 @@
# 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 api, fields, models
class AccountJournal(models.Model):
_inherit = "account.journal"
cancel_method = fields.Selection(
[
("normal", "Normal (remove journal entries)"),
("reversal", "Reversal (create reversed journal entries)"),
],
string="Cancel Method",
default="normal",
required=True,
)
is_cancel_reversal = fields.Boolean(
string="Use Cancel Reversal",
compute="_compute_is_cancel_reversal",
help="True, when journal allow cancel entries with method is reversal",
)
use_different_journal = fields.Boolean(
string="Use different journal for reversal",
help="If checked, reversal wizard will show field Reversal Journal",
)
reversal_journal_id = fields.Many2one(
"account.journal",
string="Default Reversal Journal",
help="Journal in this field will show in reversal wizard as default",
)
def _compute_is_cancel_reversal(self):
for rec in self:
rec.is_cancel_reversal = rec.cancel_method == "reversal"