| 1 |
# Part of Odoo. See LICENSE file for full copyright and licensing details. |
| 2 |
|
| 3 |
from odoo import fields, models |
| 4 |
|
| 5 |
|
| 6 |
class UomUom(models.Model): |
| 7 |
_inherit = 'uom.uom' |
| 8 |
|
| 9 |
l10n_hu_edi_code = fields.Selection( |
| 10 |
selection=[ |
| 11 |
('PIECE', 'Piece'), |
| 12 |
('KILOGRAM', 'Kilogram'), |
| 13 |
('TON', 'Ton'), |
| 14 |
('KWH', 'Kilowatt hour'), |
| 15 |
('DAY', 'Day'), |
| 16 |
('HOUR', 'Hour'), |
| 17 |
('MINUTE', 'Minute'), |
| 18 |
('MONTH', 'Month'), |
| 19 |
('LITER', 'Liter'), |
| 20 |
('KILOMETER', 'Kilometer'), |
| 21 |
('CUBIC_METER', 'Cubic meter'), |
| 22 |
('METER', 'Meter'), |
| 23 |
('LINEAR_METER', 'Linear meter'), |
| 24 |
('CARTON', 'Carton'), |
| 25 |
('PACK', 'Package'), |
| 26 |
], |
| 27 |
string='NAV UoM code', |
| 28 |
help='Choose the corresponding code, or leave blank if none correspond.', |
| 29 |
) |