Changeset 35 for addons/isp/isp.py


Ignore:
Timestamp:
Sep 9, 2011, 3:54:46 PM (13 years ago)
Author:
chronos
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • addons/isp/isp.py

    r16 r35  
    2626    _name = "network.address"
    2727    _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'),
    2930        'ipv6': fields.char('IPv6', size=39, help='IPv6 address in form hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh'),
    3031    }
     
    6061    _name = "network.interface.type"
    6162    _columns = {
    62         'name': fields.char('Name', size=32, required=True),
     63        'name': fields.char('Name', size=32, required=True, translate=True),
    6364        'link_speed': fields.integer('Link speed'),
    6465        'full_duplex': fields.boolean('Full duplex'),
     
    7071    _name = "network.interface"
    7172    _columns = {
    72         'name': fields.char('Name', size=32),
     73        'name': fields.char('Name', size=32, required=True),
    7374        'type_id': fields.many2one('network.interface.type', 'Type', required=True),
    7475        'mac': fields.char('MAC', size=17, help='Physical address in form XX:XX:XX:XX:XX:XX'),
     
    9394    _name = "network.subnet"
    9495    _columns = {
    95         'name': fields.char('Name', size=32, required=True),
     96        'name': fields.char('Name', size=32, required=True, translate=True),
    9697        'address': fields.char('Address', size=15, required=True),
    9798        'prefix': fields.integer('Prefix', required=True),
     
    109110    _name = "network.billing.period"
    110111    _columns = {
    111         'name': fields.char('Name', size=32, required=True),
     112        'name': fields.char('Name', size=32, required=True, translate=True),
    112113    }
    113114network_billing_period()
     
    116117    _name = "network.service.type"
    117118    _columns = {
    118         'name': fields.char('Name', size=32, required=True),
     119        'name': fields.char('Name', size=32, required=True, translate=True),
    119120    }
    120121network_service_type()
     
    123124    _name = "network.service"
    124125    _columns = {
    125         'name': fields.char('Name', size=32, required=True),
     126        'name': fields.char('Name', size=32, required=True, translate=True),
    126127        'type_id': fields.many2one('network.service.type', 'Type'),
    127128        'price': fields.integer('Price', help='Price per period'),
Note: See TracChangeset for help on using the changeset viewer.