Skip to content

[18.0][MIG] rest_log #509

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

Open
wants to merge 60 commits into
base: 18.0
Choose a base branch
from
Open

[18.0][MIG] rest_log #509

wants to merge 60 commits into from

Conversation

glitchov
Copy link

Migration from 16.0

simahawk and others added 30 commits March 14, 2025 08:39
Extrapolate feature from OCA/wms/shopfloor.
Previous hook was cloning the table
but by doing so SQL sequences and indexes were missing.
This commit

odoo/odoo@9a129ca

refactored MockRequest which breaks tests.
rest api automatically encode dates properly.
Storing full responses can be dangerous if not encoded properly.
Fix regression caused by OCA/pull/147.
Unfortunately there's no 100% test cov.

I'm gonna fix this soon.
This hook is not needed anymore.
If you were using shopfloor before this module was introduced
you already migrated data.
Odoo errors now inherit from UserError :/
SilvioC2C and others added 15 commits March 14, 2025 08:46
Some endpoints will not return a dict as expected by the ``_dispatch_with_db_logging`` method (and the other methods called within), but an object of type ``odoo.http.Response``.
When that happens, the instance fails to handle it while creating logs (ie: tries to call ``json.dumps()`` on such object, which is not allowed).
This patch should fix the issue.
This way we can hook an manipulate data w/out having to decode from JSON back and forth.
Currently translated at 100.0% (41 of 41 strings)

Translation: rest-framework-16.0/rest-framework-16.0-rest_log
Translate-URL: https://translation.odoo-community.org/projects/rest-framework-16-0/rest-framework-16-0-rest_log/it/
Currently translated at 100.0% (41 of 41 strings)

Translation: rest-framework-16.0/rest-framework-16.0-rest_log
Translate-URL: https://translation.odoo-community.org/projects/rest-framework-16-0/rest-framework-16-0-rest_log/it/
@glitchov glitchov force-pushed the 18.0-mig-rest_log-hda branch 8 times, most recently from edf9494 to 9b70b9e Compare March 18, 2025 15:34
@glitchov glitchov force-pushed the 18.0-mig-rest_log-hda branch from 9b70b9e to 5605139 Compare March 18, 2025 16:14
@lmignon
Copy link
Contributor

lmignon commented Apr 10, 2025

/ocabot migration rest_log

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Apr 10, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Apr 10, 2025
18 tasks
@lmignon
Copy link
Contributor

lmignon commented Apr 10, 2025

@glitchov Thank you for the migration. Can you fix the test plz?

@lmignon
Copy link
Contributor

lmignon commented May 14, 2025

ping @glitchov
Could you also include #520

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants