diff --git a/addons/portal/__openerp__.py b/addons/portal/__openerp__.py index 035ee45b4df..e1fd12fdcf3 100644 --- a/addons/portal/__openerp__.py +++ b/addons/portal/__openerp__.py @@ -39,7 +39,10 @@ module 'share'. 'data': [ 'security/portal_security.xml', 'security/ir.model.access.csv', + "board_portal_view.xml", + 'portal_demo.xml', 'portal_view.xml', + 'portal_menu.xml', 'res_user_view.xml', 'wizard/portal_wizard_view.xml', 'wizard/share_wizard_view.xml', diff --git a/addons/portal_customer/board_portal_customer_view.xml b/addons/portal/board_portal_view.xml similarity index 76% rename from addons/portal_customer/board_portal_customer_view.xml rename to addons/portal/board_portal_view.xml index 26e199900b6..33b34844860 100644 --- a/addons/portal_customer/board_portal_customer_view.xml +++ b/addons/portal/board_portal_view.xml @@ -7,8 +7,8 @@ mail.all_feeds - - board.customer.portal.form + + board.portal.form board.board form @@ -25,13 +25,13 @@ - - Customer Portal Dashboard + + Portal Dashboard board.board form form menu - + diff --git a/addons/portal_customer/portal_customer_demo.xml b/addons/portal/portal_demo.xml similarity index 81% rename from addons/portal_customer/portal_customer_demo.xml rename to addons/portal/portal_demo.xml index 1c7293b4ebc..08ad59f31db 100644 --- a/addons/portal_customer/portal_customer_demo.xml +++ b/addons/portal/portal_demo.xml @@ -2,11 +2,11 @@ - + Demo Portal User test test - + diff --git a/addons/portal_customer/portal_customer_menu.xml b/addons/portal/portal_menu.xml similarity index 62% rename from addons/portal_customer/portal_customer_menu.xml rename to addons/portal/portal_menu.xml index 0891bba049a..409d877c784 100644 --- a/addons/portal_customer/portal_customer_menu.xml +++ b/addons/portal/portal_menu.xml @@ -1,17 +1,18 @@ - - - - - - - + + + + + + + + - + diff --git a/addons/portal/portal_view.xml b/addons/portal/portal_view.xml index e427bbd5b1f..5453ad5af18 100644 --- a/addons/portal/portal_view.xml +++ b/addons/portal/portal_view.xml @@ -70,5 +70,50 @@ the portal's users. + + + Product Kanban + product.product + kanban + + + + + + + + +
+
+ +
+
+

+
    +
  • Stock on hand:
  • +
  • Stock available:
  • +
  • Price:
  • +
+
+
+ +
+
+
+
+
+
+ + + Contact Us + res.company + ir.actions.act_window + form + form,tree + [] + + diff --git a/addons/portal/security/portal_security.xml b/addons/portal/security/portal_security.xml index b64ed078d5f..5e688f9ba91 100644 --- a/addons/portal/security/portal_security.xml +++ b/addons/portal/security/portal_security.xml @@ -7,6 +7,12 @@ 25
+ + User + Portal users can access information provided by the portal menu and the others module it's linked with. + + + Officer Portal officers can create new portal users with the portal wizard. @@ -20,5 +26,10 @@ + + + Portal + + diff --git a/addons/portal_customer_claim/__init__.py b/addons/portal_claim/__init__.py similarity index 100% rename from addons/portal_customer_claim/__init__.py rename to addons/portal_claim/__init__.py diff --git a/addons/portal_customer_sale/__openerp__.py b/addons/portal_claim/__openerp__.py similarity index 84% rename from addons/portal_customer_sale/__openerp__.py rename to addons/portal_claim/__openerp__.py index 15121f35688..52e6a94f910 100644 --- a/addons/portal_customer_sale/__openerp__.py +++ b/addons/portal_claim/__openerp__.py @@ -21,18 +21,18 @@ { - 'name': 'Customer Portal Sale', + 'name': 'Portal Claim', 'version': '0.1', 'category': 'Tools', 'complexity': "easy", 'description': """ - This module add the menu if sale and portal_customer are installed. + This module adds the menu if claim and portal are installed. """, 'author': 'OpenERP SA', - 'depends': ['sale','portal_customer'], + 'depends': ['crm_claim','portal'], 'update_xml': [ - 'security/portal_customer_security.xml', - 'portal_customer_sale_view.xml', + 'security/portal_security.xml', + 'portal_claim_view.xml', "security/ir.model.access.csv", ], 'installable': True, diff --git a/addons/portal_claim/portal_claim_view.xml b/addons/portal_claim/portal_claim_view.xml new file mode 100644 index 00000000000..62c09085846 --- /dev/null +++ b/addons/portal_claim/portal_claim_view.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/addons/portal_customer_claim/portal_customer_claim_view.xml b/addons/portal_claim/portal_customer_claim_view.xml similarity index 100% rename from addons/portal_customer_claim/portal_customer_claim_view.xml rename to addons/portal_claim/portal_customer_claim_view.xml diff --git a/addons/portal_claim/security/ir.model.access.csv b/addons/portal_claim/security/ir.model.access.csv new file mode 100644 index 00000000000..2deff2a0442 --- /dev/null +++ b/addons/portal_claim/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_crm_claim,crm.claim,crm_claim.model_crm_claim,portal.group_portal_user,1,0,0,0 + diff --git a/addons/portal_customer_claim/security/portal_customer_security.xml b/addons/portal_claim/security/portal_customer_security.xml similarity index 100% rename from addons/portal_customer_claim/security/portal_customer_security.xml rename to addons/portal_claim/security/portal_customer_security.xml diff --git a/addons/portal_claim/security/portal_security.xml b/addons/portal_claim/security/portal_security.xml new file mode 100644 index 00000000000..01c93de51af --- /dev/null +++ b/addons/portal_claim/security/portal_security.xml @@ -0,0 +1,13 @@ + + + + + + Personal Claims + + [('partner_id.email','=',user.login)] + + + + + diff --git a/addons/portal_customer/__init__.py b/addons/portal_customer/__init__.py deleted file mode 100644 index 4837393f4d0..00000000000 --- a/addons/portal_customer/__init__.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2011 OpenERP S.A (). -# -# 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 . -# -############################################################################## - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/portal_customer/__openerp__.py b/addons/portal_customer/__openerp__.py deleted file mode 100644 index 6b08e2e6021..00000000000 --- a/addons/portal_customer/__openerp__.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2011 OpenERP S.A (). -# -# 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", - 'version' : "1.0", - 'depends' : ["portal"], - 'author' : "OpenERP SA", - 'category': 'Portal', - 'description': """ - The Customer Portal module helps customers to track their Sales Quotations, Orders, Invoices and various - other possibilities. - """, - 'website': 'http://www.openerp.com', - 'data': [ - ], - "init_xml" : [ - ], - "demo_xml" : [ - "portal_customer_demo.xml", - ], - "update_xml" : [ - "security/portal_customer_security.xml", - "security/ir.model.access.csv", - "board_portal_customer_view.xml", - "portal_customer_view.xml", - "portal_customer_menu.xml", - ], - 'installable': True, -} - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/portal_customer/portal_customer_view.xml b/addons/portal_customer/portal_customer_view.xml deleted file mode 100644 index b3317d0dede..00000000000 --- a/addons/portal_customer/portal_customer_view.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - Product Kanban - product.product - kanban - - - - - - - - -
-
- -
-
-

-
    -
  • Stock on hand:
  • -
  • Stock available:
  • -
  • Price:
  • -
-
-
- -
-
-
-
-
-
- - - Contact Us - res.company - ir.actions.act_window - form - form,tree - [] - - - -
-
diff --git a/addons/portal_customer/security/ir.model.access.csv b/addons/portal_customer/security/ir.model.access.csv deleted file mode 100644 index 97dd8b917b8..00000000000 --- a/addons/portal_customer/security/ir.model.access.csv +++ /dev/null @@ -1 +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 deleted file mode 100644 index 0beb85d2d66..00000000000 --- a/addons/portal_customer/security/portal_customer_security.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - Portal Group - - - - - Portal - - - - - diff --git a/addons/portal_customer_claim/security/ir.model.access.csv b/addons/portal_customer_claim/security/ir.model.access.csv deleted file mode 100644 index 8bce253384b..00000000000 --- a/addons/portal_customer_claim/security/ir.model.access.csv +++ /dev/null @@ -1,3 +0,0 @@ -id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_crm_claim,crm.claim,crm_claim.model_crm_claim,portal_customer.group_portal,1,0,0,0 - diff --git a/addons/portal_customer_feedback/security/ir.model.access.csv b/addons/portal_customer_feedback/security/ir.model.access.csv deleted file mode 100644 index 87c2400b068..00000000000 --- a/addons/portal_customer_feedback/security/ir.model.access.csv +++ /dev/null @@ -1,12 +0,0 @@ -id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_survey_survey,survey_survey,survey.model_survey,portal_customer.group_portal,1,1,0,0 -access_survey_page,survey_page,survey.model_survey_page,portal_customer.group_portal,1,1,0,0 -access_survey_question,survey_question,survey.model_survey_question,portal_customer.group_portal,1,0,0,0 -access_survey_answer,survey_answer,survey.model_survey_answer,portal_customer.group_portal,1,1,0,0 -access_survey_response,survey_response,survey.model_survey_response,portal_customer.group_portal,1,1,1,0 -access_survey_history,survey_history,survey.model_survey_history,portal_customer.group_portal,1,1,1,0 -access_survey_question_column_heading,survey_question_column_heading,survey.model_survey_question_column_heading,portal_customer.group_portal,1,0,0,0 -access_survey_response_line,survey_response_line,survey.model_survey_response_line,portal_customer.group_portal,1,1,1,0 -access_survey_response_answer,survey_response_answer,survey.model_survey_response_answer,portal_customer.group_portal,1,1,1,0 -access_ir_attachment,ir.attachment,base.model_ir_attachment,portal_customer.group_portal,1,0,1,0 -access_mail_message,mail.message,mail.model_mail_message,portal_customer.group_portal,1,1,1,0 diff --git a/addons/portal_customer_sale/security/ir.model.access.csv b/addons/portal_customer_sale/security/ir.model.access.csv deleted file mode 100644 index 8cd5a85b496..00000000000 --- a/addons/portal_customer_sale/security/ir.model.access.csv +++ /dev/null @@ -1,32 +0,0 @@ -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_portal,1,0,0,0 -access_sale_order_line,sale.order.line,sale.model_sale_order_line,portal_customer.group_portal,1,0,0,0 -access_stock_picking,stock.picking,stock.model_stock_picking,portal_customer.group_portal,1,0,0,0 -access_stock_move,stock.move,stock.model_stock_move,portal_customer.group_portal,1,0,0,0 -access_stock_warehouse_orderpoint,stock.warehouse.orderpoint,procurement.model_stock_warehouse_orderpoint,portal_customer.group_portal,1,0,0,0 -access_account_invoice,account.invoice,account.model_account_invoice,portal_customer.group_portal,1,0,0,0 -access_account_invoice_tax,account.invoice.tax,account.model_account_invoice_tax,portal_customer.group_portal,1,0,0,0 -access_account_invoice_line,account.invoice.line,account.model_account_invoice_line,portal_customer.group_portal,1,0,0,0 -access_account_journal,account.journal,account.model_account_journal,portal_customer.group_portal,1,0,0,0 -access_account_voucher,account.voucher,account_voucher.model_account_voucher,portal_customer.group_portal,1,0,0,0 -access_account_voucher_line,account.voucher.line,account_voucher.model_account_voucher_line,portal_customer.group_portal,1,0,0,0 -access_account_move,account.move,account.model_account_move,portal_customer.group_portal,1,0,0,0 -access_account_move_line,account.move.line,account.model_account_move_line,portal_customer.group_portal,1,0,0,0 -access_account_move_reconcile,account.move.reconcile,account.model_account_move_reconcile,portal_customer.group_portal,1,0,0,0 -access_account_fiscalyear,account.sequence.fiscalyear,account.model_account_sequence_fiscalyear,portal_customer.group_portal,1,0,0,0 -access_sale_shop,sale.shop,sale.model_sale_shop,portal_customer.group_portal,1,0,0,0 -access_product_list,product.pricelist,product.model_product_pricelist,portal_customer.group_portal,1,0,0,0 -access_product,product.product,product.model_product_product,portal_customer.group_portal,1,0,0,0 -access_res_partner,res.partner,base.model_res_partner,portal_customer.group_portal,1,0,0,0 -access_product_uom,product.uom,product.model_product_uom,portal_customer.group_portal,1,0,0,0 -access_account_tax,account.tax,account.model_account_tax,portal_customer.group_portal,1,0,0,0 -access_mrp_property,mrp.property,procurement.model_mrp_property,portal_customer.group_portal,1,0,0,0 -access_product_template,product.template,product.model_product_template,portal_customer.group_portal,1,0,0,0 -access_stock_warehouse,stock.warehouse,stock.model_stock_warehouse,portal_customer.group_portal,1,0,0,0 -access_stock_location,stock.location,stock.model_stock_location,portal_customer.group_portal,1,0,0,0 -access_account_fiscalyear,account.fiscalyear,account.model_account_fiscalyear,portal_customer.group_portal,1,0,0,0 -access_res_partner_category,res.partner.category,base.model_res_partner_category,portal_customer.group_portal,1,0,0,0 -access_product_supplierinfo,product.supplierinfo,product.model_product_supplierinfo,portal_customer.group_portal,1,0,0,0 -access_product_packaging,product.packaging,product.model_product_packaging,portal_customer.group_portal,1,0,0,0 -access_account_period,account.period,account.model_account_period,portal_customer.group_portal,1,0,0,0 -access_account_account,account.account,account.model_account_account,portal_customer.group_portal,1,0,0,0 diff --git a/addons/portal_customer_event/__init__.py b/addons/portal_event/__init__.py similarity index 100% rename from addons/portal_customer_event/__init__.py rename to addons/portal_event/__init__.py diff --git a/addons/portal_customer_event/__openerp__.py b/addons/portal_event/__openerp__.py similarity index 82% rename from addons/portal_customer_event/__openerp__.py rename to addons/portal_event/__openerp__.py index f6d611d68de..72d17cda32a 100644 --- a/addons/portal_customer_event/__openerp__.py +++ b/addons/portal_event/__openerp__.py @@ -21,19 +21,19 @@ { - 'name': 'Customer Portal Event', + 'name': 'Portal Event', 'version': '0.1', 'category': 'Tools', 'complexity': "easy", 'description': """ - This module add the menu if claim and portal_customer is install. + This module adds the menu if claim and portal are installed. """, 'author': 'OpenERP SA', - 'depends': ['event','portal_customer'], + 'depends': ['event','portal'], 'update_xml': [ - 'security/portal_customer_security.xml', - "board_portal_customer_event_view.xml", - 'portal_customer_event_view.xml', + 'security/portal_security.xml', + "board_portal_event_view.xml", + 'portal_event_view.xml', 'security/ir.model.access.csv', ], 'installable': True, diff --git a/addons/portal_customer_event/board_portal_customer_event_view.xml b/addons/portal_event/board_portal_customer_event_view.xml similarity index 100% rename from addons/portal_customer_event/board_portal_customer_event_view.xml rename to addons/portal_event/board_portal_customer_event_view.xml diff --git a/addons/portal_event/board_portal_event_view.xml b/addons/portal_event/board_portal_event_view.xml new file mode 100644 index 00000000000..3e73b104cf6 --- /dev/null +++ b/addons/portal_event/board_portal_event_view.xml @@ -0,0 +1,28 @@ + + + + + + Events + ir.actions.act_window + event.event + tree + kanban + + {"search_default_upcoming":1} + + + + board.portal.inherit.form + board.board + + form + + + + + + + + + diff --git a/addons/portal_customer_event/portal_customer_event_view.xml b/addons/portal_event/portal_customer_event_view.xml similarity index 100% rename from addons/portal_customer_event/portal_customer_event_view.xml rename to addons/portal_event/portal_customer_event_view.xml diff --git a/addons/portal_event/portal_event_view.xml b/addons/portal_event/portal_event_view.xml new file mode 100644 index 00000000000..39ad41856a7 --- /dev/null +++ b/addons/portal_event/portal_event_view.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/addons/portal_customer_event/security/ir.model.access.csv b/addons/portal_event/security/ir.model.access.csv similarity index 54% rename from addons/portal_customer_event/security/ir.model.access.csv rename to addons/portal_event/security/ir.model.access.csv index a90f9b79d34..3b899610ad2 100644 --- a/addons/portal_customer_event/security/ir.model.access.csv +++ b/addons/portal_event/security/ir.model.access.csv @@ -1,3 +1,3 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_event,event,event.model_event_event,portal_customer.group_portal,1,0,0,0 -access_registration,registration,event.model_event_registration,portal_customer.group_portal,1,0,0,0 +access_event,event,event.model_event_event,portal.group_portal_user,1,0,0,0 +access_registration,registration,event.model_event_registration,portal.group_portal_user,1,0,0,0 diff --git a/addons/portal_customer_event/security/portal_customer_security.xml b/addons/portal_event/security/portal_customer_security.xml similarity index 100% rename from addons/portal_customer_event/security/portal_customer_security.xml rename to addons/portal_event/security/portal_customer_security.xml diff --git a/addons/portal_event/security/portal_security.xml b/addons/portal_event/security/portal_security.xml new file mode 100644 index 00000000000..a8f1f508054 --- /dev/null +++ b/addons/portal_event/security/portal_security.xml @@ -0,0 +1,20 @@ + + + + + + Personal Events + + [] + + + + + Personal Registrations + + [('partner_id.email','=',user.login)] + + + + + diff --git a/addons/portal_customer_feedback/__init__.py b/addons/portal_feedback/__init__.py similarity index 100% rename from addons/portal_customer_feedback/__init__.py rename to addons/portal_feedback/__init__.py diff --git a/addons/portal_customer_claim/__openerp__.py b/addons/portal_feedback/__openerp__.py similarity index 84% rename from addons/portal_customer_claim/__openerp__.py rename to addons/portal_feedback/__openerp__.py index f36c2534540..3619b6192ec 100644 --- a/addons/portal_customer_claim/__openerp__.py +++ b/addons/portal_feedback/__openerp__.py @@ -21,18 +21,18 @@ { - 'name': 'Customer Portal Claim', + 'name': 'Portal Feedback', 'version': '0.1', 'category': 'Tools', 'complexity': "easy", 'description': """ - This module add the menu if claim and portal_customer are installed. + This module adds the menu if claim and portal are installed. """, 'author': 'OpenERP SA', - 'depends': ['crm_claim','portal_customer'], + 'depends': ['survey','portal'], 'update_xml': [ - 'security/portal_customer_security.xml', - 'portal_customer_claim_view.xml', + 'portal_feedback_view.xml', + "board_portal_feedback_view.xml", "security/ir.model.access.csv", ], 'installable': True, diff --git a/addons/portal_customer_feedback/board_portal_customer_feedback_view.xml b/addons/portal_feedback/board_portal_customer_feedback_view.xml similarity index 100% rename from addons/portal_customer_feedback/board_portal_customer_feedback_view.xml rename to addons/portal_feedback/board_portal_customer_feedback_view.xml diff --git a/addons/portal_feedback/board_portal_feedback_view.xml b/addons/portal_feedback/board_portal_feedback_view.xml new file mode 100644 index 00000000000..ee96789419f --- /dev/null +++ b/addons/portal_feedback/board_portal_feedback_view.xml @@ -0,0 +1,27 @@ + + + + + + Feedback + ir.actions.act_window + survey + tree + kanban + + + + + board.portal.inherit.form + board.board + + form + + + + + + + + + diff --git a/addons/portal_customer_feedback/portal_customer_feedback_view.xml b/addons/portal_feedback/portal_customer_feedback_view.xml similarity index 100% rename from addons/portal_customer_feedback/portal_customer_feedback_view.xml rename to addons/portal_feedback/portal_customer_feedback_view.xml diff --git a/addons/portal_feedback/portal_feedback_view.xml b/addons/portal_feedback/portal_feedback_view.xml new file mode 100644 index 00000000000..a65f5f15138 --- /dev/null +++ b/addons/portal_feedback/portal_feedback_view.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/addons/portal_feedback/security/ir.model.access.csv b/addons/portal_feedback/security/ir.model.access.csv new file mode 100644 index 00000000000..37ba12ce805 --- /dev/null +++ b/addons/portal_feedback/security/ir.model.access.csv @@ -0,0 +1,12 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_survey_survey,survey_survey,survey.model_survey,portal.group_portal_user,1,1,0,0 +access_survey_page,survey_page,survey.model_survey_page,portal.group_portal_user,1,1,0,0 +access_survey_question,survey_question,survey.model_survey_question,portal.group_portal_user,1,0,0,0 +access_survey_answer,survey_answer,survey.model_survey_answer,portal.group_portal_user,1,1,0,0 +access_survey_response,survey_response,survey.model_survey_response,portal.group_portal_user,1,1,1,0 +access_survey_history,survey_history,survey.model_survey_history,portal.group_portal_user,1,1,1,0 +access_survey_question_column_heading,survey_question_column_heading,survey.model_survey_question_column_heading,portal.group_portal_user,1,0,0,0 +access_survey_response_line,survey_response_line,survey.model_survey_response_line,portal.group_portal_user,1,1,1,0 +access_survey_response_answer,survey_response_answer,survey.model_survey_response_answer,portal.group_portal_user,1,1,1,0 +access_ir_attachment,ir.attachment,base.model_ir_attachment,portal.group_portal_user,1,0,1,0 +access_mail_message,mail.message,mail.model_mail_message,portal.group_portal_user,1,1,1,0 diff --git a/addons/portal_customer_issue/__init__.py b/addons/portal_issue/__init__.py similarity index 100% rename from addons/portal_customer_issue/__init__.py rename to addons/portal_issue/__init__.py diff --git a/addons/portal_customer_issue/__openerp__.py b/addons/portal_issue/__openerp__.py similarity index 84% rename from addons/portal_customer_issue/__openerp__.py rename to addons/portal_issue/__openerp__.py index eae8b8ba9ea..2ae726b736c 100644 --- a/addons/portal_customer_issue/__openerp__.py +++ b/addons/portal_issue/__openerp__.py @@ -21,19 +21,19 @@ { - 'name': 'Customer Portal Issue', + 'name': 'Portal Issue', 'version': '0.1', 'category': 'Tools', 'complexity': "easy", 'description': """ - This module add the menu if claim and portal_customer is install. + This module adds the menu if claim and portal are installed. """, 'author': 'OpenERP SA', - 'depends': ['project_issue','portal_customer'], + 'depends': ['project_issue','portal'], 'update_xml': [ - 'security/portal_customer_security.xml', + 'security/portal_security.xml', 'security/ir.model.access.csv', - 'portal_customer_issue_view.xml', + 'portal_issue_view.xml', ], 'installable': True, 'auto_install':True, diff --git a/addons/portal_customer_issue/portal_customer_issue_view.xml b/addons/portal_issue/portal_customer_issue_view.xml similarity index 100% rename from addons/portal_customer_issue/portal_customer_issue_view.xml rename to addons/portal_issue/portal_customer_issue_view.xml diff --git a/addons/portal_issue/portal_issue_view.xml b/addons/portal_issue/portal_issue_view.xml new file mode 100644 index 00000000000..03b128913ff --- /dev/null +++ b/addons/portal_issue/portal_issue_view.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/addons/portal_customer_issue/security/ir.model.access.csv b/addons/portal_issue/security/ir.model.access.csv similarity index 54% rename from addons/portal_customer_issue/security/ir.model.access.csv rename to addons/portal_issue/security/ir.model.access.csv index 1af5122d2c9..55953aa7400 100644 --- a/addons/portal_customer_issue/security/ir.model.access.csv +++ b/addons/portal_issue/security/ir.model.access.csv @@ -1,3 +1,3 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_issues,project_issue,project_issue.model_project_issue,portal_customer.group_portal,1,0,1,0 -access_task,tasks,project.model_project_task,portal_customer.group_portal,1,0,0,0 +access_issues,project_issue,project_issue.model_project_issue,portal.group_portal_user,1,0,1,0 +access_task,tasks,project.model_project_task,portal.group_portal_user,1,0,0,0 diff --git a/addons/portal_customer_issue/security/portal_customer_security.xml b/addons/portal_issue/security/portal_customer_security.xml similarity index 100% rename from addons/portal_customer_issue/security/portal_customer_security.xml rename to addons/portal_issue/security/portal_customer_security.xml diff --git a/addons/portal_issue/security/portal_security.xml b/addons/portal_issue/security/portal_security.xml new file mode 100644 index 00000000000..e7a75721859 --- /dev/null +++ b/addons/portal_issue/security/portal_security.xml @@ -0,0 +1,18 @@ + + + + + + Personal Issues + + [('partner_id.email','=',user.login)] + + + + Personal Task + + [('partner_id.email','=',user.login)] + + + + diff --git a/addons/portal_customer_sale/__init__.py b/addons/portal_sale/__init__.py similarity index 100% rename from addons/portal_customer_sale/__init__.py rename to addons/portal_sale/__init__.py diff --git a/addons/portal_customer_feedback/__openerp__.py b/addons/portal_sale/__openerp__.py similarity index 84% rename from addons/portal_customer_feedback/__openerp__.py rename to addons/portal_sale/__openerp__.py index 0d890896a07..b1bb54dabd0 100644 --- a/addons/portal_customer_feedback/__openerp__.py +++ b/addons/portal_sale/__openerp__.py @@ -21,18 +21,18 @@ { - 'name': 'Customer Portal Feedback', + 'name': 'Portal Sale', 'version': '0.1', 'category': 'Tools', 'complexity': "easy", 'description': """ - This module add the menu if claim and portal_customer is install. + This module adds the menu if sale and portal are installed. """, 'author': 'OpenERP SA', - 'depends': ['survey','portal_customer'], + 'depends': ['sale','portal'], 'update_xml': [ - 'portal_customer_feedback_view.xml', - "board_portal_customer_feedback_view.xml", + 'security/portal_security.xml', + 'portal_sale_view.xml', "security/ir.model.access.csv", ], 'installable': True, diff --git a/addons/portal_customer_sale/portal_customer_sale_view.xml b/addons/portal_sale/portal_customer_sale_view.xml similarity index 100% rename from addons/portal_customer_sale/portal_customer_sale_view.xml rename to addons/portal_sale/portal_customer_sale_view.xml diff --git a/addons/portal_sale/portal_sale_view.xml b/addons/portal_sale/portal_sale_view.xml new file mode 100644 index 00000000000..d4b50daf7b6 --- /dev/null +++ b/addons/portal_sale/portal_sale_view.xml @@ -0,0 +1,38 @@ + + + + + + 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_sale/security/ir.model.access.csv b/addons/portal_sale/security/ir.model.access.csv new file mode 100644 index 00000000000..668b81fd711 --- /dev/null +++ b/addons/portal_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.group_portal_user,1,0,0,0 +access_sale_order_line,sale.order.line,sale.model_sale_order_line,portal.group_portal_user,1,0,0,0 +access_stock_picking,stock.picking,stock.model_stock_picking,portal.group_portal_user,1,0,0,0 +access_stock_move,stock.move,stock.model_stock_move,portal.group_portal_user,1,0,0,0 +access_stock_warehouse_orderpoint,stock.warehouse.orderpoint,procurement.model_stock_warehouse_orderpoint,portal.group_portal_user,1,0,0,0 +access_account_invoice,account.invoice,account.model_account_invoice,portal.group_portal_user,1,0,0,0 +access_account_invoice_tax,account.invoice.tax,account.model_account_invoice_tax,portal.group_portal_user,1,0,0,0 +access_account_invoice_line,account.invoice.line,account.model_account_invoice_line,portal.group_portal_user,1,0,0,0 +access_account_journal,account.journal,account.model_account_journal,portal.group_portal_user,1,0,0,0 +access_account_voucher,account.voucher,account_voucher.model_account_voucher,portal.group_portal_user,1,0,0,0 +access_account_voucher_line,account.voucher.line,account_voucher.model_account_voucher_line,portal.group_portal_user,1,0,0,0 +access_account_move,account.move,account.model_account_move,portal.group_portal_user,1,0,0,0 +access_account_move_line,account.move.line,account.model_account_move_line,portal.group_portal_user,1,0,0,0 +access_account_move_reconcile,account.move.reconcile,account.model_account_move_reconcile,portal.group_portal_user,1,0,0,0 +access_account_fiscalyear,account.sequence.fiscalyear,account.model_account_sequence_fiscalyear,portal.group_portal_user,1,0,0,0 +access_sale_shop,sale.shop,sale.model_sale_shop,portal.group_portal_user,1,0,0,0 +access_product_list,product.pricelist,product.model_product_pricelist,portal.group_portal_user,1,0,0,0 +access_product,product.product,product.model_product_product,portal.group_portal_user,1,0,0,0 +access_res_partner,res.partner,base.model_res_partner,portal.group_portal_user,1,0,0,0 +access_product_uom,product.uom,product.model_product_uom,portal.group_portal_user,1,0,0,0 +access_account_tax,account.tax,account.model_account_tax,portal.group_portal_user,1,0,0,0 +access_mrp_property,mrp.property,procurement.model_mrp_property,portal.group_portal_user,1,0,0,0 +access_product_template,product.template,product.model_product_template,portal.group_portal_user,1,0,0,0 +access_stock_warehouse,stock.warehouse,stock.model_stock_warehouse,portal.group_portal_user,1,0,0,0 +access_stock_location,stock.location,stock.model_stock_location,portal.group_portal_user,1,0,0,0 +access_account_fiscalyear,account.fiscalyear,account.model_account_fiscalyear,portal.group_portal_user,1,0,0,0 +access_res_partner_category,res.partner.category,base.model_res_partner_category,portal.group_portal_user,1,0,0,0 +access_product_supplierinfo,product.supplierinfo,product.model_product_supplierinfo,portal.group_portal_user,1,0,0,0 +access_product_packaging,product.packaging,product.model_product_packaging,portal.group_portal_user,1,0,0,0 +access_account_period,account.period,account.model_account_period,portal.group_portal_user,1,0,0,0 +access_account_account,account.account,account.model_account_account,portal.group_portal_user,1,0,0,0 diff --git a/addons/portal_customer_sale/security/portal_customer_security.xml b/addons/portal_sale/security/portal_customer_security.xml similarity index 100% rename from addons/portal_customer_sale/security/portal_customer_security.xml rename to addons/portal_sale/security/portal_customer_security.xml diff --git a/addons/portal_sale/security/portal_security.xml b/addons/portal_sale/security/portal_security.xml new file mode 100644 index 00000000000..8f0a35af6cc --- /dev/null +++ b/addons/portal_sale/security/portal_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)] + + + + +