[NODISK] @ddm: Got no floppy disk so I push here
bzr revid: fme@openerp.com-20131018130034-vo6rgndvzv1ni6nu
This commit is contained in:
parent
a93a0b384b
commit
0373662dd4
|
@ -30,8 +30,9 @@ class product_pricelist(osv.Model):
|
||||||
|
|
||||||
|
|
||||||
class product_template(osv.Model):
|
class product_template(osv.Model):
|
||||||
_inherit = "product.template"
|
_inherit = ["product.template", "website.seo.metadata"]
|
||||||
_order = 'website_sequence desc, website_published, name'
|
_order = 'website_sequence desc, website_published, name'
|
||||||
|
_name = 'product.template'
|
||||||
|
|
||||||
def _website_url(self, cr, uid, ids, field_name, arg, context=None):
|
def _website_url(self, cr, uid, ids, field_name, arg, context=None):
|
||||||
res = {}
|
res = {}
|
||||||
|
@ -50,9 +51,6 @@ class product_template(osv.Model):
|
||||||
'website_style_ids' : fields.many2many('website.product.style','product_website_style_rel', 'product_id', 'style_id', 'Styles'),
|
'website_style_ids' : fields.many2many('website.product.style','product_website_style_rel', 'product_id', 'style_id', 'Styles'),
|
||||||
'website_sequence': fields.integer('Sequence', help="Determine the display order in the Website E-commerce"),
|
'website_sequence': fields.integer('Sequence', help="Determine the display order in the Website E-commerce"),
|
||||||
'website_url': fields.function(_website_url, string="Website url"),
|
'website_url': fields.function(_website_url, string="Website url"),
|
||||||
'website_meta_title': fields.char("Website meta title", size=70, translate=True),
|
|
||||||
'website_meta_description': fields.text("Website meta description", size=160, translate=True),
|
|
||||||
'website_meta_keywords': fields.char("Website meta keywords", translate=True),
|
|
||||||
}
|
}
|
||||||
_defaults = {
|
_defaults = {
|
||||||
'website_size_x': 1,
|
'website_size_x': 1,
|
||||||
|
|
Loading…
Reference in New Issue