Changeset 62


Ignore:
Timestamp:
Mar 23, 2012, 7:38:34 AM (13 years ago)
Author:
chronos
Message:
  • Přidáno: Evidence využitých frekvencí v modulu ISP.
Location:
addons/isp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • addons/isp/demo/isp_demo.xml

    r43 r62  
    4848            <field name="name">Metalic ethernet</field>
    4949            <field name="full_duplex" eval="True"/>
     50            <field name="wireless" eval="False"/>
    5051        </record>
    5152        <record model="network.interface.type" id="interface_type_ethernet_wifi_b">
    5253            <field name="name">Wi-Fi 802.11b 11Mbit</field>
    5354            <field name="full_duplex" eval="False"/>
     55            <field name="wireless" eval="True"/>
    5456        </record>
    5557        <record model="network.interface.type" id="interface_type_ethernet_wifi_g">
    5658            <field name="name">Wi-Fi 802.11g 54Mbit</field>
    5759            <field name="full_duplex" eval="False"/>
     60            <field name="wireless" eval="True"/>
    5861        </record>
    5962        <record model="network.interface.type" id="interface_type_ethernet_wifi_a">
    6063            <field name="name">Wi-Fi 802.11a 54Mbit</field>
    6164            <field name="full_duplex" eval="False"/>
     65            <field name="wireless" eval="True"/>
    6266        </record>
    6367        <record model="network.interface.type" id="interface_type_ethernet_wifi_n_150">
    6468            <field name="name">Wi-Fi 802.11n 150Mbit</field>
    6569            <field name="full_duplex" eval="False"/>
     70            <field name="wireless" eval="True"/>
    6671        </record>
    6772        <record model="network.interface.type" id="interface_type_ethernet_wifi_n_300">
    6873            <field name="name">Wi-Fi 802.11n 300Mbit</field>
    6974            <field name="full_duplex" eval="False"/>
     75            <field name="wireless" eval="True"/>
    7076        </record>
    7177        <record model="network.interface.type" id="interface_type_optics">
    7278            <field name="name">Optic ethernet</field>
    7379            <field name="full_duplex" eval="True"/>
     80            <field name="wireless" eval="True"/>
    7481        </record>
    7582        <record model="network.interface.type" id="interface_type_wireless_10G">
    7683            <field name="name">Wireless 10 GHz</field>
    7784            <field name="full_duplex" eval="True"/>
     85            <field name="wireless" eval="True"/>
    7886        </record>
    7987        <record model="network.interface.type" id="interface_type_wireless_24G">
    8088            <field name="name">Wireless 24 GHz</field>
    8189            <field name="full_duplex" eval="True"/>
     90            <field name="wireless" eval="True"/>
    8291        </record>
    8392        <record model="network.interface.type" id="interface_type_wireless_80G">
    8493            <field name="name">Wireless 80 GHz</field>
    8594            <field name="full_duplex" eval="True"/>
     95            <field name="wireless" eval="True"/>
    8696        </record>
    8797        <record model="network.interface.type" id="interface_type_cdma">
    8898            <field name="name">CDMA 450 MHz</field>
    8999            <field name="full_duplex" eval="False"/>
     100            <field name="wireless" eval="True"/>
    90101        </record>
    91102        <record model="network.interface.type" id="interface_type_homeplug">
    92103            <field name="name">Homeplug over 230V</field>
    93104            <field name="full_duplex" eval="False"/>
     105            <field name="wireless" eval="False"/>
    94106        </record>
    95107        <record model="network.interface.type" id="interface_type_adsl">
    96108            <field name="name">ADSL</field>
    97109            <field name="full_duplex" eval="False"/>
     110            <field name="wireless" eval="False"/>
    98111        </record>
    99112        <record model="network.interface.type" id="interface_type_vdsl">
    100113            <field name="name">VDSL</field>
    101114            <field name="full_duplex" eval="False"/>
     115            <field name="wireless" eval="False"/>
    102116        </record>
    103117        <record model="network.interface.type" id="interface_type_3g">
    104118            <field name="name">3G (UTMS, HSDPA)</field>
    105119            <field name="full_duplex" eval="False"/>
     120            <field name="wireless" eval="True"/>
    106121        </record>
    107122        <record model="network.interface.type" id="interface_type_wimax">
    108123            <field name="name">WiMax</field>
    109124            <field name="full_duplex" eval="False"/>
     125            <field name="wireless" eval="True"/>
    110126        </record>
    111127        <record model="network.interface.type" id="interface_type_lte">
    112128            <field name="name">LTE</field>
    113129            <field name="full_duplex" eval="False"/>
     130            <field name="wireless" eval="True"/>
    114131        </record>
    115132       
  • addons/isp/isp.py

    r43 r62  
    7474        'full_duplex': fields.boolean('Full duplex'),
    7575        'color': fields.integer('Color'),
     76        'wireless': fields.boolean('Wireless'),
    7677    }
    7778network_interface_type()
     
    186187    }
    187188network_service()
     189
     190class network_frequency(osv.osv):
     191    _name = "network.frequency"
     192    _columns = {
     193        'name': fields.char('Name', size=32, required=True, translate=True),
     194        'ssid': fields.char('SSID', size=32),
     195        'frequency': fields.integer('Frequency', help='Frequency in MHz'),
     196        'channel_width': fields.integer('Channel width', help='Channel width in MHz'),
     197        'channel_width_upper': fields.integer('Upper channel width', help='Upper side channel width in MHz'),
     198        'channel_width_lower': fields.integer('Lower channel width', help='Lower side channel width in MHz'),
     199        'device_id': fields.many2one('network.device', 'Device'),
     200        'link_type_id': fields.many2one('network.interface.type', 'Link type'),
     201    }
     202network_frequency()
  • addons/isp/view/isp_view.xml

    r43 r62  
    162162          <field name="full_duplex" select="1" />
    163163          <field name="color" select="1" />
     164          <field name="wireless" select="1" />
    164165        </tree>
    165166      </field>
     
    176177          <field name="full_duplex" select="1" />
    177178          <field name="color" select="1" />
     179          <field name="wireless" select="1" />
    178180        </form>
    179181      </field>
     
    486488      </field>
    487489    </record> 
     490
     491    <record model="ir.actions.act_window" id="action_isp_frequency_form">
     492      <field name="res_model">network.frequency</field>
     493      <field name="domain">[]</field>
     494    </record>
     495
     496    <menuitem name="Frequency usage"
     497      parent="base.menu_isp_network" id="menu_isp_frequency" sequence="1"
     498      action="action_isp_frequency_form"/>
     499
     500    <record model="ir.ui.view" id="view_network_frequency_tree">
     501      <field name="name">network.frequency</field>
     502      <field name="model">network.frequency</field>
     503      <field name="type">tree</field>
     504      <field name="priority" eval="2"/>
     505      <field name="arch" type="xml">
     506        <tree string="Frequency usage">
     507          <field name="name" select="1" />
     508          <field name="ssid" select="1" />
     509          <field name="frequency" select="1" />
     510          <field name="channel_width" select="1" />
     511          <field name="device_id" select="1" />
     512          <field name="link_type_id" select="1" />
     513        </tree>
     514      </field>
     515    </record>
     516    <record model="ir.ui.view" id="view_network_frequency_form">
     517      <field name="name">network.frequency</field>
     518      <field name="model">network.frequency</field>
     519      <field name="priority" eval="2"/>
     520      <field name="type">form</field>
     521      <field name="arch" type="xml">
     522        <form string="Frequency usage">
     523          <field name="name" select="1" />
     524          <field name="ssid" select="1" />
     525          <field name="frequency" select="1" />
     526          <field name="channel_width" select="1" />
     527          <field name="channel_width_upper" select="1" />
     528          <field name="channel_width_lower" select="1" />
     529          <field name="device_id" select="1" />
     530          <field name="link_type_id" select="1" />
     531        </form>
     532      </field>
     533    </record> 
    488534  </data>
    489535</openerp>
Note: See TracChangeset for help on using the changeset viewer.