Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
1751 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
srp 16
5378
5
úno 25
12851
1
pro 24
2345
0
srp 24
2095
1
srp 24
1760