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

[FIX] default_warehouse_from_sale_team: usability for readonly users T#79454 #1684

Conversation

luisg123v
Copy link
Contributor

@luisg123v luisg123v commented Sep 5, 2024

Limited users are able to see some pickings in readonly mode, but there were some usability issues that are fixed in this commit:

  • It was possible to mark as TODo and check availability, because those actions don't require write access to the pickings. This is fixed by hiding involved buttons.
  • Even though validating a picking does require access, it's also hidden because there's no point on showing a button that can't be used anyway.
  • Similarly, the Print button is also hidden when the picking is not done yet, because it requires access to mark the picking as printed.
  • The Return button is also hidden. Even though it doesn't require write access to the current picking, it will require creation access on the new picking.
  • The Cancel button is not hidden because it requires being inventory administrator, which is not compatible with being a limited user.

Dummy MR:

Limited users are able to see some pickings in readonly mode, but there
were some usability issues that are fixed in this commit:
- It was possible to mark as TODo and check availability, because those
  actions don't require write access to the pickings. This is fixed by
  hiding involved buttons.
- Even though validating a picking does require access, it's also hidden
  because there's no point on showing a button that can't be used anyway.
- Similarly, the Print button is also hidden when the picking is not
  done yet, because it requires access to mark the picking as printed.
- The Return button is also hidden. Even though it doesn't require
  write access to the current picking, it will require creation access
  on the new picking.
- The Cancel button is not hidden because it requires being inventory
  administrator, which is not compatible with being a limited user.
@luisg123v luisg123v force-pushed the 17.0-default_warehouse_readonly_usability-luisg branch from b54b51b to 8dc846c Compare September 5, 2024 15:42
Copy link
Contributor

@TeposteAJ TeposteAJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @luisg123v , I agree with the proposal. The code looks good to me ☺️

@rolandojduartem
Copy link
Contributor

LGTM 👍

@luisg123v luisg123v merged commit 8dc846c into Vauxoo:17.0 Sep 5, 2024
2 of 3 checks passed
@luisg123v luisg123v deleted the 17.0-default_warehouse_readonly_usability-luisg branch September 5, 2024 19:02
@luisg123v luisg123v restored the 17.0-default_warehouse_readonly_usability-luisg branch September 5, 2024 22:46
@luisg123v luisg123v deleted the 17.0-default_warehouse_readonly_usability-luisg branch September 5, 2024 22:57
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

Successfully merging this pull request may close these issues.

3 participants