[FIX] website_sale: _rec_name product.attribute.line

Set the _rec_name for product.attribute.line model, as its column name wasn't defined, and therefore search on it wasn't possible (For instance, do an advanced search on product.product with "Product Attributes" "Contains" "Something" wasn't possible).
This commit is contained in:
Denis Ledoux 2014-07-23 08:56:36 +02:00
parent 1f878f152a
commit 586b0e2f5d
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ class attributes_value(osv.Model):
class attributes_product(osv.Model):
_name = "product.attribute.line"
_order = 'attribute_id, value_id, value'
_rec_name = 'attribute_id'
_columns = {
'value': fields.float('Numeric Value'),
'value_id': fields.many2one('product.attribute.value', 'Textual Value'),