[IMP] improved the portal_customer and reverted the changes related to events, feeds, and survey
bzr revid: bde@tinyerp.com-20120416123014-m20snij3t5oarl0h
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
"update_xml" : [
|
||||
"security/portal_customer_security.xml",
|
||||
"security/ir.model.access.csv",
|
||||
"portal_customer_view.xml",
|
||||
"portal_customer_menu.xml",
|
||||
],
|
||||
'installable': True,
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<menuitem name="Track Orders" id="customer_portal_track_orders" parent="customer_portal"/>
|
||||
<menuitem name="Quotation" id="customer_portal_quotation" parent="customer_portal_track_orders" action="sale.action_order_tree5"/>
|
||||
<menuitem name="Sales Orders" id="customer_portal_sales_orders" parent="customer_portal_track_orders" action="sale.action_order_form"/>
|
||||
<menuitem name="Delivery Orders" id="customer_portal_delivery" parent="customer_portal_track_orders" action="stock.action_picking_tree"/>
|
||||
<menuitem name="Delivery Orders" id="customer_portal_delivery" parent="customer_portal_track_orders" action="action_picking_tree"/>
|
||||
<menuitem name="Registration" id="customer_portal_registration" parent="customer_portal_track_orders"/>
|
||||
|
||||
<menuitem name="Invoice and Payments" id="customer_portal_invoice_payements" parent="customer_portal"/>
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
<menuitem name="Services" id="customer_portal_services" parent="customer_portal"/>
|
||||
<menuitem name="Events" id="customer_portal_events" parent="customer_portal_services"/>
|
||||
<menuitem name="Products" id="customer_portal_products" parent="customer_portal_services" action="product.product_normal_action_sell"/>
|
||||
<menuitem name="Products" id="customer_portal_products" parent="customer_portal_services" action="product_normal_action"/>
|
||||
<menuitem name="Tasks" id="customer_portal_tasks" parent="customer_portal_services"/>
|
||||
|
||||
<menuitem name="After Sales Services" id="customer_portal_after_sales" parent="customer_portal"/>
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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 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="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>
|
||||
</data>
|
||||
</openerp>
|
||||
Reference in New Issue
Block a user