mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
model_wrapper is now bean, refactoring defaults
This commit is contained in:
@@ -14,7 +14,7 @@ class DocType:
|
||||
else:
|
||||
self.doc.query_options = ["Sales", "Support", "General"]
|
||||
if self.doc.address:
|
||||
self.address = webnotes.model_wrapper("Address", self.doc.address).doc
|
||||
self.address = webnotes.bean("Address", self.doc.address).doc
|
||||
|
||||
def on_update(self):
|
||||
from website.utils import clear_cache
|
||||
|
||||
@@ -13,5 +13,5 @@ class DocType:
|
||||
clear_cache()
|
||||
|
||||
if self.doc.default_product_category:
|
||||
webnotes.model_wrapper("Item Group",
|
||||
webnotes.bean("Item Group",
|
||||
self.doc.default_product_category).save()
|
||||
Reference in New Issue
Block a user