跳至內容
選單
此問題已被標幟
1 回覆
1172 瀏覽次數

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
917
2
8月 25
374
1
1月 25
1144
2
6月 23
2982
0
5月 19
2645