Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
4 Replies
2174 Tampilan

Hello,


In Odoo, when you add a product in an SO, you click on "add product", then your start to write the product ref or description in the first column. When you do it, odoo shows the products that contains the reference you are writing, and you can click on the product you want to add.

I would like to modify the proposed text, not to show only the reference and the description, but also to show additional information such as available quantity.


I have Odoo 12 and studio.


Thanks for your help

Adrien

Avatar
Buang
Penulis

Could you please drive me for this modification. I am on a SO. I open studio and then I select "Edit list view". I click on the first column. Which are the next steps please ?

It cannot be done from the studio. You need to create your custom module and override the name_get method and add the fields of the product you want to display.

Jawaban Terbai

Yes, you can do it using the name_get method in which you can add the content you want to display in the product m2o dropdown.



Avatar
Buang
Jawaban Terbai

You can inherit name_get method on product.product model and append as your required new fields.

Avatar
Buang