diff --git a/addons/portal_customer/__openerp__.py b/addons/portal_customer/__openerp__.py index b3f8443a2b6..9d24ef2907a 100644 --- a/addons/portal_customer/__openerp__.py +++ b/addons/portal_customer/__openerp__.py @@ -40,6 +40,7 @@ "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", ], diff --git a/addons/portal_customer/board_portal_customer_view.xml b/addons/portal_customer/board_portal_customer_view.xml new file mode 100644 index 00000000000..ebe6c348d76 --- /dev/null +++ b/addons/portal_customer/board_portal_customer_view.xml @@ -0,0 +1,52 @@ + + + + + + + + My Feeds + mail.all_feeds + + + + board.customer.portal.form + board.board + form + +
+ + + + + + + + +
+
+
+ + + Customer Portal Dashboard + board.board + form + form + menu + + + + + +
+
diff --git a/addons/portal_customer_event/__openerp__.py b/addons/portal_customer_event/__openerp__.py index 21f6b62c2e8..f6d611d68de 100644 --- a/addons/portal_customer_event/__openerp__.py +++ b/addons/portal_customer_event/__openerp__.py @@ -32,6 +32,7 @@ 'depends': ['event','portal_customer'], 'update_xml': [ 'security/portal_customer_security.xml', + "board_portal_customer_event_view.xml", 'portal_customer_event_view.xml', 'security/ir.model.access.csv', ], diff --git a/addons/portal_customer_event/board_portal_customer_event_view.xml b/addons/portal_customer_event/board_portal_customer_event_view.xml new file mode 100644 index 00000000000..32888099092 --- /dev/null +++ b/addons/portal_customer_event/board_portal_customer_event_view.xml @@ -0,0 +1,28 @@ + + + + + + Events + ir.actions.act_window + event.event + tree + kanban + + {"search_default_upcoming":1} + + + + board.customer.portal.inherit.form + board.board + + form + + + + + + + + + diff --git a/addons/portal_customer_feedback/__init__.py b/addons/portal_customer_feedback/__init__.py new file mode 100644 index 00000000000..26c654db9dd --- /dev/null +++ b/addons/portal_customer_feedback/__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_feedback/__openerp__.py b/addons/portal_customer_feedback/__openerp__.py new file mode 100644 index 00000000000..f67ea6cca41 --- /dev/null +++ b/addons/portal_customer_feedback/__openerp__.py @@ -0,0 +1,41 @@ +# -*- 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 Feedback', + 'version': '0.1', + 'category': 'Tools', + 'complexity': "easy", + 'description': """ + This module add the menu if claim and portal_customer is install. + """, + 'author': 'OpenERP SA', + 'depends': ['survey','portal_customer'], + 'update_xml': [ + 'portal_customer_feedback_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_feedback/portal_customer_feedback_view.xml b/addons/portal_customer_feedback/portal_customer_feedback_view.xml new file mode 100644 index 00000000000..3ae9a96ad57 --- /dev/null +++ b/addons/portal_customer_feedback/portal_customer_feedback_view.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/addons/portal_customer_feedback/security/ir.model.access.csv b/addons/portal_customer_feedback/security/ir.model.access.csv new file mode 100644 index 00000000000..f56702fdc0a --- /dev/null +++ b/addons/portal_customer_feedback/security/ir.model.access.csv @@ -0,0 +1,10 @@ +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_sales_portal,1,1,0,0 +access_survey_page,survey_page,survey.model_survey_page,portal_customer.group_sales_portal,1,1,0,0 +access_survey_question,survey_question,survey.model_survey_question,portal_customer.group_sales_portal,1,0,0,0 +access_survey_answer,survey_answer,survey.model_survey_answer,portal_customer.group_sales_portal,1,1,0,0 +access_survey_response,survey_response,survey.model_survey_response,portal_customer.group_sales_portal,1,1,1,0 +access_survey_history,survey_history,survey.model_survey_history,portal_customer.group_sales_portal,1,1,1,0 +access_survey_question_column_heading,survey_question_column_heading,survey.model_survey_question_column_heading,portal_customer.group_sales_portal,1,0,0,0 +access_survey_response_line,survey_response_line,survey.model_survey_response_line,portal_customer.group_sales_portal,1,1,1,0 +access_survey_response_answer,survey_response_answer,survey.model_survey_response_answer,portal_customer.group_sales_portal,1,1,1,0 diff --git a/addons/survey/__openerp__.py b/addons/survey/__openerp__.py index e4c83a37eee..90d7c2e469f 100644 --- a/addons/survey/__openerp__.py +++ b/addons/survey/__openerp__.py @@ -53,6 +53,7 @@ Partners are also sent mails with user name and password for the invitation of t 'test/survey_question_type.yml', 'test/survey_report.yml', ], + 'css': ['static/src/css/survey.css'], 'installable': True, 'auto_install': False, 'certificate' : '001131639736864143245', diff --git a/addons/survey/static/src/css/survey.css b/addons/survey/static/src/css/survey.css new file mode 100644 index 00000000000..be683a49a96 --- /dev/null +++ b/addons/survey/static/src/css/survey.css @@ -0,0 +1,37 @@ +.oe_module_survey{ + font-size: 12px; + border-style:dotted; + border-radius: 15px; + text-align: left; + height:145px; + width:220px; +} + +.oe_survey_title{ + font-size: 15px; + height: auto; + font-size: 16px; + font-weight:bold; + width: 205px; +} + +.oe_survey_responsible{ + height: auto; + width: 200px; + font-size: 14px; +} + +.oe_survey_start_date{ + height: auto; + width: 200px; + font-size: 14px; +} + +.oe_survey_fill{ + align: right; + position: absolute; +} + +.oe_survey_rate{ + font-size: 14px; +} diff --git a/addons/survey/survey.py b/addons/survey/survey.py index 0101cef17b8..51f97eead02 100644 --- a/addons/survey/survey.py +++ b/addons/survey/survey.py @@ -142,6 +142,17 @@ class survey(osv.osv): 'nodestroy':True, } return report + + def fill_survey(self, cr, uid, ids, context=None): + return { + 'view_type': 'form', + 'view_mode': 'form', + 'res_model': 'survey.question.wiz', + 'type': 'ir.actions.act_window', + 'target': 'new', + 'context': {'survey_id': ids[0]} + } + survey() class survey_history(osv.osv): diff --git a/addons/survey/survey_view.xml b/addons/survey/survey_view.xml index 4673bcd9846..a7247d1f58e 100644 --- a/addons/survey/survey_view.xml +++ b/addons/survey/survey_view.xml @@ -279,13 +279,53 @@ + + + event.survey.kanban + survey + kanban + + + + + + + + + + + + Surveys survey form - tree,form - + kanban,tree,form + You can create survey for different purposes: recruitment interviews, employee's periodical evaluations, marketing campaigns, etc. A survey is made of pages containing questions of several types: text, multiple choices, etc. You can edit survey manually or click on the 'Edit Survey' for a WYSIWYG interface.