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

[17.0][IMP+FIX] dms: Improve performance + Avoid non-existing record access error #360

Merged
merged 2 commits into from
Aug 20, 2024

Conversation

victoralmau
Copy link
Member

FWP from 16.0: #359

Improve performance + Avoid non-existing record access error

Changes done:

  • Improve _dms_operations() method to do nothing if the model is not one of those used in dms.storage.
  • Avoid access error with .browse() if we access a non-existing record (for example, deleted by database).

Please @pedrobaeza and @chienandalu can you review it?

@Tecnativa TT50231

… error

Changes done:
- Improve _dms_operations() method to do nothing if the model is not one of
those used in dms.storage.
- Avoid access error with .browse() if we access a non-existing record (for
example, deleted by database).

TT50231
UserWarning: dms.file: inconsistent 'store' for computed fields, accessing migration
may recompute and update require_migration. Use distinct compute methods for stored
and non-stored fields
@victoralmau victoralmau force-pushed the 17.0-fix-dms-TT50231 branch from 1506000 to 515372f Compare August 20, 2024 06:36
@pedrobaeza pedrobaeza added this to the 17.0 milestone Aug 20, 2024
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 17.0-ocabot-merge-pr-360-by-pedrobaeza-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 6556af1 into OCA:17.0 Aug 20, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@pedrobaeza pedrobaeza deleted the 17.0-fix-dms-TT50231 branch August 20, 2024 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants