Skip to content

[IMP] Add FS Storage Dynamic Routing Rules - #662

Open
baimont wants to merge 1 commit into
OCA:18.0from
acsone:bai_dynamic_storage
Open

[IMP] Add FS Storage Dynamic Routing Rules#662
baimont wants to merge 1 commit into
OCA:18.0from
acsone:bai_dynamic_storage

Conversation

@baimont

@baimont baimont commented Aug 27, 2026

Copy link
Copy Markdown

No description provided.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@OCA-git-bot OCA-git-bot added mod:fs_storage Module fs_storage mod:fs_attachment Module fs_attachment series:18.0 labels Aug 27, 2026
@baimont
baimont force-pushed the bai_dynamic_storage branch from 0d0bdee to 26e70a2 Compare August 27, 2026 14:38
@baimont

baimont commented Aug 27, 2026

Copy link
Copy Markdown
Author

take a look @sbidoul and @AnizR

@AnizR

AnizR commented Aug 31, 2026

Copy link
Copy Markdown

take a look @sbidoul and @AnizR

Can you give some context?

@lmignon lmignon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@baimont Could you add some user-oriented documentation explaining this new feature in the usage section?

I think this is particularly important here, as without this explanation it is quite difficult to understand what the code is doing, and someone discovering the module would otherwise have no way of knowing that this feature exists.

@baimont
baimont force-pushed the bai_dynamic_storage branch from 26e70a2 to a70e6cc Compare September 1, 2026 08:19
@baimont

baimont commented Sep 1, 2026

Copy link
Copy Markdown
Author

@baimont Could you add some user-oriented documentation explaining this new feature in the usage section?

I think this is particularly important here, as without this explanation it is quite difficult to understand what the code is doing, and someone discovering the module would otherwise have no way of knowing that this feature exists.

hey @lmignon, done

Comment thread fs_attachment/readme/USAGE.md Outdated

@lmignon lmignon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some little comments regarding the way you design your cache....

Comment thread fs_storage/models/fs_storage.py
Comment thread fs_storage/models/fs_storage.py Outdated
@baimont
baimont force-pushed the bai_dynamic_storage branch from a70e6cc to ab639b8 Compare September 8, 2026 08:08
@baimont
baimont requested a review from lmignon September 8, 2026 08:13

@simahawk simahawk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@lmignon am I wrong to say that this does not sound as a core feature and can stay in its own module?

@lmignon

lmignon commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

@lmignon am I wrong to say that this does not sound as a core feature and can stay in its own module?

You're right. I've the feeling it could be developed as an extension... @baimont What do you thing about?

@baimont

baimont commented Sep 8, 2026

Copy link
Copy Markdown
Author

@lmignon am I wrong to say that this does not sound as a core feature and can stay in its own module?

You're right. I've the feeling it could be developed as an extension... @baimont What do you thing about?

I hesitated but IMO this is an improvement of the model_ids and field_ids fields on fs.storage that already allow to route to different storages. That's why I went for this. I can change it.

@lmignon

lmignon commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

@lmignon am I wrong to say that this does not sound as a core feature and can stay in its own module?

You're right. I've the feeling it could be developed as an extension... @baimont What do you thing about?

I hesitated but IMO this is an improvement of the model_ids and field_ids fields on fs.storage that already allow to route to different storages. That's why I went for this. I can change it.

The discussion is open 😏 The main goal is to avoid increasing the module's complexity by adding optional features that are not required for common use cases. Maybe we could also rethink the structure of this addon for Odoo 20 and split it into smaller modules.

@AnizR AnizR left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

IMO, the feature can be in a separate module. (And so, I'll wait before approving the PR)

Otherwise, the code seems pretty clean to me, good job 🚀

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

Labels

mod:fs_attachment Module fs_attachment mod:fs_storage Module fs_storage series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants