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

[FW][FIX] web: more reliably avoid downloads on new file #77695

Closed

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Oct 4, 2021

5195550 mitigated an issue of being
able to try and download files which don't exist yet, make the fix
more reliable by clearing out the field completely before only
re-inserting content.

Also clean up the code:

  • an old-style forward port created a duplicate fixprovement
    (a8d01cb) which seems less correct
    as it applies conditionally
  • and the code is branchier than necessary, we can make it simpler by
    judiciously leveraging jquery's API

Forward-Port-Of: #77603

5195550 mitigated an issue of being
able to try and download files which don't exist yet, make the fix
more reliable by clearing out the field completely and hiding the
content if the (readonly) field has no value *or the record is not
saved yet*.

Also clean up the code:

* an old-style forward port created a duplicate fixprovement
  (a8d01cb) which seems less correct
  as it applies conditionally
* and the code is branchier than necessary, we can make it simpler by
  judiciously leveraging jquery's API

X-original-commit: 0eccd39
@robodoo robodoo added the forwardport This PR was created by @fw-bot label Oct 4, 2021
@robodoo
Copy link
Contributor

robodoo commented Oct 4, 2021

@fw-bot
Copy link
Contributor Author

fw-bot commented Oct 4, 2021

This PR targets 12.0 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@fw-bot
Copy link
Contributor Author

fw-bot commented Oct 4, 2021

Ping @xmo-odoo
The next pull request (#77703) is in conflict. You can merge the chain up to here by saying

@fw-bot r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@xmo-odoo
Copy link
Collaborator

xmo-odoo commented Oct 4, 2021

@fw-bot r+

robodoo pushed a commit that referenced this pull request Oct 4, 2021
5195550 mitigated an issue of being
able to try and download files which don't exist yet, make the fix
more reliable by clearing out the field completely and hiding the
content if the (readonly) field has no value *or the record is not
saved yet*.

Also clean up the code:

* an old-style forward port created a duplicate fixprovement
  (a8d01cb) which seems less correct
  as it applies conditionally
* and the code is branchier than necessary, we can make it simpler by
  judiciously leveraging jquery's API

closes #77695

X-original-commit: 0eccd39
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
@C3POdoo C3POdoo added the RD research & development, internal work label Oct 4, 2021
@robodoo robodoo closed this Oct 4, 2021
@robodoo robodoo temporarily deployed to merge October 4, 2021 11:23 Inactive
@fw-bot fw-bot deleted the 12.0-11.0-cleanup-binary-xmo-di8K-fw branch October 18, 2021 11:46
damdam-s pushed a commit to camptocamp/odoo that referenced this pull request Jan 19, 2022
5195550 mitigated an issue of being
able to try and download files which don't exist yet, make the fix
more reliable by clearing out the field completely and hiding the
content if the (readonly) field has no value *or the record is not
saved yet*.

Also clean up the code:

* an old-style forward port created a duplicate fixprovement
  (a8d01cb) which seems less correct
  as it applies conditionally
* and the code is branchier than necessary, we can make it simpler by
  judiciously leveraging jquery's API

closes odoo#77695

X-original-commit: 0eccd39
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forwardport This PR was created by @fw-bot RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants