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

[17.0][MIG] fs_file + fs_image + fs_file_demo: Migration to 17.0 #345

Merged
merged 67 commits into from
Apr 25, 2024

Conversation

nguyenminhchien
Copy link

@nguyenminhchien nguyenminhchien commented Mar 1, 2024

@lmignon
Copy link
Sponsor Contributor

lmignon commented Mar 24, 2024

/ocabot migration fs_file

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Mar 24, 2024
@lmignon
Copy link
Sponsor Contributor

lmignon commented Mar 24, 2024

/ocabot migration fs_file_demo

@lmignon
Copy link
Sponsor Contributor

lmignon commented Mar 24, 2024

/ocabot migration fs_image

[cache_value],
dirty=False,
)
for record, value in record_values:
Copy link
Sponsor Contributor

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..

Copy link
Author

Choose a reason for hiding this comment

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

@lmignon
Copy link
Sponsor Contributor

lmignon commented Apr 9, 2024

@nguyenminhchien can you update your PR since #344 is merged?

lmignon and others added 18 commits April 9, 2024 17:54
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
benwillig and others added 21 commits April 9, 2024 17:54
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/
@nguyenminhchien
Copy link
Author

@nguyenminhchien can you update your PR since #344 is merged?

updated

@lmignon
Copy link
Sponsor Contributor

lmignon commented Apr 25, 2024

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 17.0-ocabot-merge-pr-345-by-lmignon-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit ccbe773 into OCA:17.0 Apr 25, 2024
5 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at e6abc02. Thanks a lot for contributing to OCA. ❤️

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

Successfully merging this pull request may close these issues.

None yet