Odoo18-Base/addons/l10n_eg_edi_eta/models/uom_uom.py
2025-01-06 10:57:38 +07:00

20 lines
605 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, fields
class UomCode(models.Model):
_name = 'l10n_eg_edi.uom.code'
_description = 'ETA code for the unit of measures'
name = fields.Char(required=True, translate=True)
code = fields.Char(required=True)
class UomUom(models.Model):
_inherit = 'uom.uom'
l10n_eg_unit_code_id = fields.Many2one('l10n_eg_edi.uom.code', string='ETA Unit Code',
help='This is the type of unit according to egyptian tax authority')