Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
871 Переглядів

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


Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
серп. 25
524
3
черв. 25
2436
Change resume view Вирішено
4
лип. 25
1177
1
лист. 24
1586
2
черв. 23
3101