Nimesh Contractor(Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-customer_portal-atp-customer_portal_lead-nco
into lp:~openerp-dev/openobject-addons/trunk-customer_portal-atp.
Requested reviews:
Atul Patel(OpenERP) (atp-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-customer_portal-atp-customer_portal_lead-nco/+merge/101534
Hello sir,
I have add portal_customer_lead module with read , write , create
access for portal customer.
thanks,
NCO.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-customer_portal-atp-customer_portal_lead-nco/+merge/101534
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-customer_portal-atp.
=== modified file 'hr_holidays/hr_holidays_view.xml'
=== modified file 'portal_customer/portal_customer_view.xml'
--- portal_customer/portal_customer_view.xml 2012-04-05 08:25:56 +0000
+++ portal_customer/portal_customer_view.xml 2012-04-11 10:23:01 +0000
@@ -1,3 +1,4 @@
+<<<<<<< TREE
<?xml version="1.0" encoding="utf-8"?>
<openerp>
@@ -33,3 +34,41 @@
</openerp>
+=======
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+
+ <data>
+ <menuitem name="Customer Portal" id="customer_portal" />
+
+ <menuitem name="Address Book" id="customer_portal_address_book" parent="customer_portal" action="base.action_partner_form"/>
+
+ <menuitem name="Track Orders" id="customer_portal_track_orders" parent="customer_portal"/>
+ <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" parent="customer_portal"/>
+ <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" parent="customer_portal"/>
+ <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" parent="customer_portal"/>
+ <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" parent="customer_portal"/>
+
+
+ </data>
+
+</openerp>
+
+>>>>>>> MERGE-SOURCE
=== modified file 'portal_customer/portal_demo.xml'
--- portal_customer/portal_demo.xml 2012-04-05 08:18:45 +0000
+++ portal_customer/portal_demo.xml 2012-04-11 10:23:01 +0000
@@ -1,3 +1,4 @@
+<<<<<<< TREE
<?xml version="1.0" ?>
<openerp>
@@ -78,4 +79,86 @@
</data>
-</openerp>
\ No newline at end of file
+</openerp>=======
+<?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>
+>>>>>>> MERGE-SOURCE
=== added directory 'portal_customer_lead'
=== added file 'portal_customer_lead/__init__.py'
--- portal_customer_lead/__init__.py 1970-01-01 00:00:00 +0000
+++ portal_customer_lead/__init__.py 2012-04-11 10:23:01 +0000
@@ -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:
=== added file 'portal_customer_lead/__openerp__.py'
--- portal_customer_lead/__openerp__.py 1970-01-01 00:00:00 +0000
+++ portal_customer_lead/__openerp__.py 2012-04-11 10:23:01 +0000
@@ -0,0 +1,44 @@
+# -*- 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",
+ 'version' : "1.0",
+ 'depends' : ["portal_customer", "crm"],
+ 'author' : "OpenERP SA",
+ 'category': 'Portal',
+ 'description': """
+This module defines 'portals' to customize the access to your OpenERP database
+for external users.
+
+A portal_customer_lead will show the own leads of the customer.
+ """,
+ 'website': 'http://www.openerp.com',
+
+ 'update_xml': [
+ 'security/portal_customer_lead_security.xml',
+ 'security/ir.model.access.csv',
+ 'portal_customer_lead_menu.xml',
+ ],
+ 'installable': True,
+}
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added file 'portal_customer_lead/portal_customer_lead_menu.xml'
--- portal_customer_lead/portal_customer_lead_menu.xml 1970-01-01 00:00:00 +0000
+++ portal_customer_lead/portal_customer_lead_menu.xml 2012-04-11 10:23:01 +0000
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+ <data>
+ <!-- See the Customer's leads -->
+ <menuitem name="Leads" id="menu_customer_portal_leads" parent="portal_customer.customer_portal_track_orders" action="crm.crm_case_category_act_leads_all"/>
+
+ <menuitem name="Contects" id="menu_customer_contact" parent="portal_customer.customer_portal_address_book" action="base.action_partner_form" groups="base.group_partner_manager"/>
+ <!-- Hide the unused menu. -->
+ <menuitem id="base.menu_base_config" name="Configuration" parent="base.menu_base_partner" sequence="30" groups="base.group_sale_salesman"/>
+ <menuitem action="product.product_uom_categ_form_action" id="product.menu_product_uom_categ_form_action" parent="base.menu_base_config" sequence="25" groups="base.group_sale_salesman"/>
+ <menuitem action="sale.action_shop_form" id="sale.menu_action_shop_form" parent="base.menu_base_config" sequence="35" groups="base.group_sale_salesman"/>
+ <menuitem action="product.product_pricelist_action2" id="product.menu_product_pricelist_action2" parent="base.menu_base_config" sequence="20" groups="base.group_sale_salesman"/>
+ <menuitem action="product.product_uom_form_action" id="product.menu_product_uom_form_action" parent="base.menu_base_config" sequence="30" groups="base.group_sale_salesman"/>
+ <menuitem action="stock.action_picking_tree4" id="stock.menu_action_picking_tree4" parent="stock.menu_stock_warehouse_mgmt" sequence="1" groups="base.group_sale_salesman"/>
+ <menuitem action="stock.action_location_tree" id="stock.menu_action_location_tree" parent="stock.menu_stock_inventory_control" sequence="20" groups="stock.group_stock_user"/>
+ <menuitem id="account.menu_account_supplier" name="Suppliers" parent="account.menu_finance_payables" action="base.action_partner_supplier_form" sequence="100" groups="account.group_account_user"/>
+ <menuitem id="base.menu_sales" name="Sales" parent="base.menu_base_partner" sequence="1" groups="base.group_sale_salesman"/>
+ <menuitem action="product.product_normal_action_sell" id="product.menu_products" parent="base.menu_product" sequence="1" groups="base.group_sale_salesman"/>
+
+<!-- <menuitem icon="terp-partner" id="base.menu_base_partner" name="Salesee" sequence="0"
+ web_icon="data/sales.png"
+ web_icon_hover="data/sales-hover.png"
+ groups="base.group_sale_salesman"/-->
+ <record model="res.users" id="base.user_root">
+ <field eval="[(4,ref('base.group_partner_manager'))]" name="groups_id"/>
+ </record>
+<!--
+ Hide Feed menu
+-->
+ <record id="mail.mail_feeds_main" model="ir.ui.menu">
+ <field name="name">Feeds</field>
+ <field name="sequence">0</field>
+ <field name="action" ref="mail.action_mail_all_feeds"/>
+ <field eval="[(4, ref('account.group_account_user'))]" name="groups_id"/>
+ </record>
+ <menuitem id="mail.mail_feeds" name="Feeds" parent="mail.mail_feeds_main" groups="base.group_sale_salesman"/>
+
+ </data>
+</openerp>
=== added directory 'portal_customer_lead/security'
=== added file 'portal_customer_lead/security/ir.model.access.csv'
--- portal_customer_lead/security/ir.model.access.csv 1970-01-01 00:00:00 +0000
+++ portal_customer_lead/security/ir.model.access.csv 2012-04-11 10:23:01 +0000
@@ -0,0 +1,3 @@
+id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
+access_portal_crm_lead,portal.crm.lead,crm.model_crm_lead,group_portal_customer_lead,1,1,1,0
+access_portal_res_partner,portal.res.partner,base.model_res_partner,group_portal_customer_lead,1,1,1,0
=== added file 'portal_customer_lead/security/portal_customer_lead_security.xml'
--- portal_customer_lead/security/portal_customer_lead_security.xml 1970-01-01 00:00:00 +0000
+++ portal_customer_lead/security/portal_customer_lead_security.xml 2012-04-11 10:23:01 +0000
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+ <data>
+ <!-- lead access-->
+ <record id="customer_contact_rule" model="ir.rule">
+ <field name="name">Customer Contact</field>
+ <field ref="base.model_res_partner" name="model_id"/>
+ <field eval="1" name="global"/>
+ <field name="domain_force">[('email','=',user.login)]</field>
+ </record>
+
+ <record id="portal_customer_lead_rule" model="ir.rule">
+ <field name="name">Personal Lead</field>
+ <field ref="crm.model_crm_lead" name="model_id"/>
+ <field name="domain_force">[('partner_id.email','=',user.login)]</field>
+ <field name="global" eval="True"/>
+ </record>
+
+ <record id="group_portal_customer_lead" model="res.groups">
+ <field name="name">Portal Lead Group</field>
+ <field ref="base.module_category_sales_management" name="category_id"/>
+ <field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
+ <field name="rule_groups" eval="[(4, ref('portal_customer_lead_rule')),(4, ref('customer_contact_rule'))]"/>
+ </record>
+
+ <record id="portal_customer_lead" model="res.portal">
+ <field name="name">Customer Lead Portal</field>
+ <field name="group_id" ref="group_portal_customer_lead"/>
+ </record>
+
+ </data>
+</openerp>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp