Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

184 linhas
4.2 KiB

  1. from . import __version__ as app_version
  2. app_name = "payments"
  3. app_title = "Payments"
  4. app_publisher = "Frappe Technologies"
  5. app_description = "Payments app for frappe"
  6. app_email = "hello@frappe.io"
  7. app_license = "MIT"
  8. # Includes in <head>
  9. # ------------------
  10. # include js, css files in header of desk.html
  11. # app_include_css = "/assets/pay/css/pay.css"
  12. # app_include_js = "/assets/pay/js/pay.js"
  13. # include js, css files in header of web template
  14. # web_include_css = "/assets/pay/css/pay.css"
  15. # web_include_js = "/assets/pay/js/pay.js"
  16. # include custom scss in every website theme (without file extension ".scss")
  17. # website_theme_scss = "pay/public/scss/website"
  18. # include js, css files in header of web form
  19. # webform_include_js = {"doctype": "public/js/doctype.js"}
  20. # webform_include_css = {"doctype": "public/css/doctype.css"}
  21. # include js in page
  22. # page_js = {"page" : "public/js/file.js"}
  23. # include js in doctype views
  24. # doctype_js = {"doctype" : "public/js/doctype.js"}
  25. # doctype_list_js = {"doctype" : "public/js/doctype_list.js"}
  26. # doctype_tree_js = {"doctype" : "public/js/doctype_tree.js"}
  27. # doctype_calendar_js = {"doctype" : "public/js/doctype_calendar.js"}
  28. # Home Pages
  29. # ----------
  30. # application home page (will override Website Settings)
  31. # home_page = "login"
  32. # website user home page (by Role)
  33. # role_home_page = {
  34. # "Role": "home_page"
  35. # }
  36. # Generators
  37. # ----------
  38. # automatically create page for each record of this doctype
  39. # website_generators = ["Web Page"]
  40. # Jinja
  41. # ----------
  42. # add methods and filters to jinja environment
  43. # jinja = {
  44. # "methods": "pay.utils.jinja_methods",
  45. # "filters": "pay.utils.jinja_filters"
  46. # }
  47. # Installation
  48. # ------------
  49. # before_install = "pay.install.before_install"
  50. after_install = "payments.utils.make_custom_fields"
  51. # Uninstallation
  52. # ------------
  53. before_uninstall = "payments.utils.delete_custom_fields"
  54. # after_uninstall = "pay.uninstall.after_uninstall"
  55. # Desk Notifications
  56. # ------------------
  57. # See frappe.core.notifications.get_notification_config
  58. # notification_config = "pay.notifications.get_notification_config"
  59. # Permissions
  60. # -----------
  61. # Permissions evaluated in scripted ways
  62. # permission_query_conditions = {
  63. # "Event": "frappe.desk.doctype.event.event.get_permission_query_conditions",
  64. # }
  65. #
  66. # has_permission = {
  67. # "Event": "frappe.desk.doctype.event.event.has_permission",
  68. # }
  69. # DocType Class
  70. # ---------------
  71. # Override standard doctype classes
  72. override_doctype_class = {
  73. "Web Form": "payments.overrides.paymentwebform.PaymentWebForm"
  74. }
  75. # Document Events
  76. # ---------------
  77. # Hook on document methods and events
  78. # doc_events = {
  79. # "*": {
  80. # "on_update": "method",
  81. # "on_cancel": "method",
  82. # "on_trash": "method"
  83. # }
  84. # }
  85. # Scheduled Tasks
  86. # ---------------
  87. scheduler_events = {
  88. "all": [
  89. "payments.payment_gateways.doctype.razorpay_settings.razorpay_settings.capture_payment",
  90. ],
  91. }
  92. # Testing
  93. # -------
  94. # before_tests = "pay.install.before_tests"
  95. # Overriding Methods
  96. # ------------------------------
  97. #
  98. # override_whitelisted_methods = {
  99. # "frappe.desk.doctype.event.event.get_events": "pay.event.get_events"
  100. # }
  101. #
  102. # each overriding function accepts a `data` argument;
  103. # generated from the base implementation of the doctype dashboard,
  104. # along with any modifications made in other Frappe apps
  105. # override_doctype_dashboards = {
  106. # "Task": "pay.task.get_dashboard_data"
  107. # }
  108. # exempt linked doctypes from being automatically cancelled
  109. #
  110. # auto_cancel_exempted_doctypes = ["Auto Repeat"]
  111. # User Data Protection
  112. # --------------------
  113. # user_data_fields = [
  114. # {
  115. # "doctype": "{doctype_1}",
  116. # "filter_by": "{filter_by}",
  117. # "redact_fields": ["{field_1}", "{field_2}"],
  118. # "partial": 1,
  119. # },
  120. # {
  121. # "doctype": "{doctype_2}",
  122. # "filter_by": "{filter_by}",
  123. # "partial": 1,
  124. # },
  125. # {
  126. # "doctype": "{doctype_3}",
  127. # "strict": False,
  128. # },
  129. # {
  130. # "doctype": "{doctype_4}"
  131. # }
  132. # ]
  133. # Authentication and authorization
  134. # --------------------------------
  135. # auth_hooks = [
  136. # "pay.auth.validate"
  137. # ]
  138. # Translation
  139. # --------------------------------
  140. # Make link fields search translated document names for these DocTypes
  141. # Recommended only for DocTypes which have limited documents with untranslated names
  142. # For example: Role, Gender, etc.
  143. # translated_search_doctypes = []