Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

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

Avatar
Buang
Jawaban Terbai

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


Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Feb 24
917
2
Agu 25
374
1
Jan 25
1144
2
Jun 23
2982
0
Mei 19
2645