firts commit

This commit is contained in:
2023-07-22 10:49:32 -05:00
commit e26ee969cd
31 changed files with 1636 additions and 0 deletions

23
printer.py Normal file
View File

@@ -0,0 +1,23 @@
from trytond.model import Model, ModelSQL, ModelView, fields
class Device(Model):
'Devices'
name = fields.Char("Name")
ip_address = fields.Char('IP Address or Network', help='IPv4 or IPv6 IP'
'address or network. Valid values include: 192.168.0.26 or '
'192.168.0.0/24')
class Printer(Device, ModelSQL, ModelView):
'Printer'
__name__ = 'sale.printer'
shop = fields.Many2One('sale.shop', "Shop")
api = fields.Many2One('sale.printer_api', "API")
class Api(Device, ModelSQL, ModelView):
'Api printer'
__name__ = 'sale.printer_api'