Skip to content
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][FIX] s_a_promise_release: Reset last_release_date on unrelease #873

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from

Conversation

TDu
Copy link
Member

@TDu TDu commented Mar 19, 2024

When a transfer has been unreleased the last_release_date is not reset.
This breaks the counters and the list of records (To Release, To Do) on the related channel.

Now with this change the field name/label is incoherent...

@jbaudoux
Copy link
Contributor

cc @rousseldenis @lmignon

@jbaudoux
Copy link
Contributor

@TDu Can you fwd port to 16.0 ?

@rousseldenis
Copy link
Sponsor Contributor

@TDu A little test should be welcome

@rousseldenis rousseldenis added enhancement New feature or request needs review labels Mar 22, 2024
@rousseldenis rousseldenis added this to the 14.0 milestone Mar 22, 2024
@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Comment on lines 195 to 197
self.filtered(lambda pick: pick.need_release).update(
{"last_release_date": False}
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be on the move otherwise if you unrelease the moves, this won't be triggered.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the fix

@rousseldenis
Copy link
Sponsor Contributor

@TDu Could you rebase ?

When a transfer has been unreleased the `last_release_date` is not
reset.
This breaks the counters and the list of records (To Release, To Do)
on the related channel.
@TDu TDu force-pushed the 14-promise-release-fix-todo-counter branch from 3c8b989 to 9420b62 Compare May 21, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants