Changeset 41 for addons/isp/isp_view.xml


Ignore:
Timestamp:
Sep 13, 2011, 9:55:38 AM (13 years ago)
Author:
chronos
Message:
  • Upraveno: Rozšířena funkčnost modulu ISP o GPS body a spoje.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • addons/isp/isp_view.xml

    r30 r41  
    44   
    55    <menuitem name="ISP" id="menu_isp" sequence="1" />
     6    <menuitem name="Network" parent="menu_isp"
     7      id="base.menu_isp_network" sequence="1"/>
    68    <menuitem name="Configuration" parent="menu_isp"
    79      id="base.menu_isp_config" sequence="20"/>
    8     <menuitem name="Device type" parent="base.menu_isp_config"
    9       id="base.menu_isp_config_device_type" sequence="1" />
    10     <menuitem name="Interface type" parent="base.menu_isp_config"
    11       id="base.menu_isp_config_interface_type" sequence="2" />
     10    <menuitem name="Network" parent="base.menu_isp_config"
     11      id="base.menu_isp_config_network" sequence="1"/>
     12
    1213
    1314    <record model="ir.actions.act_window" id="action_isp_device_form">
     
    1718
    1819    <menuitem name="Device"
    19       parent="menu_isp" id="menu_isp_device" sequence="1"
     20      parent="base.menu_isp_network" id="menu_isp_device" sequence="1"
    2021      action="action_isp_device_form"/>
    2122
     
    2930          <field name="name" select="1"/>
    3031          <field name="partner_id" select="1" />
    31           <field name="location_partner_id" select="1" />
    3232          <field name="used" select="1" />
    3333          <field name="online" select="1" />
     
    4646          <field name="type_id" select="1" />
    4747          <field name="partner_id" select="1" />
    48           <field name="location_partner_id" select="1" />
    49           <field name="pos_latitude" select="1" />
    50           <field name="pos_longitude" select="1" />
     48          <field name="position" select="1" />
    5149          <field name="used" select="1" />
    5250          <field name="online" select="1" />
     
    5755      </field>
    5856    </record>
    59 
     57   
     58
     59    <record model="ir.actions.act_window" id="action_isp_device_type_form">
     60      <field name="res_model">network.device</field>
     61      <field name="domain">[]</field>
     62    </record>
     63
     64    <menuitem name="Device type"
     65      parent="base.menu_isp_config_network" id="menu_isp_device_type" sequence="1"
     66      action="action_isp_device_type_form"/>
     67
     68    <record model="ir.ui.view" id="view_network_device_type_tree">
     69      <field name="name">network.device.type</field>
     70      <field name="model">network.device.type</field>
     71      <field name="type">tree</field>
     72      <field name="priority" eval="2"/>
     73      <field name="arch" type="xml">
     74        <tree string="Device type">
     75          <field name="name" select="1"/>
     76          <field name="running_permanent" select="1" />
     77          <field name="icon_name" select="1" />
     78        </tree>
     79      </field>
     80    </record>
     81    <record model="ir.ui.view" id="view_network_device_type_form">
     82      <field name="name">network.device.type</field>
     83      <field name="model">network.device.type</field>
     84      <field name="priority" eval="2"/>
     85      <field name="type">form</field>
     86      <field name="arch" type="xml">
     87        <form string="Device type">
     88          <field name="name" select="1"/>
     89          <field name="running_permanent" select="1" />
     90          <field name="icon_name" select="1" />
     91        </form>
     92      </field>
     93    </record>
     94   
     95   
    6096    <record model="ir.actions.act_window" id="action_isp_interface_form">
    6197      <field name="res_model">network.interface</field>
     
    64100
    65101    <menuitem name="Interface"
    66       parent="menu_isp" id="menu_isp_interface" sequence="1"
     102      parent="base.menu_isp_network" id="menu_isp_interface" sequence="1"
    67103      action="action_isp_interface_form"/>
    68104
     
    99135          <field name="online" select="1" />
    100136          <field name="last_online" select="1" />
    101         </form>
    102       </field>
    103     </record>
    104 
    105 
     137          <field name="link_id" select="1" />
     138        </form>
     139      </field>
     140    </record>
     141
     142
     143    <record model="ir.actions.act_window" id="action_isp_interface_type_form">
     144      <field name="res_model">network.interface.type</field>
     145      <field name="domain">[]</field>
     146    </record>
     147
     148    <menuitem name="Interface type"
     149      parent="base.menu_isp_config_network" id="menu_isp_interface_type" sequence="1"
     150      action="action_isp_interface_type_form"/>
     151
     152    <record model="ir.ui.view" id="view_network_interface_type_tree">
     153      <field name="name">network.interface.type</field>
     154      <field name="model">network.interface.type</field>
     155      <field name="type">tree</field>
     156      <field name="priority" eval="2"/>
     157      <field name="arch" type="xml">
     158        <tree string="Interface type">
     159          <field name="name" select="1"/>
     160          <field name="link_speed" select="1" />
     161          <field name="full_duplex" select="1" />
     162          <field name="color" select="1" />
     163        </tree>
     164      </field>
     165    </record>
     166    <record model="ir.ui.view" id="view_network_interface_type_form">
     167      <field name="name">network.interface.type</field>
     168      <field name="model">network.interface.type</field>
     169      <field name="priority" eval="2"/>
     170      <field name="type">form</field>
     171      <field name="arch" type="xml">
     172        <form string="Interface type">
     173          <field name="name" select="1"/>
     174          <field name="link_speed" select="1" />
     175          <field name="full_duplex" select="1" />
     176          <field name="color" select="1" />
     177        </form>
     178      </field>
     179    </record>
     180   
     181   
    106182    <record model="ir.actions.act_window" id="action_isp_subnet_form">
    107183      <field name="res_model">network.subnet</field>
     
    110186
    111187    <menuitem name="Subnet"
    112       parent="menu_isp" id="menu_isp_subnet" sequence="1"
     188      parent="base.menu_isp_network" id="menu_isp_subnet" sequence="1"
    113189      action="action_isp_subnet_form"/>
    114190
     
    156232
    157233    <menuitem name="Address"
    158       parent="menu_isp" id="menu_isp_address" sequence="1"
     234      parent="base.menu_isp_network" id="menu_isp_address" sequence="1"
    159235      action="action_isp_address_form"/>
    160236
     
    191267
    192268    <menuitem name="Service"
    193       parent="menu_isp" id="menu_isp_service" sequence="1"
     269      parent="base.menu_isp_network" id="menu_isp_service" sequence="1"
    194270      action="action_isp_service_form"/>
    195271
     
    225301    </record>
    226302
     303
    227304    <record model="ir.actions.act_window" id="action_isp_service_type_form">
    228305      <field name="res_model">network.service.type</field>
     
    231308
    232309    <menuitem name="Service type"
    233       parent="menu_isp" id="menu_isp_service_type" sequence="1"
     310      parent="base.menu_isp_config_network" id="menu_isp_service_type" sequence="1"
    234311      action="action_isp_service_type_form"/>
    235312
     
    257334    </record>
    258335
     336
    259337    <record model="ir.actions.act_window" id="action_isp_billing_period_form">
    260338      <field name="res_model">network.billing.period</field>
     
    263341
    264342    <menuitem name="Billing period"
    265       parent="menu_isp" id="menu_isp_billing_period" sequence="1"
     343      parent="base.menu_isp_network" id="menu_isp_billing_period" sequence="1"
    266344      action="action_isp_billing_period_form"/>
    267345
     
    274352        <tree string="Billing period">
    275353          <field name="name" select="1" />
     354          <field name="months" select="1" />
    276355        </tree>
    277356      </field>
     
    285364        <form string="Billing period">
    286365          <field name="name" select="1" />
    287         </form>
    288       </field>
    289     </record>
     366          <field name="months" select="1" />
     367        </form>
     368      </field>
     369    </record>
     370
    290371
    291372    <record model="ir.actions.act_window" id="action_isp_domain_form">
     
    295376
    296377    <menuitem name="Domain"
    297       parent="menu_isp" id="menu_isp_domain" sequence="1"
     378      parent="base.menu_isp_network" id="menu_isp_domain" sequence="1"
    298379      action="action_isp_domain_form"/>
    299380
     
    324405      </field>
    325406    </record>
     407   
     408   
     409    <record model="ir.actions.act_window" id="action_isp_point_form">
     410      <field name="res_model">network.point</field>
     411      <field name="domain">[]</field>
     412    </record>
     413
     414    <menuitem name="Point"
     415      parent="base.menu_isp_network" id="menu_isp_point" sequence="1"
     416      action="action_isp_point_form"/>
     417
     418    <record model="ir.ui.view" id="view_network_point_tree">
     419      <field name="name">network.point</field>
     420      <field name="model">network.point</field>
     421      <field name="type">tree</field>
     422      <field name="priority" eval="2"/>
     423      <field name="arch" type="xml">
     424        <tree string="Point">
     425          <field name="name" select="1" />
     426          <field name="address_id" select="1" />
     427          <field name="latitude" select="1" />
     428          <field name="longitude" select="1" />
     429        </tree>
     430      </field>
     431    </record>
     432    <record model="ir.ui.view" id="view_network_point_form">
     433      <field name="name">network.point</field>
     434      <field name="model">network.point</field>
     435      <field name="priority" eval="2"/>
     436      <field name="type">form</field>
     437      <field name="arch" type="xml">
     438        <form string="Point">
     439          <field name="name" select="1" />
     440          <field name="address_id" select="1" />
     441          <field name="latitude" select="1" />
     442          <field name="longitude" select="1" />
     443          <field name="description" select="1" />
     444        </form>
     445      </field>
     446    </record>
     447   
     448 
     449    <record model="ir.actions.act_window" id="action_isp_link_form">
     450      <field name="res_model">network.link</field>
     451      <field name="domain">[]</field>
     452    </record>
     453
     454    <menuitem name="Link"
     455      parent="base.menu_isp_network" id="menu_isp_link" sequence="1"
     456      action="action_isp_link_form"/>
     457
     458    <record model="ir.ui.view" id="view_network_link_tree">
     459      <field name="name">network.link</field>
     460      <field name="model">network.link</field>
     461      <field name="type">tree</field>
     462      <field name="priority" eval="2"/>
     463      <field name="arch" type="xml">
     464        <tree string="Link">
     465          <field name="name" select="1" />
     466          <field name="type_id" select="1" />
     467        </tree>
     468      </field>
     469    </record>
     470    <record model="ir.ui.view" id="view_network_link_form">
     471      <field name="name">network.link</field>
     472      <field name="model">network.link</field>
     473      <field name="priority" eval="2"/>
     474      <field name="type">form</field>
     475      <field name="arch" type="xml">
     476        <form string="Link">
     477          <field name="name" select="1" />
     478          <field name="type_id" select="1" />
     479          <field name="interface_ids" select="1" />
     480          <field name="points_ids" select="1" />
     481        </form>
     482      </field>
     483    </record> 
    326484  </data>
    327485</openerp>
Note: See TracChangeset for help on using the changeset viewer.