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

I have something like this in my view for a custom module:

 <field name="arch" type="xml">
            <xpath expr="/form/sheet/notebook/page[@string='Contacts']" position="after">
                <page string="External">
                    <iframe src="http://www.example.com?email=__EMAIL_SHOULD_GO_HERE__"></iframe>               
              </page>
        </xpath>
  </field>

where __EMAIL_SHOULD_GO_HERE__ currently is, I need to insert the partner's email. What is the best way to get that value in there?

The only examples I've found use something like:

<field name="email"></field>

Thanks.

Ảnh đại diện
Huỷ bỏ
Tác giả

If you wanted to insert the partner's name into the xml, in the place where "XXXXXXYYYYYYYYYZZZZ" currently is, how would you do that?

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 15
3316
6
thg 9 17
8201
1
thg 12 16
5699
1
thg 3 15
4441
2
thg 3 15
9944