mirror of
https://github.com/bringout/oca-ocb-technical.git
synced 2026-04-18 04:52:03 +02:00
Initial commit: Technical packages
This commit is contained in:
commit
3473fa71a0
873 changed files with 297766 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
# -*- 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,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue