Skip to content

Commit

Permalink
Merge pull request #4385 from hbrunn/13.0-account-exclude_from_invoic…
Browse files Browse the repository at this point in the history
…e_tab-entry

[13.0][FIX] account: don't set exclude_from_invoice_tab for type entry
  • Loading branch information
pedrobaeza authored Apr 9, 2024
2 parents 3850ffc + ef23c50 commit 39543a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion addons/account/migrations/13.0.1.1/post-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,11 @@ def migration_invoice_moves(env):
env.cr, """
UPDATE account_move_line
SET exclude_from_invoice_tab = TRUE
WHERE old_invoice_line_id IS NULL""",
FROM account_move
WHERE old_invoice_line_id IS NULL
AND account_move_line.move_id=account_move.id
AND account_move.type <> 'entry'
""",
)
# 4th. Adding all the missing lines
openupgrade.logged_query(
Expand Down

0 comments on commit 39543a8

Please sign in to comment.