Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
4750 Visualizzazioni

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.

Avatar
Abbandona
Risposta migliore

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).

Avatar
Abbandona
Risposta migliore

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.

Avatar
Abbandona
Risposta migliore

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.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
ago 25
491
2
lug 24
2713
1
giu 24
5172
1
ott 23
10900
1
ott 23
98