-
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX+IMP] _change_generic: Allow to transfer generic stuff between mo…
…dels + fix followers through SQL Adding a new keyword argument allows us to pass a possible new model for using this function in other contexts like transferring the generic stuff from one model to another (e.g. from account.invoice to account.move in the v12 > v13 migration). When adding this feature, I have discovered as well a bug in current code using the SQL method, where barely no followers where transferred, as the query was not having into account the model, so as soon as the partner is follower of any record of any model with such ID, then it's not transferred.
- Loading branch information
1 parent
afc2a77
commit 394286a
Showing
1 changed file
with
35 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters