Skip to content

[18.0][FIX] dms_field: scope autocomputed directories by model#479

Open
windweaver828 wants to merge 1 commit into
OCA:18.0from
windweaver828:18.0-fix-dms-field-res-id-collision
Open

[18.0][FIX] dms_field: scope autocomputed directories by model#479
windweaver828 wants to merge 1 commit into
OCA:18.0from
windweaver828:18.0-fix-dms-field-res-id-collision

Conversation

@windweaver828

Copy link
Copy Markdown

Autocomputed DMS directories for embedded record views were filtered only by res_id.

Because record IDs are not globally unique across Odoo models, this could make a record such as hr.employee,1 show directories belonging to another model with the same ID, for example dms.field.template,1.

This change scopes the autocomputed directory domain by both res_id and res_model.

Tested:

  • node --check dms_field/static/src/views/dms_list/dms_list_controller.esm.js
  • git diff --check

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @CarlosRoca13,
some modules you are maintaining are being modified, check this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants