add_product.rst 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ********************
  2. Adding a new product
  3. ********************
  4. The Product Configurator makes it easy for you to add configurable products in just a few steps. In the rows below we will explain the entire process of adding a product that can be configured.
  5. Defining a configurable product
  6. ===============================
  7. The first thing we need to do is navigate to **Sales** tab in the back-end and afterwards under the **Configurable Products** section we select **Configurable Templates** and click the **Create** button.
  8. .. image:: images/adding_product1.png
  9. :align: center
  10. :alt: alternate text
  11. .. note::
  12. If you already have products in the database and wish to make them configurable just click on the form button with the wrench icon on the top right
  13. .. image:: images/config_button_on.png
  14. :align: center
  15. :alt: alternate text
  16. After we have clicked on the **Create** button in the first section we are now given Odoo's standard product form view. When we are done with naming our product and setting all the relevant information we can move on to the **Variants** tab inside the form.
  17. Adding attributes and values
  18. ============================
  19. .. note::
  20. If you are already running the system as an Administrator you will have access to the Product Variants and Product Configurator from the start. In order for other users to gain access you must add them to the Product Configurator group which will activate Product Variants as well.
  21. To do this you must first activate Odoo's *Developer mode* as an Administrator. This is done by cliking in the right upper corner in the backend where the Administrator panel is located. Select **About** from the dropdown panel a pop-up window will appear. On the new opened pop-up window click the **Activate the developer mode**.
  22. After the *Developer mode* is activated you must now navigate to the **Settings** tab and from the **Users** menu on the left click **Users**. Select your desired user and assign him the Product Configurator group.
  23. Every configurable product starts with the population of the *Attributes* table. The attributes inside the *Variants* tab are used to add all the possible options of the product. When a regular product has attributes set it will automatically generate all possible combinations on saving. However this is often a unwanted behavior and is inhibited by configurable products.
  24. We recomand adding data to the *Attributes* table by planing and analysing your product first. Include all possible options from the start, for example if colors, sizes and shapes the attribute table can be populated like this:
  25. =============== =============================
  26. **Attributes** **Attibute Values**
  27. --------------- -----------------------------
  28. Color Red, Blue, Green
  29. Size Small, Medium, Large
  30. Shape Square, Circle
  31. =============== =============================
  32. The **Requierd** field makes sure that the configuration process of the product cannot finish until it a value has been provided for the specific attribute. Also depending on the configuration interface it might also enforce client-side validation. This prevents users from proceeding to the next step until setting a value for the attribute in question.
  33. The **Multi** field marks the ability to store more than one value for the attribute. In our demo instance it is used for the car's Optionals (Sunroof, Tow Hook etc)
  34. The **Custom** field determines if the attribute allows values other than the ones provided. These are entered by the user in the configuration interface and can be also restricted to certain field types and even values. More on Custom values here (link)
  35. .. image:: images/conf_steps1.png
  36. :align: center
  37. :alt: alternate text