İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
1709 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Ağu 16
5329
5
Şub 25
12797
1
Ara 24
2216
0
Ağu 24
2041
1
Ağu 24
1719