[IMP] website_sale: product.public.category publish feature is useless

This commit is contained in:
Jeremy Kersten
2018-08-20 18:07:59 +02:00
parent 50217184d2
commit ac58a0ef87
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ class ProductPricelist(models.Model):
class ProductPublicCategory(models.Model):
_name = "product.public.category"
_inherit = ["website.seo.metadata", "website.published.multi.mixin"]
_inherit = ["website.seo.metadata", "website.multi.mixin"]
_description = "Website Product Category"
_order = "sequence, name"
+1 -1
View File
@@ -270,7 +270,7 @@
<template id="categories_recursive" name="Category list">
<li class="nav-item">
<a t-att-href="keep('/shop/category/' + slug(c), category=0)" t-attf-class="nav-link#{' active' if c.id == int(category or 0) else ''}">
<span t-field="c.name"/> <span t-if="not c.website_published" class="text-danger">(Unpublished)</span>
<span t-field="c.name"/>
</a>
<ul t-if="c.child_id" class="nav nav-pills flex-column nav-hierarchy">
<t t-foreach="c.child_id" t-as="c">