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

i want to change employees menuitm to be like, let's say 'new_item"

i have created a new module and in which i  declared a xml file with this content 

    <?xml version="1.0" encoding="utf-8"?>

        <odoo>

           <data>

                <record id="hr.menu_hr_employee_user" model="ir.ui.menu">

           <field name="name">New Emp</field>

                </record>

           </data>

      </odoo>


and nothing more, except declaring the name of the same xml file on data ['name_file.xml',]

the problem is, that's nothing change in terms of this menuitem  

any thoughts please !




 

อวตาร
ละทิ้ง
ผู้เขียน

i am working with french interface, i changed it to english and it works just fine, but in french layot that's not working @Niyas Raphy

you might need to update the translation terms

ผู้เขียน คำตอบที่ดีที่สุด

that's what i did, but unfortunatly it didn't work, i ll keep it in eglish. Thanks for help 

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

Hi,

I have tried the same code and it seems working. Are you sure that the module containing this file has been installed in the database that you are checking ?

Also make sure that you have taken the External ID of correct menu, that you are looking to make change.




Thanks

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

Hello Hima,

can you please Try by changing "name" field of action of that menu item "open_view_employee_list_my"

Regards,




Email:   odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

   

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
hr.department view form inheritance แก้ไขแล้ว
3
พ.ค. 20
4772
2
พ.ค. 20
4065
0
พ.ค. 20
1704
1
มิ.ย. 20
3856
0
เม.ย. 20
3404