Compare commits
2 Commits
74368ca1b4
...
7.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 548b38e2a4 | |||
| 0f2cc4edc5 |
11
printer.py
11
printer.py
@@ -6,13 +6,7 @@ class Device(Model):
|
||||
'Devices'
|
||||
__name__ = 'sale_device'
|
||||
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 Api(Device, ModelSQL, ModelView):
|
||||
'Api printer'
|
||||
__name__ = 'sale.printer_api'
|
||||
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'
|
||||
@@ -24,4 +18,7 @@ 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'
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[tryton]
|
||||
version=6.4.0
|
||||
version=6.8.0
|
||||
depends:
|
||||
ir
|
||||
sale
|
||||
|
||||
Reference in New Issue
Block a user