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

formio: ir.asset (base model) to replace formio.version.asset #229

Open
bobslee opened this issue May 21, 2023 · 0 comments
Open

formio: ir.asset (base model) to replace formio.version.asset #229

bobslee opened this issue May 21, 2023 · 0 comments

Comments

@bobslee
Copy link
Member

bobslee commented May 21, 2023

Since Odoo v 15.0 there's a model ir.asset.
https://www.odoo.com/documentation/16.0/developer/reference/frontend/assets.html

Let's research whether ir.asset can replace the version asset model: formio.version.asset
Consider the asset files could be stored 2 ways:

  • static: basically this means in the static directory of a module
  • attachment: as ir.attachment record, which is a reference to the file in the Odoo filestore.

This should be taken into account (and refactored) for serving the assets to the DOM document.

If this suggestion will make it (to implement), also data migrations should be done, regarding the models to replace.

This change (migration) could be benificial in maintaining and upgrading the formio module.

@bobslee bobslee changed the title formio: ir.asset (base model) to replace formio.version.asset, formio.extra.asset formio: ir.asset (base model) to replace formio.version.asset Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant