Browse Source

Merge branch 'hotfix'

version-14
Nabin Hait 7 years ago
parent
commit
3a65e4f066
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      frappe/__init__.py
  2. +3
    -3
      frappe/core/doctype/domain/domain.py

+ 1
- 1
frappe/__init__.py View File

@@ -14,7 +14,7 @@ import os, sys, importlib, inspect, json
from .exceptions import *
from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template

__version__ = '9.2.12'
__version__ = '9.2.13'
__title__ = "Frappe Framework"

local = Local()


+ 3
- 3
frappe/core/doctype/domain/domain.py View File

@@ -49,10 +49,10 @@ class Domain(Document):
custom_fields = [custom_fields]

for custom_field_detail in custom_fields:
custom_field = frappe.get_doc('Custom Field',
custom_field_name = frappe.db.get_value('Custom Field',
dict(dt=doctype, fieldname=custom_field_detail.get('fieldname')))
custom_field.delete()
if custom_field_name:
frappe.delete_doc('Custom Field', custom_field_name)

def setup_roles(self):
'''Enable roles that are restricted to this domain'''


Loading…
Cancel
Save