mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-20 05:12:04 +02:00
14 lines
419 B
Python
14 lines
419 B
Python
def upgrade(file_manager):
|
|
files = [
|
|
f for f in file_manager
|
|
if 'controllers' in f.path.parts
|
|
if f.path.suffix == '.py'
|
|
]
|
|
|
|
for fileno, file in enumerate(files):
|
|
file.content = file.content.replace(
|
|
'type="json",', 'type="jsonrpc",'
|
|
).replace(
|
|
"type='json',", "type='jsonrpc',"
|
|
)
|
|
file_manager.print_progress(fileno, len(files))
|