コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
853 ビュー

How do you give each product variant its own ASIN? For instance, I have a product with 6 total variants - how can I assign each variant its own ASIN?

アバター
破棄
最善の回答

Hi Colby,

You will have to make a small customization for adding ASIN as this feature is not available by default in odoo 17.

Enable product variants inside Inventory -> Configuration -> Settings

Now you may add a Field for ASIN using a custom module or from Studio, If you prefer a custom module, check the code below or Add field from studio

from odoo import models, fields


class ProductTemplate(models.Model):

    _inherit = 'product.template'


    asin = fields.Char(string="ASIN")


class ProductProduct(models.Model):

    _inherit = 'product.product'


    asin = fields.Char(string="ASIN")


Now for each products, you can add a unique ASIN and save it.

Thanks


アバター
破棄
関連投稿 返信 ビュー 活動
2
8月 25
472
3
6月 25
2408
4
7月 25
1156
1
11月 24
1558
2
6月 23
3074