frappe/frappe#478 chain insert
This commit is contained in:
parent
6759ac99eb
commit
ec7e38b1e4
1 changed files with 4 additions and 0 deletions
|
|
@ -132,6 +132,8 @@ class Document(BaseDocument):
|
|||
d.db_insert()
|
||||
self.run_method("after_insert")
|
||||
self.run_post_save_methods()
|
||||
|
||||
return self
|
||||
|
||||
def save(self, ignore_permissions=None):
|
||||
if ignore_permissions!=None:
|
||||
|
|
@ -178,6 +180,8 @@ class Document(BaseDocument):
|
|||
|
||||
self.run_post_save_methods()
|
||||
|
||||
return self
|
||||
|
||||
def update_single(self, d):
|
||||
frappe.db.sql("""delete from tabSingles where doctype=%s""", self.doctype)
|
||||
for field, value in d.iteritems():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue