mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
22 lines
745 B
Python
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)
|