crea un almacén al crea un nuevo nodo si no se define movido menús al root de network_partner
40 lines
1.3 KiB
XML
40 lines
1.3 KiB
XML
<?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="network_id"/>
|
|
<field name="partner_ids" widget="many2many_tags"/>
|
|
</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="network_id"/>
|
|
<field name="partner_ids" widget="many2many_tags"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</odoo>
|
|
|