Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
3852 Lượt xem

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"

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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 [

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 5 20
4526
5
thg 5 20
2187
0
thg 4 20
3317
2
thg 12 22
3107
1
thg 6 22
6277