|
@@ -6,22 +6,16 @@ from openerp import models, fields, api
|
|
|
class ProductCurve(models.Model):
|
|
|
_name = 'product.curve'
|
|
|
|
|
|
- name = fields.Char('Curve Name', required=True)
|
|
|
- description = fields.Text('Description', translate=True)
|
|
|
- # partner_id = fields.Many2one(
|
|
|
- # 'res.partner',
|
|
|
- # string='Partner',
|
|
|
- # help='Select a partner for this brand if it exists',
|
|
|
- # ondelete='restrict'
|
|
|
- # )
|
|
|
+ name = fields.Char('Nombre', required=True)
|
|
|
+ description = fields.Text('Descripción', translate=True)
|
|
|
logo = fields.Binary('Logo File')
|
|
|
product_ids = fields.One2many(
|
|
|
'product.template',
|
|
|
'product_curve_id',
|
|
|
- string='Curve Products',
|
|
|
+ string='Curva de Productos',
|
|
|
)
|
|
|
products_count = fields.Integer(
|
|
|
- string='Number of products',
|
|
|
+ string='Numero de productos',
|
|
|
compute='_get_products_count',
|
|
|
)
|
|
|
|
|
@@ -37,7 +31,7 @@ class ProductTemplate(models.Model):
|
|
|
product_curve_id = fields.Many2one(
|
|
|
'product.curve',
|
|
|
string='Curva',
|
|
|
- help='Select a curve for this product'
|
|
|
+ help='Selecionar curva para este producto'
|
|
|
)
|
|
|
|
|
|
@api.multi
|