-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
[16.0][MIG] dms_field: Migration to 16.0 #339
Conversation
Set as draft because drag and drop is not already implemented, but the module is usable yet |
/ocabot migration dms_field |
1f32d57
to
36fc321
Compare
@victoralmau Changes done and drag & drop added |
36fc321
to
1f39e43
Compare
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.
The same suggestion for all occurrences.
dms_field/tests/test_dms_field.py
Outdated
res_model=cls.template._name, res_id=cls.template.id | ||
) | ||
template_ctx.create_dms_directory() | ||
cls.template.refresh() |
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.
cls.template.refresh() | |
cls.template.invalidate_model() |
b869429
to
dbc1671
Compare
@victoralmau Changes done! Added migration script to change the type of ir.ui.view records that keeps dms_tree type |
1229741
to
9c29a7c
Compare
9c29a7c
to
df51b5e
Compare
Done! 😄 |
df51b5e
to
a6ca55c
Compare
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.
I don't understand why renaming from dms_tree
to dms_list
and causes potential problems.
Another thing is that the README is not explaining how to enable this in any model.
aba8ff3
to
6510d67
Compare
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: dms-15.0/dms-15.0-dms_field Translate-URL: https://translation.odoo-community.org/projects/dms-15-0/dms-15-0-dms_field/
…n as default state Before this change, when lauching the reload, the child directories of the reloaded one are opened too. By doing at this step and not setting the default state, the reloads are done just for the implied nodes. Furthermore, the code is improved to just reload the directories that have being changed.
Currently translated at 100.0% (75 of 75 strings) Translation: dms-15.0/dms-15.0-dms_field Translate-URL: https://translation.odoo-community.org/projects/dms-15-0/dms-15-0-dms_field/es/
With hr_dms_field The steps to reproduce the problem are: 1. Open Employee 2. Go to Documents Page 3. Drop a file on a directory 4. Go to another Employee 5. Try to drop a file The file can not be dropped.
2fcf78c
to
652453c
Compare
In the migration, the view type is changed from dms_tree to dms_list. That's because in this point https://github.com/odoo/odoo/blob/16.0/addons/web/static/src/views/fields/field.js#L282 the 'tree' string is replaced by 'list' what is causing problems trying to set the view type as it was before.
A parent directory can be set in templates, if set, the directory that is created linked to a record will be a "child" of that directory. TT48650
…ors when creating directories from a template. Example of use case: - Create a partner. - Create a template linked to partners. - Create a directory through the template. - An access group linked to the partner is created. - Delete the partner directory. - Creates a new directory through the template. - No error will occur and the previous access group will be re-used.
652453c
to
3db3da9
Compare
I have added the explanation for the change from dms_tree to dms_list in the commit message and added in CONFIGURE.rst the way to use the embedded view in any model |
Please use Firefox for PDF preview. It's not working well there. About the other, I think it the button can be faded if not available. |
…ring Now the process will be as follows: - The auto-generated access group will be created. - The user will be defined in explicit_user_ids of the group created in the previous step. In the directory created (from the corresponding record) the auto-generated group (for the user to have access) + the access groups that the template had will be used.
3db3da9
to
0393143
Compare
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.
OK then...
/ocabot merge nobump
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at 83073f4. Thanks a lot for contributing to OCA. ❤️ |
cc @Tecnativa TT48507
This migration has renamed the dms_tree view to dms_list due to an incompatibility with the tree view.
Adapt code to owl and use reactivity that it offers
Use new drag and drop as it is used on dms module
ping @victoralmau @pedrobaeza