Skip to Content
Menu
This question has been flagged
1 Reply
3627 Views

class Website(models.Model):

 _inherit = ['website']
def child_menus(self, active_path): 

website_menu = self.env['website.menu']

 existing_menu = website_menu.sudo().search([('url', '=', active_path)], limit=1)

 main_menu = self.env['ir.model.data'].sudo().get_object_reference('website', 'main_menu') _logger.info('------------------------') _logger.info(active_path) _logger.info(existing_menu) _logger.info(main_menu)

Avatar
Discard
Best Answer

Hi

Try the below solution to inherit the mail.thread in the existing model of ODOO.

class Website(models.Model):

  _name = 'website'

 _inherit = ['website', 'mail.thread', 'mail.activity.mixin']

the above solution will work.

Thanks & Regards,

Sunny Sheth


Avatar
Discard
Related Posts Replies Views Activity
4
May 24
10073
1
Apr 24
1563
4
Mar 24
1664
0
Nov 23
525
1
Oct 23
3666