跳至內容
選單
此問題已被標幟
3 回覆
7281 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
8月 22
11793
2
2月 19
3982
2
6月 16
5914
2
11月 23
3348
3
11月 22
7297