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 read permission to Buying Settings #39158

Merged
merged 1 commit into from
Jan 9, 2024
Merged

Conversation

s-aga-r
Copy link
Contributor

@s-aga-r s-aga-r commented Jan 5, 2024

Internal Ref: 8011

Issue: Permission Error for Buying Settings on Purchase Receipt.

Add read permission to roles that have create permission for PR and PI.

related: #38942

@s-aga-r
Copy link
Contributor Author

s-aga-r commented Jan 5, 2024

@ankush, is there any other way instead of adding roles? except onload()

Copy link

codecov bot commented Jan 5, 2024

Codecov Report

Attention: 86 lines in your changes are missing coverage. Please review.

Comparison is base (33b631e) 60.03% compared to head (e05bf9d) 60.08%.
Report is 62 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #39158      +/-   ##
===========================================
+ Coverage    60.03%   60.08%   +0.04%     
===========================================
  Files          761      761              
  Lines        70122    70304     +182     
===========================================
+ Hits         42099    42243     +144     
- Misses       28023    28061      +38     
Files Coverage Δ
...xt/accounts/doctype/journal_entry/journal_entry.py 66.54% <100.00%> (+0.51%) ⬆️
...ounts/doctype/purchase_invoice/purchase_invoice.py 70.30% <100.00%> (+0.12%) ⬆️
...next/accounts/doctype/subscription/subscription.py 77.97% <100.00%> (+0.25%) ⬆️
erpnext/accounts/party.py 81.42% <100.00%> (+0.30%) ⬆️
erpnext/controllers/sales_and_purchase_return.py 91.18% <100.00%> (+0.57%) ⬆️
erpnext/hooks.py 100.00% <100.00%> (ø)
erpnext/manufacturing/doctype/bom/bom.py 73.32% <100.00%> (+0.75%) ⬆️
erpnext/regional/united_arab_emirates/utils.py 38.38% <100.00%> (ø)
erpnext/setup/install.py 23.14% <ø> (-0.07%) ⬇️
erpnext/setup/setup_wizard/setup_wizard.py 75.86% <ø> (ø)
... and 22 more

... and 10 files with indirect coverage changes

@s-aga-r s-aga-r marked this pull request as ready for review January 9, 2024 10:42
@s-aga-r s-aga-r merged commit 1b4fbbb into frappe:develop Jan 9, 2024
16 checks passed
@barredterra
Copy link
Collaborator

@s-aga-r share and email permissions seem like a bit too much, why did you add these?

barredterra added a commit that referenced this pull request Jan 9, 2024
…-39158

fix: add read permission to Buying Settings (backport #39158)
s-aga-r added a commit that referenced this pull request Jan 9, 2024
* fix: add read permission to Buying Settings

(cherry picked from commit e05bf9d)

# Conflicts:
#	erpnext/buying/doctype/buying_settings/buying_settings.json

* chore: resolve merge conflicts

---------

Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
@s-aga-r
Copy link
Contributor Author

s-aga-r commented Jan 9, 2024

@s-aga-r share and email permissions seem like a bit too much, why did you add these?

missed this as it was added by default, will remove it in the next release.

frappe-pr-bot pushed a commit that referenced this pull request Jan 10, 2024
# [14.59.0](v14.58.1...v14.59.0) (2024-01-10)

### Bug Fixes

* add read permission to Buying Settings (backport [#39158](#39158)) ([#39257](#39257)) ([a15ad80](a15ad80))
* asset WDV depreciation calc according to IT act ([1cbe1e8](1cbe1e8))
* BOM replace tool does not update exploded items of root (backport [#39244](#39244)) ([#39249](#39249)) ([c2eeeec](c2eeeec))
* don't set rate for non-stock item in Internal Transfer (backport [#39140](#39140)) ([#39168](#39168)) ([06d193a](06d193a))
* Duplicate Closing Stock Balance (backport [#39262](#39262)) ([#39263](#39263)) ([a3146c3](a3146c3))
* **Employee:** treeview ([#39126](#39126)) ([080a742](080a742))
* FG Item incorrect qty in the work order (backport [#39200](#39200)) ([#39210](#39210)) ([5e517cf](5e517cf))
* Ignore asset qty and status validation while cancelling LCV ([952cee3](952cee3))
* Ignore UP on "allowed to transact with" (backport [#39103](#39103)) ([#39104](#39104)) ([7d64df0](7d64df0))
* improved validation message ([580e9f6](580e9f6))
* incorrect indicator title for portal sales order (backport [#39247](#39247)) ([#39254](#39254)) ([8c496fb](8c496fb))
* inventory dimension negative stock validation (backport [#39149](#39149)) ([#39150](#39150)) ([2866f7c](2866f7c))
* possible typeerror on transaction.js ([8fe346a](8fe346a))
* Purchase date and amount is not mandatory for composite asset creation ([0f6477a](0f6477a))
* remove global _("translation") calls (backport [#32828](#32828)) ([#39231](#39231)) ([ee7474b](ee7474b))
* resolved conflict ([b529883](b529883))
* set `First Name` in Supplier Contact ([69c460c](69c460c))
* Set asset purchase amount based on qty and valuation_rate ([41e3843](41e3843))
* set parent doctype on chart (backport [#39286](#39286)) ([#39287](#39287)) ([a2a8558](a2a8558))
* Show maintain-stock and is-fixed-asset checkbox in item quick entry dialog ([7b4b630](7b4b630))
* Show timesheet table after fetching data from timesheet (backport [#39275](#39275)) ([#39280](#39280)) ([1cc887a](1cc887a))
* skip rate validation for return `DN Items` with `Moving Average` valuation (backport [#39242](#39242)) ([#39265](#39265)) ([f42e93b](f42e93b))
* total allocated percentage for sales team issue ([71f9b7f](71f9b7f))
* TypeError is pricing rules (backport [#39252](#39252)) ([#39259](#39259)) ([36ba33c](36ba33c))
* typerror on multi select dialog ([71ecf08](71ecf08))
* update Maintenance Schedule status on Maintenance Visit submit (backport [#39167](#39167)) ([#39185](#39185)) ([2ea2146](2ea2146))
* **UX:** dont override framework's permission check messages (backport [#39118](#39118)) ([#39119](#39119)) ([26ae708](26ae708))

### Features

* Copy project_name, from_time, to_time from timesheet details to sales invoice ([#33726](#33726)) ([d0e1162](d0e1162))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants