# -*- coding: utf-8 -*- # Copyright 2021 Joan MarĂ­n # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import fields, models class UomCode(models.Model): _name = 'uom.code' _description = 'Unit of Measure Codes' name = fields.Char(string='Name') code = fields.Char(string='Code')