Merge branch '6.4' of ssh://gitea.onecluster.org:6666/OneTeam/trytondo-sale_printer into 6.4

This commit is contained in:
2023-07-30 14:06:40 -05:00
2 changed files with 21 additions and 19 deletions

View File

@@ -9,7 +9,11 @@ class Device(Model):
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 Api(Device, ModelSQL, ModelView):
'Api printer'
__name__ = 'sale.printer_api'
class Printer(Device, ModelSQL, ModelView):
'Printer'
__name__ = 'sale.printer'
@@ -20,7 +24,4 @@ class Printer(Device, ModelSQL, ModelView):
shop = fields.Many2One('sale.shop', "Shop")
api = fields.Many2One('sale.printer_api', "API")
class Api(Device, ModelSQL, ModelView):
'Api printer'
__name__ = 'sale.printer_api'