تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4 الردود
2182 أدوات العرض

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.

الصورة الرمزية
إهمال