Skip to Content
Menu
This question has been flagged
2 Replies
1739 Views

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,

Avatar
Discard
Best Answer

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.

Avatar
Discard
Best Answer

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
 
 
 

 

 


Avatar
Discard
Related Posts Replies Views Activity
2
Aug 16
5364
5
Feb 25
12828
1
Dec 24
2275
0
Aug 24
2073
1
Aug 24
1740