تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
846 أدوات العرض

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
أغسطس 25
457
3
يونيو 25
2384
Change resume view تم الحل
4
يوليو 25
1142
1
نوفمبر 24
1546
2
يونيو 23
3063