Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
4303 Widoki

Hello, I am new to Odoo development. I was wondering how we may begin to solve the below scenario? 

Version: Odoo 11

Scenario: We have a T-Shirt with Three colour variants: Black, Blue, Pink. Our Company decides to discontinue Pink as it does not sell well. We wish to prevent additional purchasing Pink so we can sell remaining stock as usual before archiving said variant once stock runs out.

Action: From Product Variants page we edit T-Shirt (Pink) and remove the tick from "Can be Purchased"

Expected: Can be Purchased is deselected on Pink. Black and Blue still have Can be Purchased selected.

Actual: Can be Purchased is a Template option so all three variants have Can be Purchased deselected.

Awatar
Odrzuć
Najlepsza odpowiedź

Simple way to solve this problem is to remove Vendor from the Product Variant(Pink).So that we can only create purchase order manually for T-shirt(pink).

Awatar
Odrzuć
Najlepsza odpowiedź

Check this module: https://www.odoo.com/apps/modules/10.0/product_variant_supplierinfo/

You could adapt and install this module for Odoo 11.0 and then delete the supplier for your variant "Pink", or you can use it as a blueprint for your own module.

Awatar
Odrzuć
Najlepsza odpowiedź

As you said, can be purchased is a template field and it will be removed from all product variants.

What you can do is removing the order rules for Pink so the system will not kick any purchase orders for it but you will be able to create Purchase Order manually for it.

Or if you don't have any stock qty, you can deactivate it.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
lip 24
1659
1
cze 24
4210
1
paź 23
9659
1
paź 23
98
1
sie 23
2193