Преглед на файлове

Merge branch 'master' into develop

version-14
Nabin Hait преди 7 години
родител
ревизия
8e9304041d
променени са 2 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. +1
    -1
      frappe/__init__.py
  2. +3
    -3
      frappe/core/doctype/domain/domain.py

+ 1
- 1
frappe/__init__.py Целия файл

@@ -14,7 +14,7 @@ import os, sys, importlib, inspect, json
from .exceptions import * from .exceptions import *
from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template 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" __title__ = "Frappe Framework"


local = Local() local = Local()


+ 3
- 3
frappe/core/doctype/domain/domain.py Целия файл

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


for custom_field_detail in 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'))) 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): def setup_roles(self):
'''Enable roles that are restricted to this domain''' '''Enable roles that are restricted to this domain'''


Зареждане…
Отказ
Запис