diff --git a/addons/portal_customer/__openerp__.py b/addons/portal_customer/__openerp__.py index 9d24ef2907a..23d86d29a56 100644 --- a/addons/portal_customer/__openerp__.py +++ b/addons/portal_customer/__openerp__.py @@ -20,13 +20,13 @@ ############################################################################## { - 'name' : "Portal Customer", + 'name' : "Customer Portal", '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 + The Customer Portal module helps customers to track their Sales Quotations, Orders, Invoices and various other possibilities. """, 'website': 'http://www.openerp.com', diff --git a/addons/portal_customer/board_portal_customer_view.xml b/addons/portal_customer/board_portal_customer_view.xml index db6283b47a7..b93736c7fb7 100644 --- a/addons/portal_customer/board_portal_customer_view.xml +++ b/addons/portal_customer/board_portal_customer_view.xml @@ -1,40 +1,39 @@ - - - + + My Feeds mail.all_feeds - - - - board.customer.portal.form - board.board - form - -
- - - - - - - - -
-
-
+
+ + + board.customer.portal.form + board.board + form + +
+ + + + + + + + +
+
+
+ + + Customer Portal Dashboard + board.board + form + form + menu + + - - Customer Portal Dashboard - board.board - form - form - menu - - - diff --git a/addons/portal_customer/portal_customer_demo.xml b/addons/portal_customer/portal_customer_demo.xml index 33f91bfbd8b..2c20149c4ca 100644 --- a/addons/portal_customer/portal_customer_demo.xml +++ b/addons/portal_customer/portal_customer_demo.xml @@ -1,13 +1,12 @@ - - demo_customer_portal - test - test - - - + + demo_customer_portal + test + test + + + - diff --git a/addons/portal_customer/portal_customer_menu.xml b/addons/portal_customer/portal_customer_menu.xml index 84f628dd1a5..9484c4bcc17 100644 --- a/addons/portal_customer/portal_customer_menu.xml +++ b/addons/portal_customer/portal_customer_menu.xml @@ -1,22 +1,11 @@ - - - - - - - - - - - - - - - - - + + + + + + diff --git a/addons/portal_customer/portal_customer_view.xml b/addons/portal_customer/portal_customer_view.xml index 46e8b366718..b3317d0dede 100644 --- a/addons/portal_customer/portal_customer_view.xml +++ b/addons/portal_customer/portal_customer_view.xml @@ -1,18 +1,6 @@ - - - Delivery Orders - stock.picking - ir.actions.act_window - form - tree - [('type','=','out')] - {'default_type': 'out', 'contact_display': 'partner_address'} - - This is the list of all delivery orders that have to be prepared, according to your different sales orders and your logistics rules. - Product Kanban @@ -48,20 +36,6 @@ - - - - - - Products - ir.actions.act_window - product.product - form - kanban,tree,form - - - You must define a Product for everything you buy or sell. Products can be raw materials, stockable products, consumables or services. The Product form contains detailed information about your products related to procurement logistics, sales price, product category, suppliers and so on. - Contact Us diff --git a/addons/portal_customer/security/ir.model.access.csv b/addons/portal_customer/security/ir.model.access.csv index 610b7ac92f4..97dd8b917b8 100644 --- a/addons/portal_customer/security/ir.model.access.csv +++ b/addons/portal_customer/security/ir.model.access.csv @@ -1,33 +1 @@ -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 -access_account_fiscalyear,account.sequence.fiscalyear,account.model_account_sequence_fiscalyear,portal_customer.group_sales_portal,1,0,0,0 -access_sale_shop,sale.shop,sale.model_sale_shop,portal_customer.group_sales_portal,1,0,0,0 -access_product_list,product.pricelist,product.model_product_pricelist,portal_customer.group_sales_portal,1,0,0,0 -access_product,product.product,product.model_product_product,portal_customer.group_sales_portal,1,0,0,0 -access_res_partner,res.partner,base.model_res_partner,portal_customer.group_sales_portal,1,0,0,0 -access_product_uom,product.uom,product.model_product_uom,portal_customer.group_sales_portal,1,0,0,0 -access_account_tax,account.tax,account.model_account_tax,portal_customer.group_sales_portal,1,0,0,0 -access_mrp_property,mrp.property,procurement.model_mrp_property,portal_customer.group_sales_portal,1,0,0,0 -access_product_template,product.template,product.model_product_template,portal_customer.group_sales_portal,1,0,0,0 -access_stock_warehouse,stock.warehouse,stock.model_stock_warehouse,portal_customer.group_sales_portal,1,0,0,0 -access_stock_location,stock.location,stock.model_stock_location,portal_customer.group_sales_portal,1,0,0,0 -access_account_fiscalyear,account.fiscalyear,account.model_account_fiscalyear,portal_customer.group_sales_portal,1,0,0,0 -access_res_partner_category,res.partner.category,base.model_res_partner_category,portal_customer.group_sales_portal,1,0,0,0 -access_product_supplierinfo,product.supplierinfo,product.model_product_supplierinfo,portal_customer.group_sales_portal,1,0,0,0 -access_product_packaging,product.packaging,product.model_product_packaging,portal_customer.group_sales_portal,1,0,0,0 -access_account_period,account.period,account.model_account_period,portal_customer.group_sales_portal,1,0,0,0 -access_account_account,account.account,account.model_account_account,portal_customer.group_sales_portal,1,0,0,0 - +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink diff --git a/addons/portal_customer/security/portal_customer_security.xml b/addons/portal_customer/security/portal_customer_security.xml index 2bccf3abebe..942b14b386a 100644 --- a/addons/portal_customer/security/portal_customer_security.xml +++ b/addons/portal_customer/security/portal_customer_security.xml @@ -13,43 +13,6 @@ Sales Portal - - - - - Personal Quotations/Sales - - [('partner_id.email','=',user.login)] - - - - - Personal Delivery Orders - - [('partner_id.email','=',user.login)] - - - - - Personal Account Invoices - - [('partner_id.email','=',user.login)] - - - - - Personal Payments - - [('partner_id.email','=',user.login)] - - - - - Personal Contacts - - [('email','=',user.login)] - - diff --git a/addons/portal_customer_sale/__init__.py b/addons/portal_customer_sale/__init__.py new file mode 100644 index 00000000000..26c654db9dd --- /dev/null +++ b/addons/portal_customer_sale/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 Tiny SPRL (). +# +# 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 . +# +############################################################################## + diff --git a/addons/portal_customer_sale/__openerp__.py b/addons/portal_customer_sale/__openerp__.py new file mode 100644 index 00000000000..15121f35688 --- /dev/null +++ b/addons/portal_customer_sale/__openerp__.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 Tiny SPRL (). +# +# 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 . +# +############################################################################## + + +{ + 'name': 'Customer Portal Sale', + 'version': '0.1', + 'category': 'Tools', + 'complexity': "easy", + 'description': """ + This module add the menu if sale and portal_customer are installed. + """, + 'author': 'OpenERP SA', + 'depends': ['sale','portal_customer'], + 'update_xml': [ + 'security/portal_customer_security.xml', + 'portal_customer_sale_view.xml', + "security/ir.model.access.csv", + ], + 'installable': True, + 'auto_install':True, + 'category':'Hidden', +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/portal_customer_sale/portal_customer_sale_view.xml b/addons/portal_customer_sale/portal_customer_sale_view.xml new file mode 100644 index 00000000000..9e73f759f55 --- /dev/null +++ b/addons/portal_customer_sale/portal_customer_sale_view.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + Delivery Orders + stock.picking + ir.actions.act_window + form + tree + [('type','=','out')] + {'default_type': 'out', 'contact_display': 'partner_address'} + + This is the list of all delivery orders that have to be prepared, according to your different sales orders and your logistics rules. + + + + Products + ir.actions.act_window + product.product + form + kanban,tree,form + + + You must define a Product for everything you buy or sell. Products can be raw materials, stockable products, consumables or services. The Product form contains detailed information about your products related to procurement logistics, sales price, product category, suppliers and so on. + + + + diff --git a/addons/portal_customer_sale/security/ir.model.access.csv b/addons/portal_customer_sale/security/ir.model.access.csv new file mode 100644 index 00000000000..bd2c482bb67 --- /dev/null +++ b/addons/portal_customer_sale/security/ir.model.access.csv @@ -0,0 +1,32 @@ +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 +access_account_fiscalyear,account.sequence.fiscalyear,account.model_account_sequence_fiscalyear,portal_customer.group_sales_portal,1,0,0,0 +access_sale_shop,sale.shop,sale.model_sale_shop,portal_customer.group_sales_portal,1,0,0,0 +access_product_list,product.pricelist,product.model_product_pricelist,portal_customer.group_sales_portal,1,0,0,0 +access_product,product.product,product.model_product_product,portal_customer.group_sales_portal,1,0,0,0 +access_res_partner,res.partner,base.model_res_partner,portal_customer.group_sales_portal,1,0,0,0 +access_product_uom,product.uom,product.model_product_uom,portal_customer.group_sales_portal,1,0,0,0 +access_account_tax,account.tax,account.model_account_tax,portal_customer.group_sales_portal,1,0,0,0 +access_mrp_property,mrp.property,procurement.model_mrp_property,portal_customer.group_sales_portal,1,0,0,0 +access_product_template,product.template,product.model_product_template,portal_customer.group_sales_portal,1,0,0,0 +access_stock_warehouse,stock.warehouse,stock.model_stock_warehouse,portal_customer.group_sales_portal,1,0,0,0 +access_stock_location,stock.location,stock.model_stock_location,portal_customer.group_sales_portal,1,0,0,0 +access_account_fiscalyear,account.fiscalyear,account.model_account_fiscalyear,portal_customer.group_sales_portal,1,0,0,0 +access_res_partner_category,res.partner.category,base.model_res_partner_category,portal_customer.group_sales_portal,1,0,0,0 +access_product_supplierinfo,product.supplierinfo,product.model_product_supplierinfo,portal_customer.group_sales_portal,1,0,0,0 +access_product_packaging,product.packaging,product.model_product_packaging,portal_customer.group_sales_portal,1,0,0,0 +access_account_period,account.period,account.model_account_period,portal_customer.group_sales_portal,1,0,0,0 +access_account_account,account.account,account.model_account_account,portal_customer.group_sales_portal,1,0,0,0 diff --git a/addons/portal_customer_sale/security/portal_customer_security.xml b/addons/portal_customer_sale/security/portal_customer_security.xml new file mode 100644 index 00000000000..9de947dc01e --- /dev/null +++ b/addons/portal_customer_sale/security/portal_customer_security.xml @@ -0,0 +1,43 @@ + + + + + + + + Personal Quotations/Sales + + [('partner_id.email','=',user.login)] + + + + + Personal Delivery Orders + + [('partner_id.email','=',user.login)] + + + + + Personal Account Invoices + + [('partner_id.email','=',user.login)] + + + + + Personal Payments + + [('partner_id.email','=',user.login)] + + + + + Personal Contacts + + [('email','=',user.login)] + + + + +