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

Hello

am trying to find a module or make that can do 

Internal reference as unique and required or (Mandatory Field)   

When crating Product Variant Default Code it should inherit the product Default code with the variant value

Let say a Product: TABLE, Internal reference: T1234, A variant of color: red blue

When the variant crated what I want to get is

Product Variant Default Code: T123-red, Product Name: Table

Product Variant Default Code: T123-Blue, Product Name: Table

it is well unique well inherited Not sequential or empty or any other.

Thanks


الصورة الرمزية
إهمال
الكاتب أفضل إجابة

Thanks all  

am going for the customization   

the thing is i don't want the sequencing or auto generating  product default code 

only on the  variant creation default product code to be inherited product Default code form the template.Product_Default_code to product.product_default_code || variant  

what am saying anyone can help me coding this  

Just for clarification :-

Product Name : Air Filter,   internal reference: 1901010, Variant: Type D & E

automatically the variant creation would be 

internal Reference    Product Name

1901010-D                      Air Filter 

1901010-E                       Air Filter

thanks.


الصورة الرمزية
إهمال
أفضل إجابة

You could try the following approach.

  1. Make Internal Reference required on the Product Template

  2. Define a sequence (with no gaps) and use it to assign the sequence number to Internal Reference using an Automated Action

  3. Define an Automated Action on Product Variant to set the Internal Reference value based on the criteria you need. 

الصورة الرمزية
إهمال
أفضل إجابة

Hi,

There is a lot of modules available in the Odoo app store for the product code generation, but it does not match with what exactly you are looking for. For your requirement I think, you have to customize the system accordingly as per the need.

Anyway have a look at this module: Product Code


Thanks

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يناير 20
2809
1
يوليو 19
3229
1
ديسمبر 21
2783
0
سبتمبر 20
3199
0
يونيو 20
5448