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

I have created custom module after but Create New button on top of form not showing i already add the button code on xml view ? 

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

Ok can we use validation in the xml view input fields?? 

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

Hi

Please try this example 

<record id="model_form" model="ir.ui.view">
<field name="name">model.model.form</field>
<field name="model">model.model</field>
<field name="arch" type="xml">
<form>
<header>
<button name="action_confirm" type="object"
string="Confirm"
states="draft"/>
</header>
</form>
</field>
</record>


Also define the action_confirm function inside the model .


Regards 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 24
2662
1
thg 12 24
4064
0
thg 11 24
1667
2
thg 7 24
3403
0
thg 4 24
2197