跳至内容
菜单
此问题已终结
4 回复
6860 查看

1)I Have a custom module and i want to change the name of  menu action name 'meeting' to 'scheduler'

2)I want to change the page string 'Meeting Details' to Scheduler Details

please help me how to get the answer.Thanks in advance.

形象
丢弃
编写者

thanks hedi

最佳答案

 In v11 I got the error,

"""ValueError: View inheritance may not use attribute 'string' as a selector."""

  <xpath expr="//page[@name='sales']" position="attributes">

    <attribute name="string">Purchase</attribute> 

  </xpath>

So, I used the page string position to work with it 

<xpath expr="//page[1]" position="attributes">

    <attribute name="string">Purchase</attribute> 

</xpath>

形象
丢弃
最佳答案

<record id="module.action_name" model="ir.actions.act_window">

      <field name="name">scheduler</field>

</record>


<page string="Meeting Details" position="attributes">

     <attribute name="string">Scheduler</string>

</page>

形象
丢弃
最佳答案

 1- <record model="ir.ui.menu" id="id_of_the_menu">

         <field name="name">scheduler</field>          

    </record>


2- inherit the form and modify the form string to Scheduler Details

形象
丢弃
相关帖文 回复 查看 活动
4
9月 17
3155
2
4月 24
4932
3
4月 21
5580
3
10月 19
12632
0
10月 19
2852