mirror of
https://github.com/bringout/oca-ocb-accounting.git
synced 2026-04-26 23:21:59 +02:00
account_reconcile_oca
This commit is contained in:
parent
64fdc5b0df
commit
a8804cdf59
95 changed files with 17541 additions and 0 deletions
|
|
@ -0,0 +1,23 @@
|
|||
from openupgradelib import openupgrade
|
||||
|
||||
|
||||
@openupgrade.migrate()
|
||||
def migrate(env, version):
|
||||
if not openupgrade.column_exists(
|
||||
env.cr, "account_bank_statement_line", "reconcile_data"
|
||||
):
|
||||
return # coming directly from v15, so reconcile_data doesn't exist
|
||||
# Due to the big change we did, we need to loose how data is stored
|
||||
openupgrade.logged_query(
|
||||
env.cr,
|
||||
"""
|
||||
UPDATE account_bank_statement_line
|
||||
SET reconcile_data = NULL
|
||||
""",
|
||||
)
|
||||
openupgrade.logged_query(
|
||||
env.cr,
|
||||
"""
|
||||
DELETE FROM account_account_reconcile_data
|
||||
""",
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue