[IMP] add module partner split menu to avoid the mix of contact and main partner
This commit is contained in:
1
partner_split_menu/__init__.py
Normal file
1
partner_split_menu/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
31
partner_split_menu/__openerp__.py
Normal file
31
partner_split_menu/__openerp__.py
Normal file
@@ -0,0 +1,31 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright 2017 Akretion (http://www.akretion.com).
|
||||
# @author Sébastien BEAU <sebastien.beau@akretion.com>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
|
||||
{
|
||||
"name": "Partner Menu Split",
|
||||
"summary": "Split the customer menu in two",
|
||||
"version": "8.0.0.0",
|
||||
"category": "Uncategorized",
|
||||
"website": "www.akretion.com",
|
||||
"author": " Akretion",
|
||||
"license": "AGPL-3",
|
||||
"application": False,
|
||||
"installable": True,
|
||||
"external_dependencies": {
|
||||
"python": [],
|
||||
"bin": [],
|
||||
},
|
||||
"depends": [
|
||||
"base",
|
||||
],
|
||||
"data": [
|
||||
"views/res_partner_view.xml",
|
||||
],
|
||||
"demo": [
|
||||
],
|
||||
"qweb": [
|
||||
]
|
||||
}
|
||||
81
partner_split_menu/views/res_partner_view.xml
Normal file
81
partner_split_menu/views/res_partner_view.xml
Normal file
@@ -0,0 +1,81 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="base.action_partner_customer_form" model="ir.actions.act_window">
|
||||
<field name="domain">[('parent_id', '=', False)]</field>
|
||||
<field name="view_mode">tree,form,kanban</field>
|
||||
</record>
|
||||
|
||||
<record id="base.action_partner_form" model="ir.actions.act_window">
|
||||
<field name="domain">[('parent_id', '=', False)]</field>
|
||||
<field name="view_mode">tree,form,kanban</field>
|
||||
</record>
|
||||
|
||||
<record id="base.action_partner_form_view1" model="ir.actions.act_window.view">
|
||||
<field eval="3" name="sequence"/>
|
||||
</record>
|
||||
|
||||
<record id="action_partner_customer_contact_form" model="ir.actions.act_window">
|
||||
<field name="name">Contact</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">res.partner</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form,kanban</field>
|
||||
<field name="domain">[('parent_id', '!=', False)]</field>
|
||||
<field name="context">{'default_customer':1, 'search_default_customer':1}</field>
|
||||
<field name="filter" eval="True"/>
|
||||
<field name="help" type="html">
|
||||
<p class="oe_view_nocontent_create">
|
||||
Click to add a contact in your address book.
|
||||
</p><p>
|
||||
Odoo helps you easily track all activities related to
|
||||
a customer: discussions, history of business opportunities,
|
||||
documents, etc.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<menuitem
|
||||
id="menu_partner_form"
|
||||
parent="base.menu_sales"
|
||||
action="action_partner_customer_contact_form"
|
||||
sequence="2"/>
|
||||
|
||||
|
||||
<record id="base.action_partner_supplier_form" model="ir.actions.act_window">
|
||||
<field name="domain">[('parent_id', '=', False)]</field>
|
||||
<field name="view_mode">tree,form,kanban</field>
|
||||
</record>
|
||||
|
||||
|
||||
<record id="action_partner_supplier_contact_form" model="ir.actions.act_window">
|
||||
<field name="name">Contact</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">res.partner</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form,kanban</field>
|
||||
<field name="domain">[('parent_id', '!=', False)]</field>
|
||||
<field name="context">{'default_supplier':1, 'search_default_supplier':1}</field>
|
||||
<field name="filter" eval="True"/>
|
||||
<field name="help" type="html">
|
||||
<p class="oe_view_nocontent_create">
|
||||
Click to add a contact in your address book.
|
||||
</p><p>
|
||||
Odoo helps you easily track all activities related to
|
||||
a supplier: discussions, history of business opportunities,
|
||||
documents, etc.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<menuitem
|
||||
id="menu_partner_supplier_form"
|
||||
parent="purchase.menu_procurement_management"
|
||||
action="action_partner_supplier_contact_form"
|
||||
sequence="20"/>
|
||||
|
||||
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
Reference in New Issue
Block a user