[IMP] remove every reference to 'customer' or 'sale' in the portals modules. also merge 'portal_customer' into 'portal'.
bzr revid: abo@openerp.com-20120509161108-9e9cm9fu658elvb3
This commit is contained in:
parent
1d50f2d3a9
commit
ae0b84d88e
|
@ -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',
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
<field name="tag">mail.all_feeds</field>
|
||||
</record>
|
||||
|
||||
<record id="board_customer_portal_form" model="ir.ui.view">
|
||||
<field name="name">board.customer.portal.form</field>
|
||||
<record id="board_portal_form" model="ir.ui.view">
|
||||
<field name="name">board.portal.form</field>
|
||||
<field name="model">board.board</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
|
@ -25,13 +25,13 @@
|
|||
</field>
|
||||
</record>
|
||||
|
||||
<record id="open_customer_portal" model="ir.actions.act_window">
|
||||
<field name="name">Customer Portal Dashboard</field>
|
||||
<record id="open_portal" model="ir.actions.act_window">
|
||||
<field name="name">Portal Dashboard</field>
|
||||
<field name="res_model">board.board</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="usage">menu</field>
|
||||
<field name="view_id" ref="board_customer_portal_form"/>
|
||||
<field name="view_id" ref="board_portal_form"/>
|
||||
</record>
|
||||
|
||||
</data>
|
|
@ -2,11 +2,11 @@
|
|||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="Customer_demo" model="res.users">
|
||||
<record id="Portal_demo" model="res.users">
|
||||
<field name="name">Demo Portal User</field>
|
||||
<field name="login">test</field>
|
||||
<field name="password">test</field>
|
||||
<field name="groups_id" eval="[(6,0,[ref('group_portal')])]"/>
|
||||
<field name="groups_id" eval="[(6,0,[ref('group_portal_user')])]"/>
|
||||
</record>
|
||||
|
||||
</data>
|
|
@ -1,17 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<menuitem id="portal" action="open_customer_portal" name="Customer Portal" groups="portal_customer.group_portal"/>
|
||||
|
||||
<menuitem name="Track Orders" id="portal_track_orders" parent="portal" groups="portal_customer.group_portal"/>
|
||||
<menuitem name="Invoice and Payments" id="portal_invoice_payements" parent="portal" groups="portal_customer.group_portal"/>
|
||||
<menuitem name="Services" id="portal_services" parent="portal" groups="portal_customer.group_portal"/>
|
||||
<menuitem name="After Sale Services" id="portal_after_sales" parent="portal" groups="portal_customer.group_portal"/>
|
||||
<menuitem name="Our company" id="portal_company" parent="portal"/>
|
||||
<menuitem id="menu_portal" name="Portal"/>
|
||||
|
||||
<menuitem name="Track Orders" id="portal_track_orders" parent="menu_portal" groups="portal.group_portal_user"/>
|
||||
<menuitem name="Invoice and Payments" id="portal_invoice_payements" parent="menu_portal" groups="portal.group_portal_user"/>
|
||||
<menuitem name="Services" id="portal_services" parent="menu_portal" groups="portal.group_portal_user"/>
|
||||
<menuitem name="After Sale Services" id="portal_after_sales" parent="menu_portal" groups="portal.group_portal_user"/>
|
||||
<menuitem name="Our company" id="portal_company" parent="menu_portal"/>
|
||||
<menuitem name="News" id="portal_company_news" parent="portal_company"/>
|
||||
<menuitem name="Jobs" id="portal_company_jobs" parent="portal_company"/>
|
||||
<menuitem name="Address Book" id="portal_company_address_book" parent="portal_company" action="base.action_partner_form"/>
|
||||
<menuitem name="Contact Us" id="portal_company_contact" parent="portal_company" groups="group_portal" action="action_contact_us"/>
|
||||
<menuitem name="Contact Us" id="portal_company_contact" parent="portal_company" groups="group_portal_user" action="action_contact_us"/>
|
||||
|
||||
</data>
|
||||
</openerp>
|
|
@ -70,5 +70,50 @@ the portal's users.
|
|||
</page>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="product.product_kanban_view">
|
||||
<field name="name">Product Kanban</field>
|
||||
<field name="model">product.product</field>
|
||||
<field name="type">kanban</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban>
|
||||
<field name="color"/>
|
||||
<field name="type"/>
|
||||
<field name="product_image"/>
|
||||
<field name="list_price"/>
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div class="oe_product_vignette">
|
||||
<div class="oe_product_img">
|
||||
<a type="edit"><img t-att-src="kanban_image('product.product', 'product_image', record.id.value)" class="oe_product_photo"/></a>
|
||||
</div>
|
||||
<div class="oe_product_desc">
|
||||
<h4><a type="edit"><field name="name"></field></a></h4>
|
||||
<ul>
|
||||
<li t-if="record.type.raw_value != 'service'">Stock on hand: <field name="qty_available"/> <field name="uom_id"/></li>
|
||||
<li t-if="record.type.raw_value != 'service'">Stock available: <field name="virtual_available"/> <field name="uom_id"/></li>
|
||||
<li>Price: <field name="lst_price"></field></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$('.oe_product_photo').load(function() { if($(this).width() > $(this).height()) { $(this).addClass('oe_product_photo_wide') } });
|
||||
</script>
|
||||
<div></div>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_contact_us" model="ir.actions.act_window">
|
||||
<field name="name">Contact Us</field>
|
||||
<field name="res_model">res.company</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form,tree</field>
|
||||
<field name="domain">[]</field>
|
||||
<field name="view_id" ref="base.view_company_form" />
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -7,6 +7,12 @@
|
|||
<field name="sequence">25</field>
|
||||
</record>
|
||||
|
||||
<record id="group_portal_user" model="res.groups">
|
||||
<field name="name">User</field>
|
||||
<field name="comment">Portal users can access information provided by the portal menu and the others module it's linked with.</field>
|
||||
<field name="category_id" ref="module_category_portal"/>
|
||||
</record>
|
||||
|
||||
<record id="group_portal_officer" model="res.groups">
|
||||
<field name="name">Officer</field>
|
||||
<field name="comment">Portal officers can create new portal users with the portal wizard.</field>
|
||||
|
@ -20,5 +26,10 @@
|
|||
<field name="implied_ids" eval="[(4, ref('group_portal_officer'))]"/>
|
||||
<field name="users" eval="[(4, ref('base.user_root'))]"/>
|
||||
</record>
|
||||
|
||||
<record id="portal" model="res.portal">
|
||||
<field name="name">Portal</field>
|
||||
<field name="group_id" ref="group_portal_user"/>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -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,
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<menuitem name="Claims" id="portal_after_sales_claims" parent="portal.portal_after_sales" action="crm_claim.crm_case_categ_claim0"/>
|
||||
|
||||
</data>
|
||||
</openerp>
|
|
@ -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
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="portal_stock_picking_user_rule" model="ir.rule">
|
||||
<field name="name">Personal Claims</field>
|
||||
<field ref="crm_claim.model_crm_claim" name="model_id"/>
|
||||
<field name="domain_force">[('partner_id.email','=',user.login)]</field>
|
||||
<field name="groups" eval="[(4, ref('portal.group_portal_user'))]"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
|
@ -1,22 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2011 OpenERP S.A (<http://www.openerp.com>).
|
||||
#
|
||||
# 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:
|
|
@ -1,50 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2011 OpenERP S.A (<http://www.openerp.com>).
|
||||
#
|
||||
# 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' : "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:
|
|
@ -1,51 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record model="ir.ui.view" id="product.product_kanban_view">
|
||||
<field name="name">Product Kanban</field>
|
||||
<field name="model">product.product</field>
|
||||
<field name="type">kanban</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban>
|
||||
<field name="color"/>
|
||||
<field name="type"/>
|
||||
<field name="product_image"/>
|
||||
<field name="list_price"/>
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div class="oe_product_vignette">
|
||||
<div class="oe_product_img">
|
||||
<a type="edit"><img t-att-src="kanban_image('product.product', 'product_image', record.id.value)" class="oe_product_photo"/></a>
|
||||
</div>
|
||||
<div class="oe_product_desc">
|
||||
<h4><a type="edit"><field name="name"></field></a></h4>
|
||||
<ul>
|
||||
<li t-if="record.type.raw_value != 'service'">Stock on hand: <field name="qty_available"/> <field name="uom_id"/></li>
|
||||
<li t-if="record.type.raw_value != 'service'">Stock available: <field name="virtual_available"/> <field name="uom_id"/></li>
|
||||
<li>Price: <field name="lst_price"></field></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$('.oe_product_photo').load(function() { if($(this).width() > $(this).height()) { $(this).addClass('oe_product_photo_wide') } });
|
||||
</script>
|
||||
<div></div>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_contact_us" model="ir.actions.act_window">
|
||||
<field name="name">Contact Us</field>
|
||||
<field name="res_model">res.company</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form,tree</field>
|
||||
<field name="domain">[]</field>
|
||||
<field name="view_id" ref="base.view_company_form" />
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
|
@ -1 +0,0 @@
|
|||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
|
|
@ -1,17 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<!-- Creating Portal Group -->
|
||||
<record id="group_portal" model="res.groups">
|
||||
<field name="name">Portal Group</field>
|
||||
<field ref="base.module_category_sales_management" name="category_id"/>
|
||||
</record>
|
||||
|
||||
<record id="portal" model="res.portal">
|
||||
<field name="name">Portal</field>
|
||||
<field name="group_id" ref="group_portal"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
|
@ -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
|
||||
|
|
|
@ -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
|
|
|
@ -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
|
|
|
@ -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,
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record model="ir.actions.act_window" id="action_event_view_main">
|
||||
<field name="name">Events</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">event.event</field>
|
||||
<field name="view_type">tree</field>
|
||||
<field name="view_mode">kanban</field>
|
||||
<field name="view_id" ref="event.view_event_kanban"/>
|
||||
<field name="context">{"search_default_upcoming":1}</field>
|
||||
</record>
|
||||
|
||||
<record id="board_portal_inherit_form" model="ir.ui.view">
|
||||
<field name="name">board.portal.inherit.form</field>
|
||||
<field name="model">board.board</field>
|
||||
<field name="inherit_id" ref="portal.board_portal_form"/>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="/form/board/column[1]" position="inside">
|
||||
<action name="%(action_event_view_main)d" string="Upcomming Events"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<menuitem name="Registration" id="portal_track_orders_registration" parent="portal.portal_track_orders" action="event.action_registration"/>
|
||||
<menuitem name="Events" id="portal_company_events" parent="portal.portal_company" action="event.action_event_view" />
|
||||
|
||||
</data>
|
||||
</openerp>
|
|
@ -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
|
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="portal_event_rule" model="ir.rule">
|
||||
<field name="name">Personal Events</field>
|
||||
<field ref="event.model_event_event" name="model_id"/>
|
||||
<field name="domain_force">[]</field>
|
||||
<field name="groups" eval="[(4, ref('portal.group_portal_user'))]"/>
|
||||
</record>
|
||||
|
||||
<record id="portal_registration_rule" model="ir.rule">
|
||||
<field name="name">Personal Registrations</field>
|
||||
<field ref="event.model_event_registration" name="model_id"/>
|
||||
<field name="domain_force">[('partner_id.email','=',user.login)]</field>
|
||||
<field name="groups" eval="[(4, ref('portal.group_portal_user'))]"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
|
@ -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,
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record model="ir.actions.act_window" id="action_survey_kanban_view">
|
||||
<field name="name">Feedback</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">survey</field>
|
||||
<field name="view_type">tree</field>
|
||||
<field name="view_mode">kanban</field>
|
||||
<field name="view_id" ref="survey.view_survey_kanban"/>
|
||||
</record>
|
||||
|
||||
<record id="board_portal_inherit_form" model="ir.ui.view">
|
||||
<field name="name">board.portal.inherit.form</field>
|
||||
<field name="model">board.board</field>
|
||||
<field name="inherit_id" ref="portal.board_portal_form"/>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="/form/board/column[1]" position="inside">
|
||||
<action name="%(action_survey_kanban_view)d" string="Feedback"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<menuitem name="Feedback" id="portal_after_sales_feedback" parent="portal.portal_after_sales" action="survey.action_survey_form1"/>
|
||||
</data>
|
||||
</openerp>
|
|
@ -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
|
|
|
@ -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,
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<menuitem name="Tasks" id="portal_services_tasks" parent="portal.portal_services" action="project.action_view_task"/>
|
||||
<menuitem name="Issues" id="portal_after_sales_issues" parent="portal.portal_after_sales" action="project_issue.project_issue_categ_act0"/>
|
||||
|
||||
</data>
|
||||
</openerp>
|
|
@ -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
|
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="portal_issue_rule" model="ir.rule">
|
||||
<field name="name">Personal Issues</field>
|
||||
<field ref="project_issue.model_project_issue" name="model_id"/>
|
||||
<field name="domain_force">[('partner_id.email','=',user.login)]</field>
|
||||
<field name="groups" eval="[(4, ref('portal.group_portal_user'))]"/>
|
||||
</record>
|
||||
<record id="portal_task_rule" model="ir.rule">
|
||||
<field name="name">Personal Task</field>
|
||||
<field ref="project.model_project_task" name="model_id"/>
|
||||
<field name="domain_force">[('partner_id.email','=',user.login)]</field>
|
||||
<field name="groups" eval="[(4, ref('portal.group_portal_user'))]"/>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
|
@ -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,
|
|
@ -0,0 +1,38 @@
|
|||
<?xml version="1.0"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="action_picking_tree" model="ir.actions.act_window">
|
||||
<field name="name">Delivery Orders</field>
|
||||
<field name="res_model">stock.picking</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree</field>
|
||||
<field name="domain">[('type','=','out')]</field>
|
||||
<field name="context">{'default_type': 'out', 'contact_display': 'partner_address'}</field>
|
||||
<field name="search_view_id" ref="stock.view_picking_out_search"/>
|
||||
<field name="help">This is the list of all delivery orders that have to be prepared, according to your different sales orders and your logistics rules.</field>
|
||||
</record>
|
||||
|
||||
<record id="product_normal_action" model="ir.actions.act_window">
|
||||
<field name="name">Products</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">product.product</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">kanban,tree,form</field>
|
||||
<field name="view_id" ref="product.product_kanban_view"/>
|
||||
<field name="search_view_id" ref="product.product_search_form_view"/>
|
||||
<field name="help">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.</field>
|
||||
</record>
|
||||
|
||||
<menuitem name="Quotation" id="portal_quotation" parent="portal.portal_track_orders" action="sale.action_order_tree5"/>
|
||||
<menuitem name="Sales Orders" id="portal_sales_orders" parent="portal.portal_track_orders" action="sale.action_order_form"/>
|
||||
<menuitem name="Delivery Orders" id="portal_delivery" parent="portal.portal_track_orders" action="action_picking_tree"/>
|
||||
|
||||
<menuitem name="Invoice" id="portal_invoice" parent="portal.portal_invoice_payements" action="account.action_invoice_tree1"/>
|
||||
<menuitem name="Payments" id="portal_payments" parent="portal.portal_invoice_payements" action="account_voucher.action_vendor_receipt"/>
|
||||
|
||||
<menuitem name="Products" id="portal_products" parent="portal.portal_services" action="product_normal_action"/>
|
||||
|
||||
</data>
|
||||
</openerp>
|
|
@ -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
|
|
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<!-- Sale Portal Access Rules -->
|
||||
|
||||
<record id="portal_sale_order_user_rule" model="ir.rule">
|
||||
<field name="name">Personal Quotations/Sales</field>
|
||||
<field ref="sale.model_sale_order" name="model_id"/>
|
||||
<field name="domain_force">[('partner_id.email','=',user.login)]</field>
|
||||
<field name="groups" eval="[(4, ref('group_portal'))]"/>
|
||||
</record>
|
||||
|
||||
<record id="portal_stock_picking_user_rule" model="ir.rule">
|
||||
<field name="name">Personal Delivery Orders</field>
|
||||
<field ref="stock.model_stock_picking" name="model_id"/>
|
||||
<field name="domain_force">[('partner_id.email','=',user.login)]</field>
|
||||
<field name="groups" eval="[(4, ref('group_portal'))]"/>
|
||||
</record>
|
||||
|
||||
<record id="portal_account_invoice_user_rule" model="ir.rule">
|
||||
<field name="name">Personal Account Invoices</field>
|
||||
<field ref="account.model_account_invoice" name="model_id"/>
|
||||
<field name="domain_force">[('partner_id.email','=',user.login)]</field>
|
||||
<field name="groups" eval="[(4, ref('group_portal'))]"/>
|
||||
</record>
|
||||
|
||||
<record id="portal_personal_payment" model="ir.rule">
|
||||
<field name="name">Personal Payments</field>
|
||||
<field ref="account_voucher.model_account_voucher" name="model_id"/>
|
||||
<field name="domain_force">[('partner_id.email','=',user.login)]</field>
|
||||
<field name="groups" eval="[(4, ref('group_portal'))]"/>
|
||||
</record>
|
||||
|
||||
<record id="portal_personal_contact" model="ir.rule">
|
||||
<field name="name">Personal Contacts</field>
|
||||
<field ref="base.model_res_partner" name="model_id"/>
|
||||
<field name="domain_force">[('email','=',user.login)]</field>
|
||||
<field name="groups" eval="[(4, ref('group_portal'))]"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
Loading…
Reference in New Issue