跳至内容
菜单
此问题已终结

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

形象
丢弃
最佳答案

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


形象
丢弃
相关帖文 回复 查看 活动
0
2月 24
918
2
8月 25
396
1
1月 25
1147
2
6月 23
3000
0
5月 19
2665