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: Add ignore user perms to set_target_warehouse field in sales invoice #26987

Conversation

nemesis189
Copy link
Contributor

Problem:
When a user having User Permission of a particular Warehouse tries to create sales invoice, the set_target_warehouse field would get set automatically and throws error:
Screenshot 2021-08-17 at 2 10 22 PM

Solution:
Checked the 'Ignore User Permissions' box in the set_target_warehouse field in Sales Invoice Doctype

Steps:

  1. Create a user other than administrator with 'Accounts User', 'Sales User', 'Sales Manager' roles
  2. Create User Permission for this new user for a particular 'Warehouse'.
    Screenshot 2021-08-17 at 2 10 22 PM
  3. Create a Sales Invoice with one or more items from this store/warehouse and try saving

@AfshanKhan AfshanKhan merged commit ef79297 into frappe:develop Aug 18, 2021
frappe-pr-bot pushed a commit to frappe-pr-bot/erpnext that referenced this pull request Aug 18, 2021
…oice (frappe#26987)

* reverting ot v12.7.1

* fix: Ignore user permissions for set_target_warehouse in SI

Co-authored-by: Subin Tom <subin-home@Subins-MacBook-Air.local>
Co-authored-by: Afshan <33727827+AfshanKhan@users.noreply.github.com>
(cherry picked from commit ef79297)

# Conflicts:
#	erpnext/accounts/doctype/sales_invoice/sales_invoice.json
AfshanKhan added a commit that referenced this pull request Aug 19, 2021
…oice (#27013)

* fix:  Add ignore user perms to set_target_warehouse field in sales invoice (#26987)

* reverting ot v12.7.1

* fix: Ignore user permissions for set_target_warehouse in SI

Co-authored-by: Subin Tom <subin-home@Subins-MacBook-Air.local>
Co-authored-by: Afshan <33727827+AfshanKhan@users.noreply.github.com>
(cherry picked from commit ef79297)

# Conflicts:
#	erpnext/accounts/doctype/sales_invoice/sales_invoice.json

* fix: conflicts

* fix: conflicts

Co-authored-by: Subin Tom <36098155+nemesis189@users.noreply.github.com>
Co-authored-by: Afshan <33727827+AfshanKhan@users.noreply.github.com>
asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
…oice (frappe#26987)

* reverting ot v12.7.1

* fix: Ignore user permissions for set_target_warehouse in SI

Co-authored-by: Subin Tom <subin-home@Subins-MacBook-Air.local>
Co-authored-by: Afshan <33727827+AfshanKhan@users.noreply.github.com>
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

2 participants