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

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
4
ก.ย. 17
3149
2
เม.ย. 24
4912
3
เม.ย. 21
5553
3
ต.ค. 19
12591
0
ต.ค. 19
2835