Odoo Hilfe

0

0
6 Antworten
0
Pascal Deplanques Frankreich
10.01.17, 07:52

Hello Ermin,

I'm very interested to have an App name that allow to add extra attributes on products.

I did not find one in the app store.


Thank you very much

Pascal

0
Hielke Brandsma Niederlande
10.01.17, 04:37

Great Mahmou! That's an awsome function! This makes me really happy :)

But .. now I have an extra field called Brand and contains a couple of manufacturers.
Is there a simple way (for a client) to add more options to the field? ie an extra manufacturer.

And now the main problem is still there.. I can't / don't know how to search on these values. I just like to filter out the stock with specifying the brand name and only the products with that brand should show up. In this case he finds nothing :P

0
Mahmou Sekawe Saudi Arabien
09.01.17, 03:43

You can add custom fields and filter on without a heavy experience with development.

Odoo provide a great mechanism allows you create new fields and views.


  • Go to Settings -> Database Structure -> Models -> Search for (product.template) 

  • Open the model

  • Add an item as shown here: https://s30.postimg.org/ywjz9b46p/Screenshot_from_2017_01_09_11_22_23.png

  • Fill the field information as showen here : https://s27.postimg.org/qb19g9umb/Screenshot_from_2017_01_09_11_26_06.png

  • Fill selection option with this value: 

  • [('5','5 KG'),('8','8 KG'), ('10','10 KG')]

What have we done?

  1. Create a new field in Product model with type Selection

  2. We put our options in the fields (8KG, 5KG)

You have too many field types you can read about these types here

https://www.odoo.com/documentation/8.0/reference/orm.html#fields

In your case now (e.g Weight: 8KG) the appropriate type is Selection

Click Save. And then Save the model


Finally you have to edit form view to show the new field.

  • Activate developer mode (Go to Settings -> Activate Developer mode) https://s27.postimg.org/vbppy2nxv/Screenshot_from_2017_01_09_11_38_02.png

  • Open Inventory -> Product -> Open any product

  • Open Developer tool and select Edit Form View https://s30.postimg.org/r5igpgnq9/Screenshot_from_2017_01_09_11_39_52.png

  • Add your field name (x_product_size) to the form view as shown here: https://s24.postimg.org/lon2wvr6t/Screenshot_from_2017_01_09_11_42_25.png


  • <field name="x_product_size" />

The final result will be like this

https://s24.postimg.org/u886843h1/Screenshot_from_2017_01_09_12_07_05.png


You can filter on this field like this:

https://s27.postimg.org/4vd7ujbir/Screenshot_from_2017_01_09_12_10_06.png

0
Avatar

Ermin Trevisan Schweiz

--Ermin Trevisan--
16464
| 8 7 10
Walchwil, Schweiz
--Ermin Trevisan--


Ermin Trevisan Schweiz
09.01.17, 01:40

Products can have attributes and variants based on multiple values of attributes. In the webshop you can activate filtering features for attributes. A brand can also be defined as an attribute or as a category. In addition there are several apps available in the app store to manage brands and additional product information such as manufacturer information etc.

Fragen Sie
Keep Informed
1 Verfolger
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now