[REM] portal: backend menuitems

Remove all backend menuitems related to portal, as the supported portal
mecanism is now throught the website_portal My Account page.

Original authors: Vipul Bhatt, Florian Wintjens
This commit is contained in:
Antony Lesuisse
2016-07-06 01:17:43 +02:00
parent 4d3114825a
commit ecd58457ed
2 changed files with 0 additions and 130 deletions
-14
View File
@@ -1,19 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Top menu item -->
<menuitem name="Portal"
id="portal_menu"
groups="base.group_portal"
web_icon="portal,static/description/icon.png"
sequence="15"/>
<!--
Create menu items that we'll leave empty for now - they'll be
filled up by other portal modules.
-->
<menuitem name="Billing" id="portal_orders" parent="portal_menu" sequence="20"/>
<menuitem name="After Sale Services" id="portal_after_sales" parent="portal_menu" sequence="30"/>
<menuitem name="Projects" id="portal_projects" parent="portal_menu" sequence="40"/>
<!-- extend res.groups search view -->
<record id="group_search_view" model="ir.ui.view">
@@ -12,120 +12,4 @@
</field>
</record>
<record id="view_order_form_portal_sale" model="ir.ui.view">
<field name="name">sale.order.form.portal_sale</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="groups_id" eval="[(4, ref('base.group_portal'))]"/>
<field name="arch" type="xml">
<data>
<header position="replace">
<field name="state" invisible="1"/>
</header>
<xpath expr='//field[@name="order_line"]/form//field[@name="procurement_ids"]' position="replace"/>
<xpath expr='//field[@name="order_line"]/form//field[@name="product_id"]' position="replace"/>
<xpath expr='//field[@name="order_line"]/form//field[@name="qty_delivered_updateable"]' position="replace"/>
<xpath expr='//field[@name="order_line"]/form//label[@for="qty_delivered"]' position="replace"/>
<xpath expr='//field[@name="order_line"]/form//field[@name="qty_delivered"]' position="replace"/>
<xpath expr='//field[@name="order_line"]/form//label[@for="qty_invoiced"]' position="replace"/>
<xpath expr='//field[@name="order_line"]/form//field[@name="qty_invoiced"]' position="replace"/>
<xpath expr='//field[@name="order_line"]/form//field[@name="price_unit"]' position="attributes">
<attribute name="attrs">{}</attribute>
</xpath>
<xpath expr='//field[@name="order_line"]/form//field[@name="tax_id"]' position="attributes">
<attribute name="attrs">{}</attribute>
</xpath>
<xpath expr='//field[@name="order_line"]/tree//field[@name="procurement_ids"]' position="replace"/>
<xpath expr='//field[@name="order_line"]/tree//field[@name="product_id"]' position="replace"/>
<xpath expr='//field[@name="order_line"]/tree//field[@name="qty_delivered_updateable"]' position="replace"/>
<xpath expr='//field[@name="order_line"]/tree//field[@name="qty_delivered"]' position="replace"/>
<xpath expr='//field[@name="order_line"]/tree//field[@name="qty_invoiced"]' position="replace"/>
<xpath expr='//field[@name="order_line"]/tree//field[@name="price_unit"]' position="attributes">
<attribute name="attrs">{}</attribute>
</xpath>
<xpath expr='//field[@name="order_line"]/tree//field[@name="tax_id"]' position="attributes">
<attribute name="attrs">{}</attribute>
</xpath>
<xpath expr='//field[@name="order_line"]/kanban//field[@name="product_id"]' position="replace">
<field name="name"/>
</xpath>
<xpath expr='//field[@name="order_line"]/kanban/templates/t/div//span/t' position="replace">
<t t-esc="record.name.value"/>
</xpath>
</data>
</field>
</record>
<record id="invoice_form_portal" model="ir.ui.view">
<field name="name">account.invoice.form</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="groups_id" eval="[(4, ref('base.group_portal'))]"/>
<field name="arch" type="xml">
<data>
<xpath expr='//div[contains(@attrs, "has_outstanding")]' position="replace"/>
<field name="has_outstanding" position="replace"/>
<field name="payments_widget" position="replace"/>
<field name="outstanding_credits_debits_widget" position="replace"/>
</data>
</field>
</record>
<!--
Override the original action to set another help field and/or
another context field, more suited for portal members
-->
<record id="action_quotations_portal" 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</field>
<field name="domain">[('state','in',('draft','sent','cancel'))]</field>
<field name="context">{}</field>
<field name="search_view_id" ref="sale.sale_order_view_search_inherit_quotation"/>
<field name="help">We haven't sent you any quotation.</field>
</record>
<record id="action_orders_portal" model="ir.actions.act_window">
<field name="name">Sale Orders</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">sale.order</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="sale.sale_order_view_search_inherit_sale"/>
<field name="domain">[('state', 'not in', ('draft', 'sent', 'cancel'))]</field>
<field name="context">{}</field>
<field name="help">We haven't sent you any sales order.</field>
</record>
<record id="portal_action_invoices" model="ir.actions.act_window">
<field name="name">Invoices</field>
<field name="res_model">account.invoice</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('type','in',['out_invoice','out_refund'])]</field>
<field name="context">{}</field>
<field name="search_view_id" ref="account.view_account_invoice_filter"/>
<field name="help">We haven't sent you any invoice.</field>
</record>
<record id="portal_action_invoices_tree_spec" model="ir.actions.act_window.view">
<field name="act_window_id" ref="portal_action_invoices"/>
<field name="view_id" ref="account.invoice_tree"/>
<field name="view_mode">tree</field>
<field name="sequence" eval="0"/>
</record>
<record id="portal_action_invoices_form_spec" model="ir.actions.act_window.view">
<field name="act_window_id" ref="portal_action_invoices"/>
<field name="view_id" ref="account.invoice_form"/>
<field name="view_mode">form</field>
<field name="sequence" eval="1"/>
</record>
<menuitem name="Quotations" id="portal_quotations" parent="portal.portal_orders"
action="action_quotations_portal" sequence="10"/>
<menuitem name="Sales Orders" id="portal_sales_orders" parent="portal.portal_orders"
action="action_orders_portal" sequence="20"/>
<menuitem name="Invoices" id="portal_invoices" parent="portal.portal_orders"
action="portal_action_invoices" sequence="30"/>
</odoo>