[MERGE] wiki_sale_faq: Sale FAQ

bzr revid: hmo@hmo-20100525140113-pvp3arx7bdvy3ci9
This commit is contained in:
hmo
2010-05-25 19:31:13 +05:30
6 changed files with 132 additions and 2 deletions
+2 -1
View File
@@ -39,7 +39,8 @@ class crm_installer(osv.osv_memory):
'crm_caldav': fields.boolean('Calendar Synchronizing', help="Help you to synchronize the meetings with other calender clients(e.g.: Sunbird)."),
'sale_crm': fields.boolean('Create Quotation from Opportunity', help="This module relates sale to opportunity cases in the CRM."),
'fetchmail': fields.boolean('Fetch Emails', help="Fetchmail Server."),
'thunderbird': fields.boolean('Thunderbird', help="Thunderbird Interface."),
'thunderbird': fields.boolean('Thunderbird', help="Thunderbird Interface."),
'wiki_sale_faq': fields.boolean('Sale FAQ', help="Sale FAQ."),
}
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False):
+2 -1
View File
@@ -35,7 +35,8 @@
<field name="crm_claim" />
<field name="crm_helpdesk" />
<field name="crm_fundraising" />
<field name="sale_crm" invisible="1"/>
<field name="wiki_sale_faq"/>
<field name="sale_crm" invisible="1"/>
</group>
</group>
</data>
+22
View File
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# 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:
+42
View File
@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# 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': 'Wiki -Sale - FAQ',
'version': '1.0',
'category': 'Generic Modules/Others',
'description': """This module provides a wiki FAQ Template
""",
'author': 'Tiny',
'website': 'http://openerp.com',
'depends': ['wiki_faq','document','crm'],
'init_xml': [
'wiki_sale_faq_data.xml'
],
'update_xml': [
'wiki_sale_faq_view.xml'
],
'demo_xml': [
],
'installable': True,
'active': False,
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data noupdate="1">
<record model="document.directory" id="dir_sale">
<field name="name">Sales Document</field>
<field name="user_id" ref="base.user_admin"/>
<field name="parent_id" ref="document.dir_root"/>
<field name="ressource_id">0</field>
</record>
<record id="wiki_groups_sale_faq" model="wiki.groups">
<field name="name">Sale FAQ</field>
<field name="method">list</field>
<field eval="2" name="section"/>
<field name="template">== Question ==
== Answer ==
== External Links ==
</field>
</record>
</data>
</openerp>
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<menuitem id="base.menu_sales" name="Sales" parent="base.menu_base_partner" sequence="1"/>
<menuitem name="Documents"
id="menu_sales" sequence="6"
parent="base.menu_base_partner"/>
<record model="ir.actions.act_window" id="action_document_form">
<field name="type">ir.actions.act_window</field>
<field name="res_model">ir.attachment</field>
<field name="view_type">form</field>
<field name="domain">[('parent_id','=',ref('dir_sale'))]</field>
</record>
<record model="ir.actions.act_window" id="action_wiki_test">
<field name="name">Wiki Pages</field>
<field name="res_model">wiki.wiki</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('group_id','=',ref('wiki_groups_sale_faq'))]</field>
<field name="search_view_id" ref="wiki.view_wiki_filter"/>
</record>
<menuitem
name="Documents"
action="action_document_form"
id="menu_document_files"
parent="menu_sales"/>
<menuitem parent="menu_sales"
id="menu_action_wiki_wiki" name="FAQ"
action="action_wiki_test" />
</data>
</openerp>