project icon indicating copy to clipboard operation
project copied to clipboard

[16.0][MIG]project_task_recurring_activity: migration to `16.0`

Open PicchiSeba opened this issue 1 year ago • 5 comments

PicchiSeba avatar Aug 08 '24 10:08 PicchiSeba

/ocabot migration project_task_recurring_activity

rousseldenis avatar Sep 17 '24 09:09 rousseldenis

Compared to the previous version, with the deletion of the onchange lines 83-84 of recurring_activity.py are never hit. Should we remove the check entirely or restore (at least a part of) the previous behavior?

PicchiSeba avatar Sep 26 '24 10:09 PicchiSeba

Compared to the previous version, with the deletion of the onchange lines 83-84 of recurring_activity.py are never hit. Should we remove the check entirely or restore part of the previous behavior?

No, that's ok, only the #84. I suppose because user_id is already set. If you want to improve coverage, do a test without assigning a user (or a default ?)

rousseldenis avatar Sep 26 '24 10:09 rousseldenis

If you want to improve coverage, do a test without assigning a user (or a default ?)

With the current implementation it is not possible not to assign a user. That's why at the current state those checks are not useful. The issue lies in required=True.

Maybe we could remove that requirement from the field but maintain the same behavior. For example we could add checks in the write method that, if not user is set, we use the one defined in activity_type_id, and if it doesn't have an user too then we raise an error.

PicchiSeba avatar Sep 26 '24 10:09 PicchiSeba

I removed the check for user_id because it was unnecessary

PicchiSeba avatar Oct 04 '24 08:10 PicchiSeba

/ocabot merge nobump

dreispt avatar Jun 02 '25 11:06 dreispt

On my way to merge this fine PR! Prepared branch 16.0-ocabot-merge-pr-1323-by-dreispt-bump-nobump, awaiting test results.

OCA-git-bot avatar Jun 02 '25 11:06 OCA-git-bot

Congratulations, your PR was merged at e36ee1f262c0c3a489e89723746c086447edb114. Thanks a lot for contributing to OCA. ❤️

OCA-git-bot avatar Jun 02 '25 11:06 OCA-git-bot