mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 11:39:18 +00:00
sync patches
This commit is contained in:
@@ -10,7 +10,7 @@ def execute():
|
|||||||
"""
|
"""
|
||||||
change_property_setter_fieldnames()
|
change_property_setter_fieldnames()
|
||||||
handle_custom_fields()
|
handle_custom_fields()
|
||||||
create_file_list()
|
#create_file_list()
|
||||||
|
|
||||||
# do at last - needs commit due to DDL statements
|
# do at last - needs commit due to DDL statements
|
||||||
change_to_decimal()
|
change_to_decimal()
|
||||||
|
|||||||
@@ -207,5 +207,25 @@ patch_list = [
|
|||||||
'patch_file': 'update_se_fld_options',
|
'patch_file': 'update_se_fld_options',
|
||||||
'description': 'Purpose SE: Others to Other'
|
'description': 'Purpose SE: Others to Other'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'patch_module': 'patches.mar_2012',
|
||||||
|
'patch_file': 'pos_invoice_fix',
|
||||||
|
'description': 'Reload POS Invoice'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'patch_module': 'patches.mar_2012',
|
||||||
|
'patch_file': 'cleanup_control_panel',
|
||||||
|
'description': 'Remove email related fields from Control Panel'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'patch_module': 'patches.mar_2012',
|
||||||
|
'patch_file': 'doctype_get_refactor',
|
||||||
|
'description': 'Patch related to doctype get refactoring'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'patch_module': 'patches.mar_2012',
|
||||||
|
'patch_file': 'clean_property_setter',
|
||||||
|
'description': 'Cleanup Property Setter Entries'
|
||||||
|
},
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|||||||
15
wnf.py
15
wnf.py
@@ -116,9 +116,14 @@ def setup_options():
|
|||||||
metavar = "search replace_by extension",
|
metavar = "search replace_by extension",
|
||||||
help="file search-replace")
|
help="file search-replace")
|
||||||
|
|
||||||
parser.add_option("--cci", nargs=1, metavar="CacheItem Key",
|
parser.add_option("--cci", nargs=1, metavar="CacheItem Key or all",
|
||||||
help="Clear Cache Item")
|
help="Clear Cache Item")
|
||||||
|
|
||||||
|
parser.add_option("--sync_all", help="Synchronize all DocTypes using txt files",
|
||||||
|
nargs=0)
|
||||||
|
|
||||||
|
parser.add_option("--sync", help="Synchronize given DocType using txt file",
|
||||||
|
nargs=2, metavar="module doctype (use their folder names)")
|
||||||
|
|
||||||
return parser.parse_args()
|
return parser.parse_args()
|
||||||
|
|
||||||
@@ -225,6 +230,14 @@ def run():
|
|||||||
else:
|
else:
|
||||||
from webnotes.utils.cache import CacheItem
|
from webnotes.utils.cache import CacheItem
|
||||||
CacheItem(options.cci).clear()
|
CacheItem(options.cci).clear()
|
||||||
|
|
||||||
|
elif options.sync_all is not None:
|
||||||
|
import webnotes.model.sync
|
||||||
|
webnotes.model.sync.sync_all()
|
||||||
|
|
||||||
|
elif options.sync is not None:
|
||||||
|
import webnotes.model.sync
|
||||||
|
webnotes.model.sync.sync(options.sync[0], options.sync[1])
|
||||||
|
|
||||||
# print messages
|
# print messages
|
||||||
if webnotes.message_log:
|
if webnotes.message_log:
|
||||||
|
|||||||
Reference in New Issue
Block a user