Browse Source

Merge branch 'hotfix'

version-14
Nabin Hait 8 years ago
parent
commit
9b7a7e4d6d
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      frappe/__init__.py
  2. +2
    -0
      frappe/model/document.py

+ 1
- 1
frappe/__init__.py View File

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

__version__ = "7.0.42"
__version__ = "7.0.43"

local = Local()



+ 2
- 0
frappe/model/document.py View File

@@ -999,6 +999,8 @@ def execute_action(doctype, name, action, **kwargs):
try:
getattr(doc, action)(**kwargs)
except Exception:
frappe.db.rollback()
# add a comment (?)
if frappe.local.message_log:
msg = json.loads(frappe.local.message_log[-1]).get('message')


Loading…
Cancel
Save