# Copyright 2011-2017 Akretion (http://www.akretion.com) # Copyright 2009-2018 Noviat (http://www.noviat.com) # @author Alexis de Lattre # @author Luc de Meyer from odoo import fields, models class IntrastatUnit(models.Model): _name = "intrastat.unit" _description = "Intrastat Supplementary Units" name = fields.Char(string="Name", required=True) description = fields.Char(string="Description", required=True) uom_id = fields.Many2one( comodel_name="uom.uom", string="Regular UoM", help="Select the regular Unit of Measure of Odoo that corresponds " "to this Intrastat Supplementary Unit.", ) active = fields.Boolean(default=True)