Explorar el Código

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

pull/2/head
phot0n hace 2 años
padre
commit
ce7b3e6d75
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      payments/utils/utils.py

+ 1
- 1
payments/utils/utils.py Ver fichero

@@ -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({


Cargando…
Cancelar
Guardar