Merge pull request #30318 from frappe/mergify/bp/version-13-hotfix/pr-30304

fix: Add permission for KSA VAT documents (backport #30304)
This commit is contained in:
Deepesh Garg
2022-03-21 12:05:15 +05:30
committed by GitHub
2 changed files with 14 additions and 1 deletions

View File

@@ -353,4 +353,5 @@ erpnext.patches.v13_0.amazon_mws_deprecation_warning
erpnext.patches.v13_0.set_work_order_qty_in_so_from_mr
erpnext.patches.v13_0.update_accounts_in_loan_docs
erpnext.patches.v13_0.remove_unknown_links_to_prod_plan_items
erpnext.patches.v13_0.rename_non_profit_fields
erpnext.patches.v13_0.rename_non_profit_fields
erpnext.patches.v13_0.enable_ksa_vat_docs #1

View File

@@ -0,0 +1,12 @@
import frappe
from erpnext.regional.saudi_arabia.setup import add_permissions, add_print_formats
def execute():
company = frappe.get_all('Company', filters = {'country': 'Saudi Arabia'})
if not company:
return
add_print_formats()
add_permissions()