open_workshop/models/machine.py
2025-01-05 21:49:31 +01:00

13 lines
442 B
Python

from odoo import models, fields, api
class OpenWorkshopMachine(models.Model):
_name = 'open.workshop.machine'
_description = 'Open Workshop Machine'
name = fields.Char(string='Name', required=True)
code = fields.Char(string='Maschinen-Code', help='Interner Code oder Inventar-Nr.')
location = fields.Char(string='Standort')
description = fields.Text(string='Beschreibung')
active = fields.Boolean(default=True)