There are two websites in my odoo. One is localhost and another is 0.0.0.0
I have written following controller to get data from backend -
class website(http.Controller):
@http.route(['/action_get_event_menu_content'], type='json', auth="public")
def get_event_content(self):
website = request.env['website']
website_ids = website.sudo().search([])
#TODO: FILTER CURRENT WEBSITE
value = website_ids.event_content
return value
Here website_id returns two ids (1,2)
How do I get current website_id in the search to filter the website and get the value?