mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
moved directory structure
This commit is contained in:
12
patches/july_2012/address_contact_perms.py
Normal file
12
patches/july_2012/address_contact_perms.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from __future__ import unicode_literals
|
||||
def execute():
|
||||
import webnotes
|
||||
webnotes.conn.sql("""\
|
||||
delete from `tabDocPerm`
|
||||
where parent in ('Address', 'Contact')""")
|
||||
webnotes.conn.commit()
|
||||
|
||||
import webnotes.model.sync
|
||||
webnotes.model.sync.sync('utilities', 'address')
|
||||
webnotes.model.sync.sync('utilities', 'contact')
|
||||
webnotes.conn.begin()
|
||||
Reference in New Issue
Block a user