Skip to Content

Custom Form for Product Many2One Field Creation

This module customizes the behavior of Many2One product fields by replacing the default "Create and Edit" popup with a custom, configurable form
June 5, 2025 by
Custom Form for Product Many2One Field Creation
Silverdale Technology, Somroo Hassaan
| No comments yet

Creating products directly from documents like Sales Orders or Purchase Orders can often be repetitive and time-consuming, especially when essential fields are missing in the standard "Create and Edit" popup. This module introduces a powerful enhancement to Odoo’s product creation workflow, by replacing the default product creation popup with a custom, configurable form, tailored for quick, structured product entry.

Whether you’re managing direct material intake or needing to add a product mid-transaction, this module ensures you capture all the required fields up front, while keeping your financial, inventory, and procurement processes intact.

Key Features & Benefits:

Custom Product Form on "Create and Edit"

  • Overrides the default Many2One product creation popup with a custom form view.
  • Collects all essential product data in one step, avoiding incomplete records.

Configurable via Settings

  • Admins can define which form view to use for any Many2One field using settings.
  • Flexible for different models—select form views dynamically by model.

Streamlined Product Creation in Sales and Purchase Orders

  • Adds a popup form for adding new products directly from SO or PO lines.
  • Required fields:
    • Product Name
    • Internal Reference
    • Cost
    • Sales Price
    • Vendor
    • Lead Time
    • Unit Price

Accurate Classification & Valuation

  • Ensures newly created products are correctly classified for:
    • Inventory valuation
    • BoM structures
    • Costing and financial reporting
  • Prevents disruption to manufacturing, sales, and inventory processes.

Boosts Productivity

  • Eliminates the need to switch to the product master form manually.
  • Ensures products created on-the-fly are immediately usable in the transaction.

Example Use Case:

A purchasing officer is creating a Purchase Order for a supplier. The product hasn’t been set up yet.

🔹 Before the module:

  • Clicking “Create and Edit” opens the full product form, requiring unnecessary fields.
  • The form is overwhelming and delays the PO creation process.

🔹 With this module:

  • Clicking “Create and Edit” opens a streamlined, tailored popup with only the required fields.
  • They enter Product Name, Cost, Vendor, and Internal Reference.
  • The product is saved and instantly available in the PO line without leaving the page.

Similarly, in Sales Orders, sales reps can quickly create products with the correct cost and pricing, saving time and ensuring consistency in financials.

Summary:

This module enhances Odoo’s product management by enabling custom product creation forms for Many2One fields, with tailored fields for Sales, Purchase, and Inventory workflows.

By allowing configurable forms and popup-based product entry in SOs and POs, it ensures fast, accurate product creation, aligns with financial reporting needs, and maintains data consistency across operations.

Ideal for businesses that frequently create products mid-process, this tool ensures every product starts with the right data, without slowing down the workflow.

Share this post
Sign in to leave a comment