Skip to content

[20.0][IMP] fs_attachment: allow field keys in force db rules - #687

Closed
HviorForgeFlow wants to merge 3 commits into
OCA:20.0from
ForgeFlow:20.0-imp-fs_attachment-force_db_by_field
Closed

HviorForgeFlow wants to merge 3 commits into
OCA:20.0from
ForgeFlow:20.0-imp-fs_attachment-force_db_by_field

Conversation

@HviorForgeFlow

Copy link
Copy Markdown
Member

Forward port of #673

Depends on:

PD: this branch contains the commits of #679 until it is merged, only the last commit belongs to this PR.

CC @ForgeFlow

Allows to keep in DB the attachments of a specific binary field, like the menu
icons (ir.ui.menu.web_icon_data) that are read on every page load, without
raising the "image/" limit for all the images.

* rules can be grouped by name: "mimetype-size" and "field-size"
* keys that are not a rule name are read as mimetype rules, as before

Assisted-by: Claude Opus 5.5
(cherry picked from commit 3ce89d6)
@HviorForgeFlow
HviorForgeFlow force-pushed the 20.0-imp-fs_attachment-force_db_by_field branch from d2476e1 to 790d98e Compare October 21, 2026 18:45
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.

3 participants