odoo/addons/wiki_sale_faq/wiki_sale_faq_view.xml

42 lines
2.2 KiB
XML

<?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="10"
parent="base.menu_base_partner"/>
<record model="ir.actions.act_window" id="action_document_form">
<field name="name">Documents</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">ir.attachment</field>
<field name="view_type">form</field>
<field name="context" eval="{'default_parent_id':ref('dir_sale')}"/>
<field name="help">Documents give you access to all files attached to any record. It is a repository of all documents such as emails, project-related attachments or any other documents. From this view, you can search through the content of the documents. OpenERP automatically assign meta data based on the record like the related partner and indexes the content of .DOC, .ODT, .TXT, .SXW and .PDF documents.</field>
</record>
<record model="ir.actions.act_window" id="action_wiki_test">
<field name="name">Sales FAQ</field>
<field name="res_model">wiki.wiki</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain" eval="[('group_id','=',ref('wiki_groups_sale_faq'))]"/>
<field name="search_view_id" ref="wiki.view_wiki_filter"/>
<field name="help">Wiki pages allow you to share ideas and questions with coworkers. You can create a new document that can be linked to one or several applications (specifications of a project, FAQ for sales teams, etc.). Keywords can be used to easily tag wiki pages. You should use this application with the OpenERP web client interface.</field>
</record>
<menuitem
name="Sales Documents"
action="action_document_form"
id="menu_document_files"
parent="menu_sales"/>
<menuitem parent="menu_sales"
id="menu_action_wiki_wiki" name="Sales FAQ"
action="action_wiki_test" />
</data>
</openerp>