コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5181 ビュー

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)

アバター
破棄
最善の回答

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


アバター
破棄
関連投稿 返信 ビュー 活動
4
5月 24
12707
1
4月 24
3319
4
3月 24
3427
0
11月 23
2040
1
10月 23
5377