OCA / web

Odoo web client UI related addons
GNU Affero General Public License v3.0
912 stars 1.86k forks source link

[15.0][IMP] web_drop_target: Avoid errors for undefined elements #2762

Closed CarlosRoca13 closed 6 months ago

CarlosRoca13 commented 6 months ago

cc @Tecnativa TT48179

This changes are done to avoid errors in dms_field. This error is found using this other PR: https://github.com/OCA/dms/pull/310

The steps to reproduce the error are:

  1. Create a directory or a file without using drag and drop
  2. Drag and drop a file into a folder and you will see the error

ping @victoralmau @chienandalu

CarlosRoca13 commented 6 months ago

ping @pedrobaeza

pedrobaeza commented 6 months ago

Steps to reproduce the problem? Put it both in the PR main message and in the commit message.

CarlosRoca13 commented 6 months ago

It's related with this other PR: https://github.com/OCA/dms/pull/310

  1. Create a directory or a file without using drag and drop
  2. Drag and drop a file into a folder and you will see the error
CarlosRoca13 commented 6 months ago

done @pedrobaeza

pedrobaeza commented 6 months ago

/ocabot merge patch

OCA-git-bot commented 6 months ago

This PR looks fantastic, let's merge it! Prepared branch 15.0-ocabot-merge-pr-2762-by-pedrobaeza-bump-patch, awaiting test results.

OCA-git-bot commented 6 months ago

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