Skip to Content
Menu
This question has been flagged

Hi, we are new to Odoo so I might be asking a basic question. I don't need an exact answer to make it work though it will be helpful. I just need to know if this is possible and potentially how to do it.

We are in process of setting up an Odoo Enterprise (not yet bought). We do plan to buy success pack however this is pre-sales.

Problem

What we need is a way for products to show on certain selected  websites. So say we create 4 websites. Now we want a product to only show on Website1 and Website3. Similarly some products may show on 3 or all 4 websites.

I know we have an option to select either none (so product shows on all) or select any one and product shows on selected site.

What we have done

To  achieve this we used Studio to add a field called "Websites" which is a many-to-many and widget for checkboxes so I am able to select the website. We further wrote a sample module to override WebsiteSale class and change the query going in to only show selected products and that works.

However we are seeing sitemap.xml and product page still opening. There may be other places as well.

Question

Is there an alternate approach to achieve the same? Is there a module that will allow us to do thisWill really appreciate any way you can guide us towards this.​

Thanks
Amit

Avatar
Discard
Author

Haresh, Thanks for your reply. I am not sure how this helps. Are you suggesting we setup multiple companies? Could you please elaborate on your recommendation?

Hi Amit, How is your progress on this? I actually need this function too. I am not quite a coding guy but I have some hint that may helps. I bought a multi website module long time ago in which you can select one or several of the websites for categories. I see it differs the websites by SQL sentence. It was working much better than the odoo12 default multi-website function. I can create one company with multi website. Category-Website are Manytomany selection which can achieve product-website manytomany quite easily since one product can select several categories. But due to speed and other factors, we had abandoned it. The module link as bellow:

https://apps.odoo.com/apps/modules/10.0/pr1_multi_website-shop/

If you are interested, I can send you for learning.

Hi Amit,

did you find a solution? I would need this as well.. :)

Author Best Answer

Hi Paresh. Thanks for your answer. For some reason this website is asking me to have more Karma points to comment on your answer so replying here.

True we can setup variants. We did consider this. However in reality we have a much larger setup.

We have about 65000 total SKUs. Many of those have variants so we will essentially need variants of variants (not sure how to do that). And then we will need to manage their inventories.

Not to mention we also have around 70 different websites for this task so the number of variants will be quite staggering.

To complicate this further, we get around 8000-10000 products changed every 4-6 months.

I would really prefer if we do this without variants as I can't imaging handling so many variants.

Thanks
Amit

Avatar
Discard

Another option might be to leverage the eCommerce categories (Website > Configuration > eCommerce Categories). A category can be associated with a specific website. You could create website specific eCommerce categories and associate each eCommerce category with the products that need to appear on it's corresponding website. A product can be associated with multiple eCommerce categories (Categories on the eCommerce tab of the Product template).

Author

Paresh, Thanks for reply. I am not sure how this will work. We tried this.

We took 4 products: P1, P2, P3, P4.

We created two sites: S1, S2.

We created two categories: C1 (tied to S1), C2 (tied to S2).

Now P1, P2 are in Category C1.

P3, P4 are in Category C2.

On Site S1 when I go to Show I see all products. So is there a step I need to do to make this work?

Best Answer

You can do this using out of the box functionality by defining product variants based on a product attribute called "Website" and associating the website at the product variant level.

Avatar
Discard

Apparently it is not possible this way (without development, only studio)

when yo select one website on a variant, Odoo adds the same website on the all variants.

Is there another way?

thanks for commenting,

roeland

Related Posts Replies Views Activity
0
Nov 24
43
2
Jun 24
12212
3
Jan 24
623
3
Nov 23
621
1
May 22
2018