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

I hope this message finds you well.

I am currently using Odoo Community 17 and would like to request a customization for the product list display. At present, the list shows the product prices, but I would like to adjust it to display the following information instead:

  1. Product Name
  2. Product Reference
  3. Product Category

I believe this change will better suit our needs and improve the clarity of our product management. Could you please provide guidance on how to achieve this customization, or let me know if there is a specific module or code adjustment required?

Thank you for your assistance.

Best regards,

الصورة الرمزية
إهمال
أفضل إجابة

Hi,

Please check the code below:


<record id="product_template_tree_view" model="ir.ui.view">
<field name="name">product.template.view.tree.inherit</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_tree_view"/>
<field name="arch" type="xml">
<!-- Replace the entire tree content -->
<xpath expr="//tree" position="replace">
<tree string="Product" multi_edit="1" sample="1">
<header>
<button string="Print Labels" type="object"
name="action_open_label_layout"/>
</header>
<field name="name" string="Product Name"/>
<field name="default_code" string="Product Reference"/>
<field name="categ_id" string="Product Category"/>
</tree>
</xpath>
</field>
</record>


Hope it helps.

الصورة الرمزية
إهمال
أفضل إجابة

go to the settings -> and end of the page you can see activate developer mode
go to the product list view


open the edit view: List
you can add , these 3 lines  below
 
 
 

 

 


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أغسطس 16
5383
5
فبراير 25
12855
1
ديسمبر 24
2365
0
أغسطس 24
2104
1
أغسطس 24
1766