Bharat Devnani (Open ERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-customer_portal-atp-portal_customer-bde into lp:~openerp-dev/openobject-addons/trunk-customer_portal-atp.
Requested reviews: OpenERP R&D Team (openerp-dev) For more details, see: https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-customer_portal-atp-portal_customer-bde/+merge/101517 Hello Sir, I have created Module portal_customer which includes: 1) Address Book 2) Track Orders 3) Invoices & Payments 4) Services Through this the portal user can view his/her: Quotations, Sale Orders, Delivery Orders, Invoices and Payments. Thanks & Regards, Devnani Bharat R. -- https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-customer_portal-atp-portal_customer-bde/+merge/101517 Your team OpenERP R&D Team is requested to review the proposed merge of lp:~openerp-dev/openobject-addons/trunk-customer_portal-atp-portal_customer-bde into lp:~openerp-dev/openobject-addons/trunk-customer_portal-atp.
=== modified file 'portal_customer/__init__.py' --- portal_customer/__init__.py 2012-04-05 08:18:45 +0000 +++ portal_customer/__init__.py 2012-04-11 09:28:38 +0000 @@ -1,23 +1,48 @@ -# -*- 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: +<<<<<<< TREE +# -*- 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: +======= +# -*- 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: +>>>>>>> MERGE-SOURCE === modified file 'portal_customer/__openerp__.py' --- portal_customer/__openerp__.py 2012-04-05 08:18:45 +0000 +++ portal_customer/__openerp__.py 2012-04-11 09:28:38 +0000 @@ -1,3 +1,4 @@ +<<<<<<< TREE # -*- coding: utf-8 -*- ############################################################################## # @@ -45,3 +46,52 @@ } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: +======= +# -*- 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/portal_customer_security.xml", + "security/ir.model.access.csv", + "portal_customer_menu.xml", + ], + 'installable': True, +} + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: +>>>>>>> MERGE-SOURCE === added file 'portal_customer/portal_customer_menu.xml' --- portal_customer/portal_customer_menu.xml 1970-01-01 00:00:00 +0000 +++ portal_customer/portal_customer_menu.xml 2012-04-11 09:28:38 +0000 @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="utf-8"?> +<openerp> + <data> + + <menuitem name="Customer Portal" id="customer_portal" groups="group_sales_portal"/> + + <menuitem name="Address Book" id="customer_portal_address_book_main" parent="customer_portal"/> + <menuitem name="Contacts" id="customer_portal_address_book" parent="customer_portal_address_book_main" 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" action="sale.action_order_tree5"/> + <menuitem name="Sales Orders" id="customer_portal_sales_orders" parent="customer_portal_track_orders" action="sale.action_order_form"/> + <menuitem name="Delivery Orders" id="customer_portal_delivery" parent="customer_portal_track_orders" action="stock.action_picking_tree"/> + <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" action="account.action_invoice_tree1"/> + <menuitem name="Payments" id="customer_portal_payments" parent="customer_portal_invoice_payements" action="account_voucher.action_vendor_receipt"/> + + <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" action="product.product_normal_action_sell"/> + <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"/> + + <!-- Hiding Menus which are not required for Customer Portal user --> + + <menuitem id="base.menu_partner_form" parent="base.menu_sales" action="base.action_partner_form" sequence="1" groups="base.group_sale_salesman"/> + <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 name="Products by Category" id="stock.menu_product_by_category_stock_form" action="product.product_category_action" parent="stock.menu_stock_product" sequence="0" groups="stock.group_stock_user"/> + <menuitem action="product.product_normal_action" id="stock.menu_stock_products_menu" parent="stock.menu_stock_product" sequence="1" groups="stock.group_stock_user"/> + <menuitem id="account.menu_account_customer" name="Customers" parent="account.menu_finance_receivables" action="base.action_partner_customer_form" sequence="100" groups="account.group_account_user"/> + <menuitem action="account.action_invoice_tree2" id="account.menu_action_invoice_tree2" parent="account.menu_finance_payables" groups="account.group_account_user"/> + <menuitem action="account.action_invoice_tree4" id="account.menu_action_invoice_tree4" parent="account.menu_finance_payables" groups="account.group_account_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 id="mail.mail_feeds" name="Feeds" parent="mail.mail_feeds_main" groups="base.group_sale_salesman"/> + <menuitem action="account.action_account_invoice_report_all" id="account.menu_action_account_invoice_report_all" parent="account.menu_finance_statistic_report_statement" sequence="0" groups="account.group_account_user"/> + <menuitem id="account.menu_finance_statistic_report_statement" name="Statistic Reports" parent="account.menu_finance_reporting" sequence="300" groups="account.group_account_user"/> + <menuitem id="account.menu_finance_reporting" name="Accounting" parent="base.menu_reporting" sequence="35" groups="account.group_account_user"/> + <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('base.group_sale_salesman'))]" name="groups_id"/> + </record> + + </data> +</openerp> === added file 'portal_customer/security/ir.model.access.csv' --- portal_customer/security/ir.model.access.csv 1970-01-01 00:00:00 +0000 +++ portal_customer/security/ir.model.access.csv 2012-04-11 09:28:38 +0000 @@ -0,0 +1,15 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_sale_order,sale.order,sale.model_sale_order,portal_customer.group_sales_portal,1,0,0,0 +access_sale_order_line,sale.order.line,sale.model_sale_order_line,portal_customer.group_sales_portal,1,0,0,0 +access_stock_picking,stock.picking,stock.model_stock_picking,portal_customer.group_sales_portal,1,0,0,0 +access_stock_move,stock.move,stock.model_stock_move,portal_customer.group_sales_portal,1,0,0,0 +access_stock_warehouse_orderpoint,stock.warehouse.orderpoint,procurement.model_stock_warehouse_orderpoint,portal_customer.group_sales_portal,1,0,0,0 +access_account_invoice,account.invoice,account.model_account_invoice,portal_customer.group_sales_portal,1,0,0,0 +access_account_invoice_tax,account.invoice.tax,account.model_account_invoice_tax,portal_customer.group_sales_portal,1,0,0,0 +access_account_invoice_line,account.invoice.line,account.model_account_invoice_line,portal_customer.group_sales_portal,1,0,0,0 +access_account_journal,account.journal,account.model_account_journal,portal_customer.group_sales_portal,1,0,0,0 +access_account_voucher,account.voucher,account_voucher.model_account_voucher,portal_customer.group_sales_portal,1,0,0,0 +access_account_voucher_line,account.voucher.line,account_voucher.model_account_voucher_line,portal_customer.group_sales_portal,1,0,0,0 +access_account_move,account.move,account.model_account_move,portal_customer.group_sales_portal,1,0,0,0 +access_account_move_line,account.move.line,account.model_account_move_line,portal_customer.group_sales_portal,1,0,0,0 +access_account_move_reconcile,account.move.reconcile,account.model_account_move_reconcile,portal_customer.group_sales_portal,1,0,0,0 === added file 'portal_customer/security/portal_customer_security.xml' --- portal_customer/security/portal_customer_security.xml 1970-01-01 00:00:00 +0000 +++ portal_customer/security/portal_customer_security.xml 2012-04-11 09:28:38 +0000 @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="utf-8"?> +<openerp> + <data> + + <!-- Creating Portal Group --> + + <record id="group_sales_portal" model="res.groups"> + <field name="name">Sales Portal Group</field> + <field ref="base.module_category_sales_management" name="category_id"/> + <field name="implied_ids" eval="[(4, ref('base.group_user'))]"/> + </record> + + <record id="portal_customer" model="res.portal"> + <field name="name">Sales Portal</field> + <field name="group_id" ref="group_sales_portal"/> + </record> + + + <!-- Sale Portal Access Rules --> + + <record id="portal_sale_order_user_rule" model="ir.rule"> + <field name="name">Personal Quotations/Sales</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('group_sales_portal'))]"/> + </record> + + <record id="portal_stock_picking_user_rule" model="ir.rule"> + <field name="name">Personal Delivery Orders</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('group_sales_portal'))]"/> + </record> + + <record id="portal_account_invoice_user_rule" model="ir.rule"> + <field name="name">Personal Account Invoices</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('group_sales_portal'))]"/> + </record> + + <record id="portal_personal_payment" model="ir.rule"> + <field name="name">Personal Payments</field> + <field ref="account_voucher.model_account_voucher" name="model_id"/> + <field name="domain_force">[('partner_id.email','=',user.login)]</field> + <field name="groups" eval="[(4, ref('group_sales_portal'))]"/> + </record> + + <record id="portal_personal_contact" model="ir.rule"> + <field name="name">Personal Contacts</field> + <field ref="base.model_res_partner" name="model_id"/> + <field name="domain_force">[('email','=',user.login)]</field> + <field name="groups" eval="[(4, ref('group_sales_portal'))]"/> + </record> + + </data> +</openerp> === modified file 'sale/security/sale_security.xml' --- sale/security/sale_security.xml 2012-04-04 09:08:30 +0000 +++ sale/security/sale_security.xml 2012-04-11 09:28:38 +0000 @@ -84,7 +84,7 @@ <record id="sale_order_personal_rule" model="ir.rule"> <field name="name">Personal Orders</field> <field ref="model_sale_order" name="model_id"/> - <field name="domain_force">['|',('user_id','=',user.id),('user_id','=',False)]</field> + <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="sale_order_see_all" model="ir.rule">
_______________________________________________ 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

