[13.0][MIG] account_document_reversal

This commit is contained in:
kittiu
2020-03-27 21:23:59 +07:00
committed by Andrea Stirpe
parent 62f1ea31d9
commit b3fd691c7a
63 changed files with 0 additions and 3349 deletions

View File

@@ -1,13 +0,0 @@
# 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()