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

I'm trying:

<xpath expr="//field[@name='field_1'] | //field[@name='field_2']" position="attributes">
<attribute name="required">1</attribute>

</xpath>

but, only one of the two field take the 'required' attribute,

Greetings.

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

check this one.

https://www.odoo.com/forum/help-1/question/qweb-report-check-if-attribute-exist-81248

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