oca-ocb-technical/odoo-bringout-oca-ocb-barcodes_gs1_nomenclature/barcodes_gs1_nomenclature/models/ir_http.py
2025-08-29 15:20:51 +02:00

16 lines
493 B
Python

# -*- 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'
# TODO: remove in master.
def session_info(self):
res = super().session_info()
nomenclature = self.env.company.sudo().nomenclature_id
if nomenclature.is_gs1_nomenclature:
res['gs1_group_separator_encodings'] = nomenclature.gs1_separator_fnc1
return res