Files
intrastat-extrastat/intrastat_product/models/intrastat_unit.py
2021-02-08 15:15:48 +00:00

22 lines
745 B
Python

# Copyright 2011-2017 Akretion (http://www.akretion.com)
# Copyright 2009-2018 Noviat (http://www.noviat.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# @author Luc de Meyer <info@noviat.com>
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)