|
@ -27,7 +27,7 @@ from odoo import api, SUPERUSER_ID |
|
|
|
|
|
|
|
|
def _uninstall_force_storage(cr, registry): |
|
|
def _uninstall_force_storage(cr, registry): |
|
|
env = api.Environment(cr, SUPERUSER_ID, {}) |
|
|
env = api.Environment(cr, SUPERUSER_ID, {}) |
|
|
config = env['ir.config_parameter'] |
|
|
|
|
|
config.sudo().set_param('ir_attachment.location', 'file') |
|
|
|
|
|
|
|
|
config = env['ir.config_parameter'].sudo() |
|
|
|
|
|
config.set_param('ir_attachment.location', 'file') |
|
|
attachment = env['ir.attachment'] |
|
|
attachment = env['ir.attachment'] |
|
|
attachment.sudo().force_storage() |
|
|
attachment.sudo().force_storage() |