Sfoglia il codice sorgente

Merge branch 'develop'

version-14
Rushabh Mehta 9 anni fa
parent
commit
4a27a330dc
2 ha cambiato i file con 6 aggiunte e 5 eliminazioni
  1. +1
    -1
      frappe/__init__.py
  2. +5
    -4
      frappe/custom/doctype/custom_field/custom_field.py

+ 1
- 1
frappe/__init__.py Vedi File

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

__version__ = "7.0.5"
__version__ = "7.0.6"

local = Local()



+ 5
- 4
frappe/custom/doctype/custom_field/custom_field.py Vedi File

@@ -46,10 +46,11 @@ class CustomField(Document):
validate_fields_for_doctype(self.dt)

# update the schema
if (self.fieldname not in frappe.db.get_table_columns(self.dt)
or getattr(self, "_old_fieldtype", None) != self.fieldtype):
from frappe.model.db_schema import updatedb
updatedb(self.dt)
if not frappe.db.get_value('DocType', self.dt, 'issingle'):
if (self.fieldname not in frappe.db.get_table_columns(self.dt)
or getattr(self, "_old_fieldtype", None) != self.fieldtype):
from frappe.model.db_schema import updatedb
updatedb(self.dt)

def on_trash(self):
# delete property setter entries


Caricamento…
Annulla
Salva