Odoo 18 Development: Auto-Generate Product Internal Reference Based on Product Category
In this Odoo 18 tutorial, we show you how to automatically generate a unique internal reference (default_code) for products based on their product category. This customization enhances product management by ensuring your SKUs follow a structured and category-based format like Rem0001, Inc0002, and Over0003.
🔧 What You’ll Learn:
✅ How to override the create() method in product.template
✅ How to create and use Odoo sequences for auto-numbering
✅ How to link product categories to prefixes (like Rem, Inc, Over)
✅ How to fall back to smart numbering if a sequence is missing
✅ How to raise friendly validation errors if no category is selected
👍 Like | 💬 Comment | 🔔 Subscribe for more Odoo 18 Customization Tutorials
📢 Don’t forget to share it with fellow Odoo developers!
🟣 Meet Odoo 18: https://www.odoo.com/blog/odoo-news-5...
💻 Visual Studio Code Download Link: [https://code.visualstudio.com/download]
🟢 Odoo18 Download Link: https://www.odoo.com/page/download
📂 Code Repository: [https://github.com/odooistic/youtube_...]
🔗 Module code: https://github.com/ffaemy/my_odoo_modules search for product_reference
Видео Odoo 18 Development: Auto-Generate Product Internal Reference Based on Product Category канала Odooistic
🔧 What You’ll Learn:
✅ How to override the create() method in product.template
✅ How to create and use Odoo sequences for auto-numbering
✅ How to link product categories to prefixes (like Rem, Inc, Over)
✅ How to fall back to smart numbering if a sequence is missing
✅ How to raise friendly validation errors if no category is selected
👍 Like | 💬 Comment | 🔔 Subscribe for more Odoo 18 Customization Tutorials
📢 Don’t forget to share it with fellow Odoo developers!
🟣 Meet Odoo 18: https://www.odoo.com/blog/odoo-news-5...
💻 Visual Studio Code Download Link: [https://code.visualstudio.com/download]
🟢 Odoo18 Download Link: https://www.odoo.com/page/download
📂 Code Repository: [https://github.com/odooistic/youtube_...]
🔗 Module code: https://github.com/ffaemy/my_odoo_modules search for product_reference
Видео Odoo 18 Development: Auto-Generate Product Internal Reference Based on Product Category канала Odooistic
custom module odoo custom module odoo 18 odoo18 development odoo18 customization learn odoo18 odoo 18 tutorial odoo 18 guide odoo videos odoo mate odoo odooapp odoo18customization #elonmusk #odooappdevelopment #odooinheritance odoo view inheritance odoo inheritance #odoo model inheritance #fabian #odooviews #odoo fornview #kanban view #callender view #odoo list view ##odoo action #odoo menu #internal reference #product default code #odoo sequence
Комментарии отсутствуют
Информация о видео
1 апреля 2025 г. 16:45:04
00:22:19
Другие видео канала