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

[16.0][FIX] vault: Secret generator is not saving new value #663

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

CarlosRoca13
Copy link
Contributor

When a field has assigned a value and we try to change it by using the secrets generator, the new value is not saved. It is happening because the click event on wizard buttons is propagated and this trigger the bus event RELATIONAL_MODEL:NEED_LOCAL_CHANGES.

By doing this changes the value generated is assigned to the field without loosing the focus. So the value is saved.

Steps to reproduce the problem:

  1. Create a Vault
  2. Create an Entry for the Vault
  3. Create a Field for the Entry
  4. Assign a value
  5. Edit the value using the button to generate secrets
  6. Save the new secret

You will see that the value salected on wizard is not saved.

cc @Tecnativa TT49554

ping @victoralmau @pedrobaeza @fkantelberg

When a field has assigned a value and we try to change it by
using the secrets generator, the new value is not saved. It is
happening because the click event on wizard buttons is propagated
and this trigger the bus event RELATIONAL_MODEL:NEED_LOCAL_CHANGES.

By doing this changes the value generated is assigned to the field
without loosing the focus. So the value is saved.

Steps to reproduce the problem:

1. Create a Vault
2. Create an Entry for the Vault
3. Create a Field for the Entry
4. Assign a value
5. Edit the value using the button to generate secrets
6. Save the new secret

You will see that the value salected on wizard is
not saved.

TT49554
@pedrobaeza pedrobaeza added this to the 16.0 milestone Jun 10, 2024
@pedrobaeza
Copy link
Member

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-663-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 77a09fb into OCA:16.0 Jun 12, 2024
7 of 9 checks passed
@OCA-git-bot
Copy link
Contributor

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

@pedrobaeza pedrobaeza deleted the 16.0-FIX-vault-password_generator branch June 12, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants