Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
2201 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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.

Câu trả lời hay nhất

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.



Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ