Uh oh!
There was an error while loading. Please reload this page.
[14.0][FIX] It seems that sometimes jobs doesn't have a job_method and the __repr__ failed - #440
Conversation
…d the __repr__ failed
OCA-git-bot
commented
Jun 15, 2022
Hi @guewen, |
rousseldenis
commented
Jun 22, 2022
@acsonefho is there a mean to write a test to reproduce? |
| return [self] | ||
| def __repr__(self): | ||
| job_method = "" |
There was a problem hiding this comment.
Shouldn't it be something more user friendly than a void string ?
There was a problem hiding this comment.
That happens when the current object is related to nothing. So what do you propose? :)
rousseldenis
commented
Jun 29, 2022
@guewen What do you think of this ? |
rousseldenis
left a comment
There was a problem hiding this comment.
Quite trivial as job_method slot is None by default.
Even if this could be enhanced, this is sufficient to avoid errors
guewen
commented
Jun 29, 2022
We see in the traceback that it happens in the |
acsonefho
commented
Jun 29, 2022
Thanks for the review. |
guewen
commented
Jun 30, 2022
/ocabot merge patch |
OCA-git-bot
commented
Jun 30, 2022
What a great day to merge this nice PR. Let's do it! |
OCA-git-bot
commented
Jun 30, 2022
Congratulations, your PR was merged at 5a6a806. Thanks a lot for contributing to OCA. ❤️ |
That fix the issue into Shopinvader: https://github.com/shopinvader/odoo-shopinvader/runs/6897055192?check_suite_focus=true#step:8:7767 (cfr screenshot).
The issue happens into every PR in v14.0 (during merge or after a rebase).
The issue happens during the call to the
__repr__of theDelayableobject when the attribute_job_methodisNone.https://github.com/OCA/queue/blob/14.0/queue_job/delay.py#L496
I didn't clearly identify why the
_job_methodis not filled. So maybe this PR is not a good solution.