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

i want to change just the name of hr.department form, i declared a view form like this in my custom module.


         record id="view_hr_department_inherit" model="ir.ui.view">

                    <field name="name">view.hr.department.inherit</field>

                    <field name="model">hr.department</field>

                    <field name="inherit_id" ref="hr.view_department_form"/>

                    <field name="arch" type="xml">

                        <xpath expr="//form@name='Department']" position="replace" >

                        <field name="name" string="New_name"/>

                        </xpath>

                     </field>

            </record>


and i receive this error 

                odoo.tools.convert.ParseError: "Invalid expression"

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

Hi Ermin thanks for your replay 

i want change just the displaying item that shown in the left up screen when i click on the department menu 

yeah, i am aware of the missing [

อวตาร
ละทิ้ง

If you are aware, then you do not receive this error. Please edit your question so it is not misleading.

คำตอบที่ดีที่สุด

Watch your brackets, there is a missing [.

In addition I'm not sure if you get the desired result when you replace a complete form element with only a field name element. You may want to only replace the field name element.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
hr.department view form inheritance แก้ไขแล้ว
3
พ.ค. 20
4746
5
พ.ค. 20
2321
0
พ.ค. 20
3522
2
ธ.ค. 22
3326
How can I return a record after deletion แก้ไขแล้ว
1
มิ.ย. 22
6551