oca-ocb-technical/odoo-bringout-oca-ocb-barcodes/barcodes/models/res_company.py
Ernad Husremovic 2696f14ed7 19.0 vanilla
2026-03-09 09:32:34 +01:00

16 lines
409 B
Python

# -*- coding: utf-8 -*-
from odoo import models, fields
class ResCompany(models.Model):
_inherit = 'res.company'
def _get_default_nomenclature(self):
return self.env.ref('barcodes.default_barcode_nomenclature', raise_if_not_found=False)
nomenclature_id = fields.Many2one(
'barcode.nomenclature',
string="Nomenclature",
default=_get_default_nomenclature,
)