2012-05-07 15:59:53 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
2012-08-14 14:56:46 +00:00
|
|
|
<!--
|
|
|
|
Override the original action to set another help field and/or
|
|
|
|
another context field, more suited for portal members
|
|
|
|
-->
|
|
|
|
<record id="action_order_tree5" model="ir.actions.act_window">
|
|
|
|
<field name="name">Quotations</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">sale.order</field>
|
|
|
|
<field name="view_mode">tree,form,calendar,graph</field>
|
|
|
|
<field name="context">{"search_default_draft":1}</field>
|
|
|
|
<field name="search_view_id" ref="sale.view_sales_order_filter"/>
|
2012-11-16 07:53:05 +00:00
|
|
|
<field name="help">We haven't sent you any quotation.</field>
|
2012-08-14 14:56:46 +00:00
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="action_order_form" model="ir.actions.act_window">
|
|
|
|
<field name="name">Sales Orders</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">sale.order</field>
|
|
|
|
<field name="view_mode">tree,form,calendar,graph</field>
|
|
|
|
<field name="search_view_id" ref="sale.view_sales_order_filter"/>
|
|
|
|
<field name="context">{"search_default_sales":1}</field>
|
2012-11-16 07:53:05 +00:00
|
|
|
<field name="help">We haven't sent you any sale order.</field>
|
2012-08-14 14:56:46 +00:00
|
|
|
</record>
|
|
|
|
|
2012-08-14 15:26:46 +00:00
|
|
|
<record id="action_invoice_tree1" model="ir.actions.act_window">
|
|
|
|
<field name="name">Customer Invoices</field>
|
|
|
|
<field name="res_model">account.invoice</field>
|
|
|
|
<field name="view_mode">tree,form,calendar,graph</field>
|
|
|
|
<field name="domain">[('type','=','out_invoice')]</field>
|
2012-11-20 15:50:10 +00:00
|
|
|
<field name="context">{'type':'out_invoice', 'journal_type': 'sale'}</field>
|
2012-08-14 15:26:46 +00:00
|
|
|
<field name="search_view_id" ref="account.view_account_invoice_filter"/>
|
2012-11-16 07:53:05 +00:00
|
|
|
<field name="help">We haven't sent you any invoice.</field>
|
2012-08-14 15:26:46 +00:00
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="action_vendor_receipt" model="ir.actions.act_window">
|
2012-11-20 15:50:10 +00:00
|
|
|
<field name="name">Customer Refunds</field>
|
|
|
|
<field name="res_model">account.invoice</field>
|
|
|
|
<field name="domain">[('type','=','out_refund')]</field>
|
|
|
|
<field name="context">{'type':'out_refund'}</field>
|
|
|
|
<field name="search_view_id" ref="account.view_account_invoice_filter"/>
|
|
|
|
<field name="help">We haven't sent you any refund.</field>
|
2012-05-07 15:59:53 +00:00
|
|
|
</record>
|
|
|
|
|
2012-07-20 16:39:36 +00:00
|
|
|
<menuitem name="Quotations" id="portal_quotations" parent="portal.portal_orders"
|
2012-08-14 14:56:46 +00:00
|
|
|
action="action_order_tree5" sequence="10"/>
|
2012-07-20 16:39:36 +00:00
|
|
|
<menuitem name="Sales Orders" id="portal_sales_orders" parent="portal.portal_orders"
|
2012-08-14 14:56:46 +00:00
|
|
|
action="action_order_form" sequence="20"/>
|
2012-11-16 07:53:05 +00:00
|
|
|
<menuitem name="Invoices" id="portal_invoices" parent="portal.portal_orders"
|
2012-11-20 07:45:52 +00:00
|
|
|
action="action_invoice_tree1" sequence="30"/>
|
2012-11-20 15:50:10 +00:00
|
|
|
<menuitem name="Customer Refunds" id="portal_payments" parent="portal.portal_orders"
|
2012-11-20 07:45:52 +00:00
|
|
|
action="action_vendor_receipt" sequence="40"/>
|
2012-05-09 10:14:17 +00:00
|
|
|
|
2012-05-07 15:59:53 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|