-
-
Notifications
You must be signed in to change notification settings - Fork 471
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
[18.0][MIG] queue_job_batch, test_queue_job_batch: Migration to 18.0 #744
base: 18.0
Are you sure you want to change the base?
Conversation
[UPD] Update queue_job_batch.pot
* incorrect sintax in security rule * change missleading name of security rule
standard migration and some little ux improvements: now hide button is a fa-check button that on click just marks as read the batch, do not navigate to it and updates immediately the systray.
* The batch enqueued method is removed, to better reflect the fact that the batch's jobs are executed immediately. * The batch state `draft` is is renamed to `pending`, for the same purpose. * The batch's `is_read` field is initialized as `False` (default value), and only set to `True` when it's actually read. * We now use `identity_exact` for the batch `check_state` delayed method. * The widget has been reimplemented due to the heavy refactoring made in the core `mail` app: odoo/odoo@7710c333
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.
Technical migration seems ok! Thanks @ivantodorovich
|
||
@api.depends("job_ids") | ||
@api.depends("job_ids.state") |
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.
do we really need this depends? Job count is not stored.
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.
Not really, for the UI. I'd be necessary when reading the field programatically, though, without invalidating caches. It's a habit 😓
/ocabot migration queue_job_batch |
This PR has the |
Superseeds:
Changes:
draft
is is renamed topending
, for the same purpose.is_read
field is initialized asFalse
(default value), and only set toTrue
when it's actually read.identity_exact
for the batchcheck_state
delayed method.mail
app: odoo/odoo@7710c333