Skip to Content
Menu
This question has been flagged
3 Replies
2242 Views

I  am new to Odoo and would like to set up my products with a product code and a description. Odoo appears to hold the Description as more important than the Code, whereas for us the Code is equally as important. From what I    understand, Odoo calls the stock code the "internal Reference". 

So, when I    set up each product in Odoo I    would like to set up the Code such as "APP/MJV93" and in a new field, enter the description such as "24-INCH IMAC WITH RETINA 4,5K DISPLAY: APPLE M1 CHIP WITH 8‑CORE CPU AND 7‑CORE GPU" and when I    go into list view of my products I    would like to display the product codes first and then the descriptions in the next column. 

We use the three letter prefix to determine the brand that the product falls in such as APP for Apple, BOS for Bose, Can for Canon, etc

Please advise if this is available to set up without customising the code in Odoo. 

Avatar
Discard
Best Answer

Hey,

You can input your product code/SKU in the internal reference field in the product master.

Also you can categorise your products by brand with the help of "product category" field.

But as you said you want the list view as code first then description that is not possible without studio module.


Thanks & Regards

Kuldeep Joshi
Business Analyst (Odoo India)

Avatar
Discard
Best Answer

Hi   Paul,

You can can change the sequence of fields by editing the list view, Go to Settings, turn on Developer Mode, 

Then Goto Product List view (Inventory > Products)

To edit the list, click the Debugger icon and then Edit View List.





Avatar
Discard
Author

Thanks so much Kiran. I had managed to do this already through the GUI from advice from a previous response, but your answer helped me to achieve the same in the code which was cool to see. Thank you. Is there a way to make a field mandatory in a product set up? I.E. I want to make the internal reference (which I refer to as stock code) a mandatory field for all products.

Yes, you can also edit the form view in the same manner you edited the list view.

Edit the form view and update field "default_code" with required="1"

<field name="default_code" required="1"/>

Author

Thanks Kiran I have now been able to enforce the inclusion of default codes on products when they are created. Thank you. I played around and managed to get the Kamban view to list the default Code first and product name underneath as well as remove the [ ] thank you.

Author Best Answer

HI Kuldeep

Thank you for your prompt response to my question. I    wanted to use the Category field for the category of product such as Mobile device, Laptop Computer, Peripheral etc etc hence I    intend to use the stock code prefix to identify the brand. 

I    have managed to sort my product list to have the internal Reference (Stock Code) show before the Product description in list view. 

Thank you

Avatar
Discard
Related Posts Replies Views Activity
0
Oct 24
58
1
Oct 24
130
2
Aug 24
287
2
Jan 23
1662
3
Aug 24
1315