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

Updated module problem. v14c #187

Closed
kimasplund opened this issue Jun 21, 2022 · 5 comments
Closed

Updated module problem. v14c #187

kimasplund opened this issue Jun 21, 2022 · 5 comments

Comments

@kimasplund
Copy link

So i upgraded the module along with the web_drop_target module. Now when i open DMS i get the file list of existing files, but they are slightly greyed out with just the text "Drop your files here" active. And if i try to drop a file on it i just get the error:

Error:
Uncaught TypeError: Cannot read properties of undefined (reading 'offset')

https://xxx.fi/web/content/12782-8fd8251/web.assets_backend.js:9339
Traceback:
TypeError: Cannot read properties of undefined (reading 'offset')
    at Class._onBodyFileDragover (https://xxx.fi/web/content/12782-8fd8251/web.assets_backend.js:9339:1045)
    at HTMLBodyElement.dispatch (https://xxx.fi/web/content/12781-6a35a3e/web.assets_common.js:1740:447)
    at elemData.handle (https://xxx.fi/web/content/12781-6a35a3e/web.assets_common.js:1726:166)

And in logs there is absolutely nothing helpful.

@Home-Based
Copy link

Hi all,

We are facing the same problem. The file view is greyed, and we are not able to select any existing file. Dropping a file triggers the same error mentionned by kimasplund. The only way to add a file is to create a blank file model via the desired folder tab, and load it through the opened file model (content field).

Once done, the share link is not working : the provided link opens the file model, not the file itself.

Any help is welcome, don't hesitate to ask for further information if needed.

Regards,

HB

@victoralmau
Copy link
Member

Hi,

can you indicate a list of steps to reproduce it in runboat please? Another option could be to add a video here explaining the error and how to get it.

A greeting.

@Home-Based
Copy link

Hi Victoralmau,

We are working on Odoo CE 14 (Odoo 14.0-20220419 (Community Edition)).

We followed the classical installation process : upload all required modules ("DMS", "web_drop_target", "mail", "http_routing", "portal", "mail_preview_base", "DMS_field") and let the installation process work. All latest versions on github. NSTR on that part.

But... the "file" tab of the documentation module stays always fully greyed (see first att.), and when I want to drop a file in it (as suggested), the error is popping up directly, just when I enter the grey zone with the file hanging on my mouse. I don't have to drop the file to get the error. Error is shown on the second att.

The uploaded files (shown behind the grey mask) are not accessible at all under the "file" tab.

Regarding the share link, we understood that using the link on the same machine (with full privilege logged in user) leads to the file model, and not to the file it-self. A non logged in user gets the file directly.

And the DMS_field module don't add any DMS tab within the res.partner model, even if the "stockage" is created (with attachement option chosen, see third att.).

I don't know runboat, but I understood it is a way to get an odoo instance online to help to reproduce errors. I didn't found the way to initiate an instance, so once done, I can guide.

Best regards,

SA

Capture d’écran 2022-08-30 083103
Capture d’écran 2022-08-30 083250
Capture d’écran 2022-08-30 090213

@victoralmau
Copy link
Member

Hello,

I think it is really not one doubt, but I will try to answer them all.

1. Drag & drop
Works correctly in runboat v14
dms-drag_drop

2. File preview
Works correctly in runboat v14
dms-preview

3. Share link
The link allows whoever has it (it is not necessary to be a user) to access that file or folder:

File example
dms-share-file

Directory example
dms-share-directory

The behavior is similar to, for example, Google Drive.

4. Storage attachment explanation
Attachment type storage requires at least one folder linked to that model.
The behavior is bi-directional:

  • If we add an attachment to a record the file (dms.file) will be created in the contact's folder (it is created if it does not exist).
  • If we add a file (dms.file) in the contact folder, the attachment is created in the linked record.

An explanation of this I think will help to understand it:
dms-storage-attachment

5. dms_file addon:
I am sorry but I do not know how it works in detail.

I hope that all these explanations will help to better understand how dms works.

Best regards.

@pedrobaeza
Copy link
Member

This issue tracker is not for functional doubts.

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

No branches or pull requests

4 participants