[IMP] add the custom_portal menu
bzr revid: mva@openerp.com-20120405081845-r23fi50mq8fk5nly
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2011 OpenERP S.A (<http://www.openerp.com>).
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
@@ -0,0 +1,47 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2011 OpenERP S.A (<http://www.openerp.com>).
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
{
|
||||
'name' : "Portal Customer",
|
||||
'version' : "1.0",
|
||||
'depends' : ["sale","portal"],
|
||||
'author' : "OpenERP SA",
|
||||
'category': 'Portal',
|
||||
'description': """
|
||||
The Portal Customer module helps customers to track their Sales Quotations, Orders, Invoices and various
|
||||
other possibilities
|
||||
""",
|
||||
'website': 'http://www.openerp.com',
|
||||
'data': [
|
||||
],
|
||||
"init_xml" : [
|
||||
],
|
||||
"demo_xml" : [
|
||||
],
|
||||
"update_xml" : [
|
||||
# "security/ir.model.access.csv",
|
||||
"portal_customer_view.xml",
|
||||
"portal_demo.xml"
|
||||
],
|
||||
'installable': True,
|
||||
}
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
|
||||
<data>
|
||||
<menuitem name="Partners Portal" id="customer_portal_address_book" />
|
||||
|
||||
<menuitem name="Track Orders" id="customer_portal_track_orders" />
|
||||
<menuitem name="Quotation" id="customer_portal_quotation" parent="customer_portal_track_orders"/>
|
||||
<menuitem name="Sales Orders" id="customer_portal_sales_orders" parent="customer_portal_track_orders"/>
|
||||
<menuitem name="Delivery Orders" id="customer_portal_delivery" parent="customer_portal_track_orders"/>
|
||||
<menuitem name="Registration" id="customer_portal_registration" parent="customer_portal_track_orders"/>
|
||||
|
||||
<menuitem name="Invoice and Payments" id="customer_portal_invoice_payements" />
|
||||
<menuitem name="Invoice" id="customer_portal_invoice" parent="customer_portal_invoice_payements"/>
|
||||
<menuitem name="Payments" id="customer_portal_payments" parent="customer_portal_invoice_payements"/>
|
||||
|
||||
<menuitem name="Services" id="customer_portal_services" />
|
||||
<menuitem name="Events" id="customer_portal_events" parent="customer_portal_services"/>
|
||||
<menuitem name="Products" id="customer_portal_products" parent="customer_portal_services"/>
|
||||
<menuitem name="Tasks" id="customer_portal_tasks" parent="customer_portal_services"/>
|
||||
|
||||
<menuitem name="After Sales Services" id="customer_portal_after_sales" />
|
||||
<menuitem name="Issues" id="customer_portal_issues" parent="customer_portal_after_sales"/>
|
||||
<menuitem name="Claims" id="customer_portal_claims" parent="customer_portal_after_sales"/>
|
||||
<menuitem name="Feedback" id="customer_portal_feedback" parent="customer_portal_after_sales"/>
|
||||
|
||||
<menuitem name="Contact Us" id="customer_portal_contact" />
|
||||
|
||||
|
||||
</data>
|
||||
|
||||
</openerp>
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
<?xml version="1.0" ?>
|
||||
<openerp>
|
||||
|
||||
<data>
|
||||
|
||||
<!--
|
||||
Sale Portal Demo
|
||||
-->
|
||||
|
||||
<record id="portal_sale_order_access_right" model="ir.model.access">
|
||||
<field name="name">Sale Order</field>
|
||||
<field ref="sale.model_sale_order" name="model_id"/>
|
||||
<field name="perm_read">True</field>
|
||||
</record>
|
||||
|
||||
<record id="portal_sale_order_line_access_right" model="ir.model.access">
|
||||
<field name="name">Sale Order Line</field>
|
||||
<field ref="sale.model_sale_order_line" name="model_id"/>
|
||||
<field name="perm_read">True</field>
|
||||
</record>
|
||||
|
||||
<record id="portal_stock_picking_access_right" model="ir.model.access">
|
||||
<field name="name">Stock Picking</field>
|
||||
<field ref="sale.model_stock_picking" name="model_id"/>
|
||||
<field name="perm_read">True</field>
|
||||
<!--field name="perm_write">True</field>
|
||||
<field name="perm_create">True</field>
|
||||
<field name="perm_unlink">True</field-->
|
||||
</record>
|
||||
|
||||
<record id="portal_account_invoice_access_right" model="ir.model.access">
|
||||
<field name="name">Account Invoice</field>
|
||||
<field ref="account.model_account_invoice" name="model_id"/>
|
||||
<field name="perm_read">True</field>
|
||||
<!--field name="perm_write">True</field>
|
||||
<field name="perm_create">True</field>
|
||||
<field name="perm_unlink">True</field-->
|
||||
</record>
|
||||
|
||||
<record id="portal_account_invoice_line_access_right" model="ir.model.access">
|
||||
<field name="name">Account Invoice Line</field>
|
||||
<field ref="account.model_account_invoice_line" name="model_id"/>
|
||||
<field name="perm_read">True</field>
|
||||
<!--field name="perm_write">True</field>
|
||||
<field name="perm_create">True</field>
|
||||
<field name="perm_unlink">True</field-->
|
||||
</record>
|
||||
|
||||
|
||||
<record id="portal_sale_order_user_rule" model="ir.rule">
|
||||
<field name="name">Personal Leads</field>
|
||||
<field ref="sale.model_sale_order" name="model_id"/>
|
||||
<field name="domain_force">['|',('partner_id.email','=',user.login),('user_id','=',False)]</field>
|
||||
<field name="groups" eval="[(4, ref('base.group_sale_salesman'))]"/>
|
||||
</record>
|
||||
|
||||
<record id="portal_stock_picking_user_rule" model="ir.rule">
|
||||
<field name="name">Personal Leads</field>
|
||||
<field ref="stock.model_stock_picking" name="model_id"/>
|
||||
<field name="domain_force">[('partner_id.email','=',user.login)]</field>
|
||||
<field name="groups" eval="[(4, ref('base.group_sale_salesman'))]"/>
|
||||
</record>
|
||||
|
||||
<record id="portal_account_invoice_user_rule" model="ir.rule">
|
||||
<field name="name">Personal Leads</field>
|
||||
<field ref="account.model_account_invoice" name="model_id"/>
|
||||
<field name="domain_force">[('partner_id.email','=',user.login)]</field>
|
||||
<field name="groups" eval="[(4, ref('base.group_sale_salesman'))]"/>
|
||||
</record>
|
||||
|
||||
<record id="res_portal_demo" model="res.portal">
|
||||
<field name="name">Sales Portal</field>
|
||||
<field name="menu_access" eval="[(4, ref('sale.menu_sale_quotations')), (4, ref('sale.menu_sale_order')), (4, ref('base.menu_product')), (4, ref('stock.menu_action_picking_tree')), (4, ref('account.menu_action_invoice_tree1')), (4, ref('account.menu_finance')), (4, ref('stock.menu_stock_root'))]"/>
|
||||
<!--field name="implied_ids" eval="[(4, ref('base.group_sale_salesman')), (4, ref('account.group_account_invoice')), (4, ref('stock.group_stock_user'))]"/-->
|
||||
<field name="rule_groups" eval="[(4, ref('portal_sale_order_user_rule')), (4, ref('portal_stock_picking_user_rule')), (4, ref('portal_account_invoice_user_rule'))]"/>
|
||||
<field name="model_access" eval="[(6,0,[ref('portal_sale_order_access_right'), ref('portal_sale_order_line_access_right'), ref('portal_stock_picking_access_right'), ref('portal_account_invoice_access_right'), ref('portal_account_invoice_line_access_right')])]"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
|
||||
</openerp>
|
||||
Reference in New Issue
Block a user