Skip to content

Commit

Permalink
Merge pull request #477 from OCA/15.0
Browse files Browse the repository at this point in the history
Syncing from upstream OCA/commission (15.0)
  • Loading branch information
bt-admin authored Aug 7, 2024
2 parents cfb7214 + 1f67cea commit 93c7e3f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions commission/migrations/15.0.2.0.0/post-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ def migrate(env, version):
WHERE id = sal_rel.settlement_id
""",
)
# All the existing settlements are of this type for now
openupgrade.logged_query(
env.cr,
"""
UPDATE commission_settlement
SET settlement_type = 'sale_invoice'
""",
)

0 comments on commit 93c7e3f

Please sign in to comment.