Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
7430 มุมมอง

Hello Folks.

I need inherit a view and change the string name of the tree:

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="product_template_tree_view" model="ir.ui.view">
<field name="name">product.template.product.tree</field>
<field name="model">product.template</field>
<field name="arch" type="xml">
<tree string="Product" multi_edit="1">
<field name="product_variant_count" invisible="1"/>



I need create a inherit view to change the string = "Product" for "Product confidentials" , Could u please help me ?

1 - I tried using the xpath and position ="attributes" but was not possible

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Try the following code:

<xpath expr="//tree" position="attributes">
<attribute name="string">Product Confidentials</attribute>
</xpath>

But I think, it won't show the string. You will have to change the name of the menu to show your string.


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi! Anyone can solve this problem?

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Hello Sudhir

Thank you for your reply

I put this there and upgraded the module but did not change the string message.

But in this case I do not want to change the Menu name but only the string name for the tree

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ส.ค. 22
11922
2
ก.พ. 19
4119
2
มิ.ย. 16
6010
2
พ.ย. 23
3508
3
พ.ย. 22
7443