mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[OU-FIX] contract: Put recurrence by SQL [ci skip]
This way, we avoid that ORM checks incorrect conditions, like a finished contract line without next invoicing date.
This commit is contained in:
@@ -29,5 +29,4 @@ def migrate(env, version):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Don't alter line recurrence v12 behavior
|
# Don't alter line recurrence v12 behavior
|
||||||
contracts = env["contract.contract"].search([])
|
openupgrade.logged_query(env.cr, "UPDATE contract_line SET line_recurrence = True")
|
||||||
contracts.write({"line_recurrence": True})
|
|
||||||
|
|||||||
Reference in New Issue
Block a user