network_partner
This commit is contained in:
parent
cf798a996b
commit
d2ac963ee1
15 changed files with 437 additions and 1 deletions
40
network_partner/views/actions.xml
Normal file
40
network_partner/views/actions.xml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<odoo>
|
||||
<data>
|
||||
|
||||
<record id="action_partner_network_nets" model="ir.actions.act_window">
|
||||
<field name="name">Networks</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">partner.network</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="context">{ }</field>
|
||||
<field name="help" type="html">
|
||||
<p class="oe_view_nocontent_create">
|
||||
Click to create a new Partner Network.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_partner_network_nodes" model="ir.actions.act_window">
|
||||
<field name="name">Nodes</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">partner.node</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="context">{ }</field>
|
||||
<field name="help" type="html">
|
||||
<p class="oe_view_nocontent_create">
|
||||
Click to create a new Node.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_partner_network_view_node_tree" model="ir.actions.act_window.view">
|
||||
<field name="sequence" eval="1"/>
|
||||
<field name="view_mode">tree</field>
|
||||
<field name="view_id" ref="network_partner.view_partner_network_node_tree"/>
|
||||
<field name="act_window_id" ref="action_partner_network_nodes"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
32
network_partner/views/menus.xml
Normal file
32
network_partner/views/menus.xml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<odoo>
|
||||
<data noupdate="0">
|
||||
<!-- Top menu item -->
|
||||
<menuitem
|
||||
id="menu_network_partner_root"
|
||||
name="Redes de Contactos"
|
||||
sequence="1"
|
||||
groups="group_np_user"
|
||||
/>
|
||||
<!-- Submenu -->
|
||||
<menuitem id="menu_network_partner_sub"
|
||||
parent="network_partner.menu_network_partner_root"
|
||||
name ="Redes"
|
||||
sequence="10"
|
||||
groups="group_np_user"
|
||||
/>
|
||||
<!-- nodos -->
|
||||
<menuitem action="network_partner.action_partner_network_nodes"
|
||||
id="menu_partner_networks_nodes"
|
||||
parent="network_partner.menu_network_partner_sub"
|
||||
sequence="10"
|
||||
groups="group_np_user"
|
||||
/>
|
||||
<!-- redes -->
|
||||
<menuitem action="network_partner.action_partner_network_nets"
|
||||
id="menu_partner_network_nets"
|
||||
parent="network_partner.menu_network_partner_sub"
|
||||
sequence="20"
|
||||
groups="group_np_user"
|
||||
/>
|
||||
</data>
|
||||
</odoo>
|
||||
29
network_partner/views/partner_net_views.xml
Normal file
29
network_partner/views/partner_net_views.xml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<odoo>
|
||||
<data noupdate="0">
|
||||
|
||||
<record id="view_partner_network_net_form" model="ir.ui.view">
|
||||
<field name="name">partner.network.nets.form</field>
|
||||
<field name="model">partner.network</field>
|
||||
<field eval="8" name="priority"/>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Redes">
|
||||
<group col="4">
|
||||
<field name="name"/>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_partner_network_net_tree" model="ir.ui.view">
|
||||
<field name="name">partner.network.nets.tree</field>
|
||||
<field name="model">partner.network</field>
|
||||
<field eval="8" name="priority"/>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Redes">
|
||||
<field name="name"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
40
network_partner/views/partner_node_views.xml
Normal file
40
network_partner/views/partner_node_views.xml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="0">
|
||||
|
||||
<record id="view_partner_network_node_form" model="ir.ui.view">
|
||||
<field name="name">partner.network.node.form</field>
|
||||
<field name="model">partner.node</field>
|
||||
<field name="priority">20</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Node">
|
||||
<header>
|
||||
<p>Soy el header...</p>
|
||||
</header>
|
||||
<sheet>
|
||||
<group col="4">
|
||||
<field name="name"/>
|
||||
<field name="street"/>
|
||||
<field name="partner_ids"/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_partner_network_node_tree" model="ir.ui.view">
|
||||
<field name="name">partner.network.node.tree</field>
|
||||
<field name="model">partner.node</field>
|
||||
<field name="priority">10</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Nodes">
|
||||
<field name="name"/>
|
||||
<field name="partner_ids"/>
|
||||
<field name="street"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
|
||||
24
network_partner/views/res_partner_views.xml
Normal file
24
network_partner/views/res_partner_views.xml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
|
||||
<record id="view_res_partner_network" model="ir.ui.view">
|
||||
<field name="name">Nodo</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="base.view_partner_form"/>
|
||||
<field name="priority">2</field>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page[@name='internal_notes']" position="after">
|
||||
<page name="nodes_page"
|
||||
string="Nodes" >
|
||||
<group name="nodes_information_group" >
|
||||
<field name = "is_node"/>
|
||||
<field name = "node_id" />
|
||||
</group>
|
||||
</page>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue