-
-
Notifications
You must be signed in to change notification settings - Fork 702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[14.0][OU-FIX] hr_timesheet: Delete obsolete view #3658
[14.0][OU-FIX] hr_timesheet: Delete obsolete view #3658
Conversation
Hi @pedrobaeza, @MiquelRForgeFlow, @StefanRijnhart, |
de5b107
to
9694bcb
Compare
Better to rename the view then, to auto-document the disappearing of such module. And shouldn't you put it on |
No the OCA module I'm using unlink because without this collision, the view would have been deleted during the |
I don't get it then. If if exists on 14.0, when you do the regular update, the view will be removed as the XML-ID doesn't exist anymore. |
But the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, it's due to such constraint...
openupgrade_scripts/scripts/hr_timesheet/14.0.1.0/pre-migration.py
Outdated
Show resolved
Hide resolved
In previous `hr_timesheet_analysis` module version, a pivot view was already defined for the `hr_timesheet.timesheet_action_all` action. In 14.0, the `hr_timesheet` module introduced its own pivot view `timesheet_action_view_all_pivot` that collides with the deprecated one from the OCA module and raise a constraint exception: ``` psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint "act_window_view_unique_mode_per_action" DETAIL: Key (act_window_id, view_mode)=(xxx, pivot) already exists. ```
9694bcb
to
dc03be9
Compare
In previous
hr_timesheet_analysis
module version, a pivot view was already defined for thehr_timesheet.timesheet_action_all
action.In 14.0, the
hr_timesheet
module introduced its own pivot viewtimesheet_action_view_all_pivot
that collides with the deprecated one from the OCA module and raise a constraint exception: