[FIX] website_sale: tour; product split kanban view of product and product template

This commit is contained in:
Christophe Matthieu 2014-06-13 17:08:19 +02:00
parent b8d4cd277e
commit 0f78e602d6
3 changed files with 35 additions and 11 deletions

View File

@ -283,15 +283,30 @@
<record id="product_kanban_view" model="ir.ui.view">
<field name="name">Product Kanban</field>
<field name="model">product.product</field>
<field name="mode">primary</field>
<field name="inherit_id" ref="product.product_template_kanban_view"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="attribute_value_ids"/>
</field>
<xpath expr="//img[@class='oe_kanban_image']" position="replace">
<img t-att-src="kanban_image('product.product', 'image_small', record.id.value)" class="oe_kanban_image"/>
</xpath>
<kanban>
<field name="image_small"/>
<field name="lst_price"/>
<templates>
<t t-name="kanban-box">
<div class="oe_kanban_vignette oe_semantic_html_override">
<a type="open"><img t-att-src="kanban_image('product.product', 'image_small', record.id.value)" class="oe_kanban_image"/></a>
<div class="oe_kanban_details">
<h4>
<a type="open">
<field name="name"/>
<field name="attribute_value_ids"/>
</a>
</h4>
<div name="tags"/>
<ul>
<li>Price: <field name="lst_price"></field></li>
</ul>
</div>
</div>
</t>
</templates>
</kanban>
</field>
</record>
@ -361,7 +376,7 @@
<field name="product_variant_ids"/>
</field>
<h4 position="after">
<a name="%(product.product_variant_action)d" type="action" t-if="!record.is_product_variant.raw_value &amp; record.product_variant_count.raw_value&gt;1">
<a name="%(product.product_variant_action)d" type="action">
<t t-esc="record.product_variant_count.value"/> Variants
</a>
</h4>

View File

@ -211,5 +211,5 @@ class product_attribute(osv.Model):
class product_attribute_value(osv.Model):
_inherit = "product.attribute.value"
_columns = {
'color': fields.char("Color for Color Attributes"),
'color': fields.char("HTML Color Index", help="Here you can set a specific HTML color index (e.g. #ff0000) to display the color on the website if the attibute type is 'Color'."),
}

View File

@ -64,8 +64,17 @@
element: "#customize-menu a:contains(Confirm: Add To Cart)",
},
{
title: "finish",
title: "click on 'My Cart'",
waitFor: "a.a-submit:contains(Add to Cart)",
element: "a[href='/shop/cart']",
},
{
title: "remove ipad from cart",
element: '#cart_products a.js_add_cart_json:first',
},
{
title: "finish",
waitFor: '.my_cart_quantity:contains(1)',
},
]
});