diff --git a/mis_builder_cash_flow/migrations/16.0.1.0.0/noupdate_changes.xml b/mis_builder_cash_flow/migrations/16.0.1.0.0/noupdate_changes.xml new file mode 100644 index 00000000..1ed7b593 --- /dev/null +++ b/mis_builder_cash_flow/migrations/16.0.1.0.0/noupdate_changes.xml @@ -0,0 +1,23 @@ + + + + bal[][('account_type', '=', 'asset_cash'), ('line_type', '=', 'move_line'), ('account_id.hide_in_cash_flow', '=', False)] + + + bale[][('account_id.hide_in_cash_flow', '=', False), '|', ('line_type', '=', 'forecast_line'), ('line_type', '=', 'move_line'), '|', ('account_type', '=', 'asset_cash'), ('account_type', 'in', ('asset_receivable', 'liability_payable')), ('full_reconcile_id', '=', False)] + + + bal[][ ('account_type', '=', 'asset_receivable'), ('full_reconcile_id', '=', False), ('line_type', '=', 'move_line'), ('account_id.hide_in_cash_flow', '=', False)] + + + bal[][ ('account_type', '=', 'liability_payable'), ('full_reconcile_id', '=', False), ('line_type', '=', 'move_line'), ('account_id.hide_in_cash_flow', '=', False)] + + diff --git a/mis_builder_cash_flow/migrations/16.0.1.0.0/post-migration.py b/mis_builder_cash_flow/migrations/16.0.1.0.0/post-migration.py new file mode 100644 index 00000000..7c916779 --- /dev/null +++ b/mis_builder_cash_flow/migrations/16.0.1.0.0/post-migration.py @@ -0,0 +1,10 @@ +# Copyright 2024 Tecnativa - Pedro M. Baeza +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data( + env.cr, "mis_builder_cash_flow", "migrations/16.0.1.0.0/noupdate_changes.xml" + )