Skip to content

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

Merged
OCA-git-bot merged 2 commits intoOCA:17.0from
Tecnativa:17.0-fix-dms-TT50231
Aug 20, 2024
Merged

[17.0][IMP+FIX] dms: Improve performance + Avoid non-existing record access error#360
OCA-git-bot merged 2 commits intoOCA:17.0from
Tecnativa:17.0-fix-dms-TT50231

Conversation

@victoralmau
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@OCA-git-bot
Copy link
Copy Markdown
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