blob: ac1f54348879671054db3fdc4eaff073972a0d98 [file] [log] [blame]
Raffael Meyerff878c02019-02-07 03:28:27 +01001import os
2import frappe
3
Raffael Meyer1f72b442019-01-27 23:32:41 +01004
5def setup(company=None, patch=True):
Nabin Haitaa809ce2021-04-07 10:57:46 +05306 add_custom_roles_for_reports()
7
8
9def add_custom_roles_for_reports():
10 """Add Access Control to UAE VAT 201."""
11 if not frappe.db.get_value('Custom Role', dict(report='DATEV')):
12 frappe.get_doc(dict(
13 doctype='Custom Role',
14 report='DATEV',
15 roles= [
16 dict(role='Accounts User'),
17 dict(role='Accounts Manager')
18 ]
19 )).insert()