Skip to content

Conversation

hubvd
Copy link
Contributor

@hubvd hubvd commented Jul 31, 2023

Steps to reproduce

  • Remove the Accounting/Billing permission from Marc Demo
  • Login as Marc Demo
  • Start a POS session
  • Click on "Cash In/Out"

An error occurs because the user doesn't have the appriopriate permission

Solution

When loading the pos data, set cash_control to False when the permission is missing.

opw-3333622

@robodoo
Copy link
Contributor

robodoo commented Jul 31, 2023

Pull request status dashboard

@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Jul 31, 2023
@hubvd hubvd force-pushed the 16.0-opw-3333622-huvw branch 3 times, most recently from ea71e6b to 086e5a4 Compare August 2, 2023 11:36
Steps to reproduce
==================

- Remove the Accounting/Billing permission from Marc Demo
- Login as Marc Demo
- Start a POS session
- Click on "Cash In/Out"

An error occurs because the user doesn't have the appropriate
permission

Solution
========

Add a key `has_cash_move_permission` in the pos config.
Set it to the presence/absence of the group `account.group_account_invoice`.
If the permission is missing, hide the "Cash In/Out" button.

opw-3333622
@hubvd hubvd force-pushed the 16.0-opw-3333622-huvw branch from 086e5a4 to ec3151f Compare August 2, 2023 12:16
@hubvd hubvd marked this pull request as ready for review August 2, 2023 14:27
@C3POdoo C3POdoo requested review from a team and rhe-odoo and removed request for a team August 2, 2023 14:41
@hubvd
Copy link
Contributor Author

hubvd commented Aug 3, 2023

@caburj What do you think ?

Copy link
Contributor

@robinengels robinengels left a comment

Choose a reason for hiding this comment

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

lgtm ! Again very nice fix by Hubert

@rhe-odoo
Copy link
Contributor

@robodoo r+

@fw-bot
Copy link
Contributor

fw-bot commented Aug 14, 2023

@hubvd @rhe-odoo this pull request has forward-port PRs awaiting action (not merged or closed):

6 similar comments
@fw-bot
Copy link
Contributor

fw-bot commented Aug 15, 2023

@hubvd @rhe-odoo this pull request has forward-port PRs awaiting action (not merged or closed):

@fw-bot
Copy link
Contributor

fw-bot commented Aug 16, 2023

@hubvd @rhe-odoo this pull request has forward-port PRs awaiting action (not merged or closed):

@fw-bot
Copy link
Contributor

fw-bot commented Aug 17, 2023

@hubvd @rhe-odoo this pull request has forward-port PRs awaiting action (not merged or closed):

@fw-bot
Copy link
Contributor

fw-bot commented Aug 18, 2023

@hubvd @rhe-odoo this pull request has forward-port PRs awaiting action (not merged or closed):

@fw-bot
Copy link
Contributor

fw-bot commented Aug 19, 2023

@hubvd @rhe-odoo this pull request has forward-port PRs awaiting action (not merged or closed):

@fw-bot
Copy link
Contributor

fw-bot commented Aug 20, 2023

@hubvd @rhe-odoo this pull request has forward-port PRs awaiting action (not merged or closed):

@fw-bot
Copy link
Contributor

fw-bot commented Aug 22, 2023

@hubvd @rhe-odoo this pull request has forward-port PRs awaiting action (not merged or closed):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants