mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[OU-FIX] contract: Don't alter v12 recurrence mechanism
We can't guarantee the homogeneity of the existing contracts, so we keep the line recurrence behavior.
This commit is contained in:
committed by
Francisco Ivan Anton Prieto
parent
011cc9846d
commit
9c1ea26b8d
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2020 Tecnativa - Pedro M. Baeza
|
# Copyright 2020-2021 Tecnativa - Pedro M. Baeza
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||||
|
|
||||||
from openupgradelib import openupgrade # pylint: disable=W7936
|
from openupgradelib import openupgrade # pylint: disable=W7936
|
||||||
@@ -9,3 +9,6 @@ def migrate(env, version):
|
|||||||
openupgrade.load_data(
|
openupgrade.load_data(
|
||||||
env.cr, "contract", "migrations/13.0.1.0.0/noupdate_changes.xml"
|
env.cr, "contract", "migrations/13.0.1.0.0/noupdate_changes.xml"
|
||||||
)
|
)
|
||||||
|
# Don't alter line recurrence v12 behavior
|
||||||
|
contracts = env["contract.contract"].search([])
|
||||||
|
contracts.write({"line_recurrence": True})
|
||||||
|
|||||||
Reference in New Issue
Block a user