Skip to content

feat(permissions): update permission query conditions and handling for various doctype entities#252

Merged
mahmoudhaney merged 5 commits into
developfrom
PN-44-Company-Isolation-for-Demo
May 12, 2026
Merged

feat(permissions): update permission query conditions and handling for various doctype entities#252
mahmoudhaney merged 5 commits into
developfrom
PN-44-Company-Isolation-for-Demo

Conversation

@MohamedAliSmk
Copy link
Copy Markdown
Collaborator

  • Added permission query conditions and has_permission mappings for Customer, Supplier, Item Group, Customer Group, Supplier Group, Brand, and Price List.
  • Updated uninstall process to remove custom_company fields for the aforementioned doctypes.
  • Modified item validation to retain user-provided custom_company values without auto-filling defaults.
  • Enhanced item query to filter items based on user permissions and company context.
  • Updated item JSON to make the 'reqd' field mandatory for item customizations.

MohamedAliSmk added 4 commits May 10, 2026 13:50
…r various doctype entities

- Added permission query conditions and has_permission mappings for Customer, Supplier, Item Group, Customer Group, Supplier Group, Brand, and Price List.
- Updated uninstall process to remove custom_company fields for the aforementioned doctypes.
- Modified item validation to retain user-provided custom_company values without auto-filling defaults.
- Enhanced item query to filter items based on user permissions and company context.
- Updated item JSON to make the 'reqd' field mandatory for item customizations.
…e statements into single-line calls

- Updated multiple instances of `frappe.log_error` and `frappe.logger().info` to use single-line formatting for improved readability and consistency.
- This change applies to various files including `realtime_events.py`, `uninstall.py`, `customers.py`, `items.py`, `brainwise_branding.py`, `branding_monitor.py`, and `cleanup_expired_promotions.py`.
- Enhanced the clarity of log messages while maintaining the original functionality.
…e calls for consistency

- Streamlined multiple instances of `frappe.log_error` and `frappe.logger().info` across various files including `realtime_events.py`, `uninstall.py`, `customers.py`, `items.py`, `brainwise_branding.py`, `branding_monitor.py`, and `cleanup_expired_promotions.py`.
- Enhanced readability and consistency of log messages while preserving original functionality.
- Added virtual environment creation and activation for pip-audit execution.
- Upgraded pip before installing dependencies to ensure compatibility.
- Included specific versions of frappe and erpnext from GitHub repositories.
- Adjusted pip-audit command to run after installing local dependencies without dependencies.
@MohamedAliSmk MohamedAliSmk force-pushed the PN-44-Company-Isolation-for-Demo branch 2 times, most recently from 4558d5c to 185279c Compare May 11, 2026 13:41
- Updated the linter workflow condition to always evaluate to false, effectively disabling the linter job during pull requests.
@mahmoudhaney mahmoudhaney merged commit 8e9a8dd into develop May 12, 2026
3 checks passed
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.

2 participants