mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 05:09:11 +00:00
[feat] #19334
This commit is contained in:
committed by
Rohit Waghchaure
parent
e2ea11c437
commit
7021402a45
12
erpnext/patches/v12_0/set_permission_einvoicing.py
Normal file
12
erpnext/patches/v12_0/set_permission_einvoicing.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import frappe
|
||||
from frappe.permissions import add_permission, update_permission_property
|
||||
|
||||
def execute():
|
||||
company = frappe.get_all('Company', filters = {'country': 'Italy'})
|
||||
|
||||
if not company:
|
||||
return
|
||||
|
||||
add_permission('Import Supplier Invoice', 'Accounts Manager', 0)
|
||||
update_permission_property('Import Supplier Invoice', 'Accounts Manager', 0, 'write', 1)
|
||||
update_permission_property('Import Supplier Invoice', 'Accounts Manager', 0, 'create', 1)
|
||||
Reference in New Issue
Block a user