Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
1669 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
2
Agu 16
5279
5
Feb 25
12762
1
Des 24
2167
0
Agu 24
2020
1
Agu 24
1695