Odoo18-Base/addons/spreadsheet/models/ir_http.py

17 lines
422 B
Python
Raw Permalink Normal View History

2025-01-06 10:57:38 +07:00
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class IrHttp(models.AbstractModel):
_inherit = 'ir.http'
def session_info(self):
"""
Override this method to enable the 'Insert in spreadsheet' button in the
web client.
"""
res = super().session_info()
res["can_insert_in_spreadsheet"] = False
return res