- Timestamp:
- Mar 23, 2012, 7:38:34 AM (13 years ago)
- Location:
- addons/isp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
addons/isp/demo/isp_demo.xml
r43 r62 48 48 <field name="name">Metalic ethernet</field> 49 49 <field name="full_duplex" eval="True"/> 50 <field name="wireless" eval="False"/> 50 51 </record> 51 52 <record model="network.interface.type" id="interface_type_ethernet_wifi_b"> 52 53 <field name="name">Wi-Fi 802.11b 11Mbit</field> 53 54 <field name="full_duplex" eval="False"/> 55 <field name="wireless" eval="True"/> 54 56 </record> 55 57 <record model="network.interface.type" id="interface_type_ethernet_wifi_g"> 56 58 <field name="name">Wi-Fi 802.11g 54Mbit</field> 57 59 <field name="full_duplex" eval="False"/> 60 <field name="wireless" eval="True"/> 58 61 </record> 59 62 <record model="network.interface.type" id="interface_type_ethernet_wifi_a"> 60 63 <field name="name">Wi-Fi 802.11a 54Mbit</field> 61 64 <field name="full_duplex" eval="False"/> 65 <field name="wireless" eval="True"/> 62 66 </record> 63 67 <record model="network.interface.type" id="interface_type_ethernet_wifi_n_150"> 64 68 <field name="name">Wi-Fi 802.11n 150Mbit</field> 65 69 <field name="full_duplex" eval="False"/> 70 <field name="wireless" eval="True"/> 66 71 </record> 67 72 <record model="network.interface.type" id="interface_type_ethernet_wifi_n_300"> 68 73 <field name="name">Wi-Fi 802.11n 300Mbit</field> 69 74 <field name="full_duplex" eval="False"/> 75 <field name="wireless" eval="True"/> 70 76 </record> 71 77 <record model="network.interface.type" id="interface_type_optics"> 72 78 <field name="name">Optic ethernet</field> 73 79 <field name="full_duplex" eval="True"/> 80 <field name="wireless" eval="True"/> 74 81 </record> 75 82 <record model="network.interface.type" id="interface_type_wireless_10G"> 76 83 <field name="name">Wireless 10 GHz</field> 77 84 <field name="full_duplex" eval="True"/> 85 <field name="wireless" eval="True"/> 78 86 </record> 79 87 <record model="network.interface.type" id="interface_type_wireless_24G"> 80 88 <field name="name">Wireless 24 GHz</field> 81 89 <field name="full_duplex" eval="True"/> 90 <field name="wireless" eval="True"/> 82 91 </record> 83 92 <record model="network.interface.type" id="interface_type_wireless_80G"> 84 93 <field name="name">Wireless 80 GHz</field> 85 94 <field name="full_duplex" eval="True"/> 95 <field name="wireless" eval="True"/> 86 96 </record> 87 97 <record model="network.interface.type" id="interface_type_cdma"> 88 98 <field name="name">CDMA 450 MHz</field> 89 99 <field name="full_duplex" eval="False"/> 100 <field name="wireless" eval="True"/> 90 101 </record> 91 102 <record model="network.interface.type" id="interface_type_homeplug"> 92 103 <field name="name">Homeplug over 230V</field> 93 104 <field name="full_duplex" eval="False"/> 105 <field name="wireless" eval="False"/> 94 106 </record> 95 107 <record model="network.interface.type" id="interface_type_adsl"> 96 108 <field name="name">ADSL</field> 97 109 <field name="full_duplex" eval="False"/> 110 <field name="wireless" eval="False"/> 98 111 </record> 99 112 <record model="network.interface.type" id="interface_type_vdsl"> 100 113 <field name="name">VDSL</field> 101 114 <field name="full_duplex" eval="False"/> 115 <field name="wireless" eval="False"/> 102 116 </record> 103 117 <record model="network.interface.type" id="interface_type_3g"> 104 118 <field name="name">3G (UTMS, HSDPA)</field> 105 119 <field name="full_duplex" eval="False"/> 120 <field name="wireless" eval="True"/> 106 121 </record> 107 122 <record model="network.interface.type" id="interface_type_wimax"> 108 123 <field name="name">WiMax</field> 109 124 <field name="full_duplex" eval="False"/> 125 <field name="wireless" eval="True"/> 110 126 </record> 111 127 <record model="network.interface.type" id="interface_type_lte"> 112 128 <field name="name">LTE</field> 113 129 <field name="full_duplex" eval="False"/> 130 <field name="wireless" eval="True"/> 114 131 </record> 115 132 -
addons/isp/isp.py
r43 r62 74 74 'full_duplex': fields.boolean('Full duplex'), 75 75 'color': fields.integer('Color'), 76 'wireless': fields.boolean('Wireless'), 76 77 } 77 78 network_interface_type() … … 186 187 } 187 188 network_service() 189 190 class 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 } 202 network_frequency() -
addons/isp/view/isp_view.xml
r43 r62 162 162 <field name="full_duplex" select="1" /> 163 163 <field name="color" select="1" /> 164 <field name="wireless" select="1" /> 164 165 </tree> 165 166 </field> … … 176 177 <field name="full_duplex" select="1" /> 177 178 <field name="color" select="1" /> 179 <field name="wireless" select="1" /> 178 180 </form> 179 181 </field> … … 486 488 </field> 487 489 </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> 488 534 </data> 489 535 </openerp>
Note:
See TracChangeset
for help on using the changeset viewer.