Skip to content

Commit 6af1311

Browse files
fix
1 parent d76f559 commit 6af1311

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

addons/account/migrations/13.0.1.1/openupgrade_analysis_work.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,9 @@ account / account.move / matched_percentage (float) : DEL
331331
account / account.move / reverse_entry_id (many2one) : DEL relation: account.move
332332
account / account.move / reversed_entry_id (many2one) : NEW relation: account.move
333333
account / account.invoice / refund_invoice_id (many2one) : DEL relation: account.invoice
334-
# DONE: pre-migration: renamed fields
335-
# DONE: post-migration: used refund_invoice_id to fill reversed_entry_id in case is empty
334+
# DONE: pre-migration: lift FK constraint in reverse_entry_id
335+
# DONE: post-migration: used refund_invoice_id to fill reverse_entry_id in case is empty (for invoices transformed to moves)
336+
# DONE: post-migration: used reverse_entry_id to fill reversed_entry_id in case is empty
336337

337338
account / account.move / tax_type_domain (char) : DEL
338339
# NOTHING TO DO: renamed to invoice_filter_type_domain, but still is non stored

addons/account/migrations/13.0.1.1/pre-migration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ def migrate(env, version):
339339
fill_account_move_line(env)
340340
create_res_partner_ranks(env)
341341
delete_fk_constraints(env)
342+
openupgrade.lift_constraints(env.cr, "account_move", "reverse_entry_id")
342343
fill_account_move_commercial_partner_id(env)
343344
set_account_move_currency_id_required(env)
344345
add_helper_invoice_move_rel(env)

0 commit comments

Comments
 (0)