WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@Bowrna
Copy link
Contributor

@Bowrna Bowrna commented Oct 29, 2025

Edit: Add new role "Press Billing Manager". Giving permission across doctypes related to billing. Giving appropriate permissions through settings page.

@codecov
Copy link

codecov bot commented Oct 29, 2025

Codecov Report

❌ Patch coverage is 44.00000% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 44.83%. Comparing base (db5cca0) to head (2ba93b0).
⚠️ Report is 121 commits behind head on develop.

Files with missing lines Patch % Lines
press/press/doctype/press_role/press_role.py 52.63% 9 Missing ⚠️
press/api/account.py 16.66% 5 Missing ⚠️

❌ Your patch check has failed because the patch coverage (44.00%) is below the target coverage (75.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3729      +/-   ##
===========================================
- Coverage    44.85%   44.83%   -0.03%     
===========================================
  Files          712      709       -3     
  Lines        48221    48230       +9     
===========================================
- Hits         21630    21623       -7     
- Misses       26591    26607      +16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Bowrna Bowrna requested a review from shadrak98 as a code owner October 31, 2025 07:21
@Bowrna Bowrna changed the title fix(role): Added Permission for press member to add/edit billing address fix(role): Added role Press Billing Manager to add/edit billing address Oct 31, 2025
data=ex,
reference_doctype="Team",
)
billing_details = frappe._dict(billing_details)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have added this try block part by mistake in develop branch. This will swallow the issue without raising to the user

def add_press_billing_manager_role(self, user):
self.add_press_role(user, "Press Billing Manager")

def add_press_admin_role(self, user):
Copy link
Contributor

Choose a reason for hiding this comment

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

With Press Billing Manager, do we still need this method? I think we can safely remove it.

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.

2 participants