浏览代码

fix: consider payment_tab instead of payments when adding custom fields to web form

pull/2/head
phot0n 2 年前
父节点
当前提交
ce7b3e6d75
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      payments/utils/utils.py

+ 1
- 1
payments/utils/utils.py 查看文件

@@ -54,7 +54,7 @@ def create_payment_gateway(gateway, settings=None, controller=None):




def make_custom_fields(): def make_custom_fields():
if not frappe.get_meta("Web Form").has_field("payments"):
if not frappe.get_meta("Web Form").has_field("payments_tab"):
click.secho("* Installing Payment Custom Fields in Web Form") click.secho("* Installing Payment Custom Fields in Web Form")


create_custom_fields({ create_custom_fields({


正在加载...
取消
保存