mirror of
https://github.com/bringout/oca-ocb-web.git
synced 2026-04-23 12:52:02 +02:00
Initial commit: Web packages
This commit is contained in:
commit
cd458d4b85
791 changed files with 410049 additions and 0 deletions
16
odoo-bringout-oca-ocb-web_tour/web_tour/models/ir_http.py
Normal file
16
odoo-bringout-oca-ocb-web_tour/web_tour/models/ir_http.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import models
|
||||
|
||||
|
||||
class Http(models.AbstractModel):
|
||||
_inherit = 'ir.http'
|
||||
|
||||
def session_info(self):
|
||||
result = super().session_info()
|
||||
if result['is_admin']:
|
||||
demo_modules_count = self.env['ir.module.module'].sudo().search_count([('demo', '=', True)])
|
||||
result['web_tours'] = self.env['web_tour.tour'].get_consumed_tours()
|
||||
result['tour_disable'] = demo_modules_count > 0
|
||||
return result
|
||||
Loading…
Add table
Add a link
Reference in a new issue