Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
4 Ответы
2179 Представления

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

Аватар
Отменить
Автор

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.

Лучший ответ

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.



Аватар
Отменить
Лучший ответ

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

Аватар
Отменить