añade campo warehouse a partner_node
crea un almacén al crea un nuevo nodo si no se define movido menús al root de network_partner
This commit is contained in:
parent
72e7b5087e
commit
fecbdb7a9c
12 changed files with 73 additions and 88 deletions
|
|
@ -1,16 +1,10 @@
|
|||
<odoo>
|
||||
<data>
|
||||
<!-- Top menu item -->
|
||||
<menuitem
|
||||
id="menu_collective_purchase_root"
|
||||
name="Collective Purchases"
|
||||
sequence="50"
|
||||
/>
|
||||
<!-- Submenu -->
|
||||
|
||||
<menuitem id="menu_purchase_collective_sub"
|
||||
parent="purchase_collective.menu_collective_purchase_root"
|
||||
parent="network_partner.menu_network_partner_root"
|
||||
name ="Collective Purchases"
|
||||
sequence="5"
|
||||
sequence="20"
|
||||
/>
|
||||
<menuitem action="action_purchase_collective_order_open"
|
||||
id="menu_purchase_collective_order_open"
|
||||
|
|
|
|||
28
purchase_collective/views/partner_node_views.xml
Normal file
28
purchase_collective/views/partner_node_views.xml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="0">
|
||||
|
||||
<record id="view_partner_network_node_inherit_pc_form" model="ir.ui.view">
|
||||
<field name="name">partner.node.form.wh.view</field>
|
||||
<field name="model">partner.node</field>
|
||||
<field name="inherit_id" ref="network_partner.view_partner_network_node_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="network_id" position="after">
|
||||
<field name="wh_id"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_partner_network_node_inherit_pc_tree" model="ir.ui.view">
|
||||
<field name="name">partner.node.tree.wh.view</field>
|
||||
<field name="model">partner.node</field>
|
||||
<field name="inherit_id" ref="network_partner.view_partner_network_node_tree"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="network_id" position="after">
|
||||
<field name="wh_id"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue