Skip to content

[12.0] Drop target from Kanban to Attachment Storage folder doesn't inherit properly res_model and res_id #72

Description

@Shide

directory = directory_model.browse(self.env.context.get("active_id"))

Expected workflow:
When I drag and drop a file into a folder (with attachment storage) from the kanban view and attached to a record, I expect to create the attachment and be able to view from the record.

Results:
Record is created inside the folder but is not attached to the record.

Steps to reproduce this issue:

  1. Create an attachment storage.
  2. Create a folder linked to an existing employee (fastest removing the readonly property from the form record of res_id).
  3. Drag and drop a file to this folder from the main kanban view
  4. Check on the employee record the attachment (non exists)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions