mirror of
https://github.com/bringout/oca-ocb-technical.git
synced 2026-04-18 01:32:08 +02:00
16 lines
409 B
Python
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,
|
|
)
|