mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[13.0][MIG] account_document_reversal
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user