[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
committed by Andrea Stirpe
parent b3fd691c7a
commit 4b138e59e1
63 changed files with 3349 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
# Copyright 2020 ForgeFlow (https://www.forgeflow.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
pos = (
env["account.move.line"]
.search([("purchase_id", "!=", False), ("move_id.type", "=", "entry")])
.mapped("purchase_id")
)
pos._compute_invoice()