Odoo 17 Variant Fields

Заказчик: AI | Опубликовано: 29.12.2025
Бюджет: 15 $

I’m running Odoo 17 and need two very specific adjustments inside the product model stack. Task 1 – Variant-specific custom fields My product templates carry several custom fields—text, numerical, and dropdown types—that I rely on for internal workflows and reporting. They currently sit on product.template, but I now need them to live on product.product so each variant can hold its own values. While moving them, they still have to appear (and be editable) in the usual product-creation form view where I pick attributes; in other words, the user experience must stay exactly the same, the data model changes underneath. Task 2 – Independent display names for variants By default, all variants inherit the template’s name. I want each product.variant to store its own display_name without overwriting the shared template name, ideally through a small override or mix-in that respects Odoo’s translation and search behaviors. Constraints & context • No other custom modules touch these fields, so you can work against vanilla Odoo 17 core. • The solution must survive future upgrades via standard Odoo mechanisms (no monkey-patching). • I’ll verify success by creating a new template, adding variants, filling in the moved fields from the template form, and confirming that each variant keeps its own values and display name while the template name remains unchanged. Deliverables 1. Updated models, views, and XML/JS as needed. 2. Migration script to move existing data from product.template to product.product. 3. Brief README explaining the changes and how to install or update the module. If this sounds straightforward to you, let’s get it done.