Changeset 35 for addons/isp/isp.py
- Timestamp:
- Sep 9, 2011, 3:54:46 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
addons/isp/isp.py
r16 r35 26 26 _name = "network.address" 27 27 _columns = { 28 'name': fields.char('IPv4', size=15, required=True, help='IPv4 address in form nnn.nnn.nnn.nnn'), 28 'name': fields.char('Name', size=64, required=True, help='Text alias for address'), 29 'ipv4': fields.char('IPv4', size=15, help='IPv4 address in form nnn.nnn.nnn.nnn'), 29 30 'ipv6': fields.char('IPv6', size=39, help='IPv6 address in form hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh'), 30 31 } … … 60 61 _name = "network.interface.type" 61 62 _columns = { 62 'name': fields.char('Name', size=32, required=True ),63 'name': fields.char('Name', size=32, required=True, translate=True), 63 64 'link_speed': fields.integer('Link speed'), 64 65 'full_duplex': fields.boolean('Full duplex'), … … 70 71 _name = "network.interface" 71 72 _columns = { 72 'name': fields.char('Name', size=32 ),73 'name': fields.char('Name', size=32, required=True), 73 74 'type_id': fields.many2one('network.interface.type', 'Type', required=True), 74 75 'mac': fields.char('MAC', size=17, help='Physical address in form XX:XX:XX:XX:XX:XX'), … … 93 94 _name = "network.subnet" 94 95 _columns = { 95 'name': fields.char('Name', size=32, required=True ),96 'name': fields.char('Name', size=32, required=True, translate=True), 96 97 'address': fields.char('Address', size=15, required=True), 97 98 'prefix': fields.integer('Prefix', required=True), … … 109 110 _name = "network.billing.period" 110 111 _columns = { 111 'name': fields.char('Name', size=32, required=True ),112 'name': fields.char('Name', size=32, required=True, translate=True), 112 113 } 113 114 network_billing_period() … … 116 117 _name = "network.service.type" 117 118 _columns = { 118 'name': fields.char('Name', size=32, required=True ),119 'name': fields.char('Name', size=32, required=True, translate=True), 119 120 } 120 121 network_service_type() … … 123 124 _name = "network.service" 124 125 _columns = { 125 'name': fields.char('Name', size=32, required=True ),126 'name': fields.char('Name', size=32, required=True, translate=True), 126 127 'type_id': fields.many2one('network.service.type', 'Type'), 127 128 'price': fields.integer('Price', help='Price per period'),
Note:
See TracChangeset
for help on using the changeset viewer.