تخطي للذهاب إلى المحتوى
أودو القائمة
  • تسجيل الدخول
  • جرب مجاناً
  • التطبيقات
    المالية
    • المحاسبة
    • فوترة
    • النفقات
    • جدول البيانات (BI)
    • المستندات
    • توقيع إلكتروني
    المبيعات
    • إدارة علاقات العملاء
    • المبيعات
    • نقطة البيع للمتاجر
    • نقطة البيع للمطاعم
    • الاشتراكات
    • تأجير
    المواقع الإلكترونية
    • أداة بناء المواقع الإلكترونية
    • متاجر إلكترونية
    • مدونة
    • المنتدى
    • دردشة مباشرة
    • التعليم الإلكتروني
    سلسلة التوريد
    • المستودعات
    • التصنيع
    • إدارة دورة حياة المنتج
    • المشتريات
    • الصيانة
    • الجودة
    الموارد البشرية
    • موظفون
    • التوظيف
    • إجازة عمل
    • التقييمات
    • الإحالات
    • تطبيق الأسطول
    التسويق
    • التسويق الإجتماعي
    • التسويق عبر البريد الإلكتروني
    • التسويق عبر الرسائل النصية
    • فعاليات
    • أتمتة التسويق
    • الاستطلاعات
    الخدمات
    • المشاريع
    • الجداول الزمنية
    • الخدمة الميدانية
    • مكتب المساعدة
    • التخطيط
    • مواعيد
    اﻹنتاجية
    • مناقشة
    • الموافقات
    • إنترنت الأشياء "IoT"
    • بروتوكول ربط المحادثات الصوتية عبر الإنترنت
    • المعرفة
    • WhatsApp
    التطبيقات الخارجية ستوديو أودو منصة أودو السحابية
  • قطاعات الأعمال
    البيع بالتجزئة
    • متجر كتب
    • متجر ملابس
    • متجر أثاث
    • متجر بقالة
    • متجر معدات
    • متجر ألعاب
    الطعام والضيافة
    • بار وحانة
    • المطعم
    • مطعم للوجبات السريعة
    • نزل للضيوف
    • موزّع مشروبات
    • فندق
    العقارات
    • وكالة عقارات
    • شركة هندسة معمارية
    • البناء
    • إدارة العقارات
    • العناية بالحدائق
    • اتحاد مُلاّك العقارات
    استشارة
    • مؤسسة محاسبية
    • شريك أودو
    • وكالة تسويقية
    • منشأة قانونية
    • استقطاب المواهب
    • التدقيق والتوثيق
    التصنيع
    • الأقمشة
    • معدني
    • الأثاث
    • الطعام
    • مصنع خمور
    • هدايا الشركات
    الصحة واللياقة البدنية
    • نادي رياضي
    • متجر نظارات
    • مركز لياقة بدنية
    • الممارسون الصحيون
    • صيدلية
    • صالون تصفيف الشعر
    التجارة
    • عامل صيانة
    • الأجهزة والمعدات التقنية ودعمها
    • أنظمة الطاقة الشمسية
    • صانع أحذية
    • خدمات التنظيف
    • خدمات التكييف (HVAC)
    غير ذلك
    • منظمة غير ربحية
    • وكالة بيئية
    • تأجير لوحات إعلانية
    • تصوير
    • تأجير دراجات
    • بائع وسيط للبرمجيات
    تصفح كافة قطاعات الأعمال
  • مجتمع أودو
    تعلم
    • دروس
    • التوثيق
    • شهادات
    • التدريب
    • مدونة
    • بودكاست
    قم بتعزيز التعليم
    • برنامج تعليم
    • Scale UP! لعبة الأعمال
    • قم بزيارة أودو
    احصل على البرنامج
    • تحميل
    • قارنْ الإصدارات
    • إطلاق
    تعاون
    • جيت هاب "Github"
    • المنتدى
    • فعاليات
    • الترجمات
    • كنْ شريكاً
    • خدمات الشركاء
    • سجل مكتب المحاسبة الخاص بك
    احصل على الخدمات
    • اعثر على شريك
    • اعثر على محاسب
    • قابل أحد مرشدي الأعمال
    • خدمات التنفيذ
    • مراجع العملاء
    • الدعم
    • الترقيات
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    الحصول على عرض توضيحي
  • الأسعار
  • المساعدة

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • إدارة علاقات العملاء
  • e-Commerce
  • المحاسبة
  • المخزون
  • PoS
  • المشروع
  • MRP
All apps
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
inventory Inventory Invenotry stock.move.line Zebra
حول هذا المنتدى
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
inventory Inventory Invenotry stock.move.line Zebra
حول هذا المنتدى
  1. Inventory
  2. المنتدى

Product custom fields for every serial number

اشتراك

تسلم الإشعارات عندما يكون هناك نشاط في هذا المنشور

لقد تم الإبلاغ عن هذا السؤال
inventory
2 الردود
3136 أدوات العرض
الصورة الرمزية
Maria Bleta

Dear Odoo forum,


I want to be able to create custom fields for my product

But the custom fields I want need to be on the serial number level

with this I mean I want to be able to input several custom fields, for every serial number, and those would have different values

I will give you an example:

Fields:

Serial Number, PIN (custom field), PUK (custom field), Phone number (custom field)

So, for example:

SN: 00001, PIN: 1234, PUK: 879456, Phone number: 778945125

SN: 00002, PIN: 4567, PUK: 136547, Phone number: 787456876

10:35

I could not find a way to do this in odoo community.


I am using a self-hosted odoo16 community. I know this can be done because I have seen it with odoo studio for the odoo enterprise version.


Any help on this issue would be greatly appreciated.

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

In Odoo 16 Community, it is possible to achieve custom fields at the serial number level (lot/serial number) by customizing the stock.production.lot model, which is responsible for tracking lots and serial numbers. Although Odoo Studio is not available in the Community version, you can achieve this functionality through custom development. Here's a step-by-step guide:

1. Understand the Model

  • Serial Numbers in Odoo:
    • Serial numbers are stored in the stock.production.lot model.
    • Each serial number is linked to a product.

To add custom fields like PIN, PUK, and Phone Number, you need to extend this model.

2. Extend the Model with Custom Fields

You can create a custom module to add fields to the stock.production.lot model. Here's an example:

Custom Module Code

  1. Create a Module Structure:
    • Navigate to your Odoo addons directory and create a new folder for the custom module, e.g., custom_lot_fields.
    • Add the required __init__.py, __manifest__.py, and models folder.
  2. Define the Custom Fields: In models/stock_production_lot.py:
    from odoo import models, fields
    
    class StockProductionLot(models.Model):
        _inherit = 'stock.production.lot'
    
        pin = fields.Char(string="PIN")
        puk = fields.Char(string="PUK")
        phone_number = fields.Char(string="Phone Number")
    
  3. Add Metadata: In __manifest__.py:
    {
        'name': 'Custom Lot Fields',
        'version': '16.0.1.0',
        'summary': 'Add custom fields for serial numbers',
        'author': 'Your Name',
        'category': 'Inventory',
        'depends': ['stock'],
        'data': [
            'views/stock_production_lot_views.xml',
        ],
        'installable': True,
        'application': False,
        'auto_install': False,
    }
    
  4. Add Custom Fields to the Serial Number Form View: In views/stock_production_lot_views.xml:
    <odoo>
        <record id="view_stock_production_lot_form_inherit" model="ir.ui.view">
            <field name="name">stock.production.lot.form.inherit</field>
            <field name="model">stock.production.lot</field>
            <field name="inherit_id" ref="stock.view_production_lot_form"/>
            <field name="arch" type="xml">
                <xpath expr="//form/sheet" position="inside">
                    <group>
                        <field name="pin"/>
                        <field name="puk"/>
                        <field name="phone_number"/>
                    </group>
                </xpath>
            </field>
        </record>
    </odoo>
    
  5. Install the Module:
    • Restart your Odoo server.
    • Navigate to Apps, search for Custom Lot Fields, and install the module.

3. How to Use

  1. Navigate to Inventory > Products > Lots/Serial Numbers.
  2. Open or create a new serial number.
  3. You will see the new fields PIN, PUK, and Phone Number on the form view.
  4. Input unique values for each serial number.

4. Alternative Approaches

If you're not comfortable with module development:

  • Use Odoo Studio (Enterprise Only): For Enterprise users, you can directly add fields to the stock.production.lot model using Studio.
  • Use the CSV Import/Export:
    • Export serial numbers to a CSV.
    • Add custom fields (e.g., PIN, PUK, Phone Number) to the CSV.
    • Import the updated CSV back into Odoo.

5. Testing and Debugging

  • Test the Fields:
    • Ensure that each serial number can have different values for the custom fields.
    • Verify that the fields are displayed in the desired locations.
  • Debug Errors:
    • Check server logs for errors during development.
    • Use Odoo's Developer Mode to inspect the form view and ensure proper field rendering.

Outcome

By following these steps, you can create custom fields for serial numbers in Odoo Community. These fields will allow you to input values like PIN, PUK, and Phone Number for each serial number.

If you need further help with development or installation, let me know!

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

Hey, 


I am not sure if you are still looking for it, but Odoo 18 provides this in native. Please consult : 

https://www.odoo.com/fr_FR/event/odoo-experience-2024-4662/track/traceability-enhanced-master-the-use-of-properties-on-lots-and-serial-numbers-for-unmatched-accuracy-6653

Cheers

0
الصورة الرمزية
إهمال
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!

أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!

تسجيل
المنشورات ذات الصلة الردود أدوات العرض النشاط
How to populate inventory very 1st time using Odoor? I'm lost
inventory
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
2
أكتوبر 25
4831
Best Practices for Implementing Inventory Management in Odoo for a Café
inventory
الصورة الرمزية
الصورة الرمزية
1
أبريل 25
3863
Foro in Spanish, i want to connect whit people spoke Spanish
inventory
الصورة الرمزية
0
أكتوبر 25
2898
Customizing Odoo to Link Serial Numbers for Camera Kit Products
inventory
الصورة الرمزية
0
يونيو 24
3102
Odoo Enterprise v16 User Portal for Viewing Inventory Stock Qty & Locations
inventory
الصورة الرمزية
0
نوفمبر 23
3028
المجتمع
  • دروس
  • التوثيق
  • المنتدى
مصدر مفتوح
  • تحميل
  • جيت هاب "Github"
  • المشغل الآلي رنبوت
  • الترجمات
خدماتنا
  • استضافة أودو إس إتش
  • الدعم
  • الترقية
  • التطويرات المخصصة
  • التعليم
  • اعثر على محاسب
  • اعثر على شريك
  • كنْ شريكاً
معلومات عنا
  • شركتنا
  • أصول العلامة التجارية
  • اتصلْ بنا
  • الوظائف
  • فعاليات
  • بودكاست
  • مدونة
  • عملاء
  • قانوني • الخصوصية
  • الحماية
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

أودو هو عبارة عن مجموعة من تطبيقات الأعمال مفتوحة المصدر التي تغطي جميع احتياجات شركتك، مثل: إدارة علاقات العملاء والتجارة الإلكترونية والمحاسبة والمخزون ونقاط البيع وإدارة المشاريع وما إلى ذلك.

ما يجعل من أودو مميزاً هو هدفه بأن يكون سهل الاستخدام للغاية ومتكاملاً تمامًا في الوقت ذاته.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now