Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
1203 Vizualizări

Hi,


We've bit of a scenario, where we created hundreds of items (with more than 1000+ variants), and have been using since couple of years. Now, as we want to make our accounting part bit clearer, we've decided to further categorize the inventory accounts bit deeper. This requires us,  to categorize the variant in different product categories as opposed to stick to the one category assigned at product level.


For instance, we've something as of below now.

Product Variants Product Category
Master Item Sub Item 1 Raw Materials
  Sub Item 2 Raw Materials
  Sub Item 2 Raw Materials


Now, what we want to have is, define the product category at variant level (or override the product level category if there's one at variant level).


Product Variants Product Category
Master Item Sub Item 1 Raw Material-A
  Sub Item 2 Raw Material-B
  Sub Item 2 Raw Material-C



Is there any work around to achieve this, without creating new products? Your help will be highly appreciated.


Thanks

Imagine profil
Abandonează
Cel mai bun răspuns

Hello Fleximake,

currently following field "categ_id" is defined in product_template table. you can add same field in product_product table to allow system to define different category for each variant as below.

class ProductProduct(models.Model):
_name = "product.product"

​categ_id = fields.Many2one(
​'product.category', 'Product Category',
​ change_default=True,required=True)

Thanks & Regards,


CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209
Email: info@candidroot.com


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
feb. 24
920
2
aug. 25
435
1
ian. 25
1157
2
iun. 23
3040
0
mai 19
2691