mirror of
https://github.com/bringout/oca-ocb-technical.git
synced 2026-04-19 08:32:06 +02:00
Initial commit: Technical packages
This commit is contained in:
commit
3473fa71a0
873 changed files with 297766 additions and 0 deletions
15
odoo-bringout-oca-ocb-barcodes/barcodes/models/ir_http.py
Normal file
15
odoo-bringout-oca-ocb-barcodes/barcodes/models/ir_http.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# 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):
|
||||
res = super(IrHttp, self).session_info()
|
||||
if self.env.user._is_internal():
|
||||
res['max_time_between_keys_in_ms'] = int(
|
||||
self.env['ir.config_parameter'].sudo().get_param('barcode.max_time_between_keys_in_ms', default='100'))
|
||||
return res
|
||||
Loading…
Add table
Add a link
Reference in a new issue