-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
[17.0][MIG] fs_file + fs_image + fs_file_demo: Migration to 17.0 #345
Conversation
/ocabot migration fs_file |
/ocabot migration fs_file_demo |
/ocabot migration fs_image |
[cache_value], | ||
dirty=False, | ||
) | ||
for record, value in record_values: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you remive the call to norecompute
? It was there on purpose..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, it is deprecated: https://github.com/odoo/odoo/blob/17.0/odoo/api.py#L797
@nguyenminhchien can you update your PR since #344 is merged? |
Uses the FilUploader component to manage the file selection and save the file content at same time as the model. Prior to this change, the content was saved as soon as it was selected which is not possible on new records
* Defines extension hooks to use to specify the object type to use as field value and the value to pass when updating the attachment. * Fixes onchange
Store your image into an external filesystem
The *url_path*, *url* and *internal_url* properties on the *FSFileValue* object return *None* if the information is not available (instead of *False*).
To avoid 'Duplicate explicit target name' error in the rst files where 2 links reference the same url, we must use the double underscores __ to make the reference anonymous
Currently translated at 78.5% (11 of 14 strings) Translation: storage-16.0/storage-16.0-fs_image Translate-URL: https://translation.odoo-community.org/projects/storage-16-0/storage-16-0-fs_image/fr/
Before this change the creation of empty file was not supported. The issue was mainly due to the fact that at create of a FSFileValue instance with a name but without content, the name was no preserved. As result, the insert of the attachement into the DB failed since the name is a required field. If a FSFileValue instance is now created without content but with a name, the name is now preserved on an empty buffer.
Currently translated at 100.0% (11 of 11 strings) Translation: storage-16.0/storage-16.0-fs_file_demo Translate-URL: https://translation.odoo-community.org/projects/storage-16-0/storage-16-0-fs_file_demo/es/
Currently translated at 100.0% (11 of 11 strings) Translation: storage-16.0/storage-16.0-fs_file_demo Translate-URL: https://translation.odoo-community.org/projects/storage-16-0/storage-16-0-fs_file_demo/it/
efdf73b
to
2f19161
Compare
updated |
/ocabot merge nobump |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at e6abc02. Thanks a lot for contributing to OCA. ❤️ |
Ref: BSRD-747
Depends on: