Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How to unpublish only one variant from product template into website shop ?

Emipro Technologies Pvt. Ltd.
on 2/5/15, 6:17 AM 1,474 views

I am seeking for a solution regarding selling products in webshop in Odoo V8.

The product template is having multiple variants lets say, 

  1.    Color : Black and Silver 
  2.    Size : Large, Medium and Small

This will generate total 6 product variants from cross multiplication.

Now, how can I deactivate(unpublish) any one of these product variants from webshop? 

For example : I dont want to publish the product variant - Black color with Medium size. ( Assume that I made a too much sales earlier but now Black Color with Medium size is not available from my supplier indeed, so obviously I don't want to show in website. Because that variant is gonna to have no more sales. )

One of the solution I can see is to uncheck ( Deactivate ) the 'active' field. 

But by doing so it will also not be visible from backend. So I can't see this product in Sales Reports or somewhere else in backend.

Can any one suggest me a favourable solution please ??


Fabrice Henrion (fhe)

--Fabrice Henrion (fhe)--
| 7 7 8
San Francisco, United States
--Fabrice Henrion (fhe)--

Director Odoo USA

Fabrice Henrion (fhe)
On 2/7/15, 9:55 PM

Functionally, it's not possible as of v8.0 because all the fields that have an effect on displaying the variant on the website impact the whole product template, not only the variant. That is the case for the Publish button and the Can Be Sold checkbox.

The only way to do this is technically, by coding a QWeb condition to hide the variant from the page.


Openies Services

--Openies Services--
| 2 2 4
Vadodara, India
--Openies Services--

We provide Odoo Services.

Contact us on : contact@openies.com

Openies Services
On 2/8/15, 1:45 AM

Hello Emipro Technologies,

Technically when you unpublish the product varient, it will unpublish the whole product from the store, because the product varient inherits the product template.
and if you do change in product varient, it will be directly affect on the product template. Unpublish button do the same. 
So solution will be to inactive the product. 
if you want product in the report, you can customize your report accordingly.

Hope this Helps.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

3 follower(s)


Asked: 2/5/15, 6:17 AM
Seen: 1474 times
Last updated: 6/27/16, 7:22 AM