Skip to content

Commit

Permalink
Merge pull request #4256 from lefilament/15.0-upd-sale_timesheet
Browse files Browse the repository at this point in the history
[15.0][OU-FIX] sale_timesheet : Removed nonbillable_xx types
  • Loading branch information
pedrobaeza authored Dec 19, 2023
2 parents 8d09239 + c9cdbc8 commit 205e23d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ def _re_fill_account_analytic_line_timesheet_invoice_type(env):
FROM aal_tmp WHERE aal_tmp.aal_id = aal.id
""",
)
openupgrade.logged_query(
env.cr,
"""
UPDATE account_analytic_line
SET timesheet_invoice_type = 'non_billable'
WHERE timesheet_invoice_type IN ('non_billable_timesheet', 'non_billable_project')
""",
)


@openupgrade.migrate()
Expand Down

0 comments on commit 205e23d

Please sign in to comment.