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

Beside the save button at the top of the form, I want to put a save button in the bottom of the form, but I don't know what button name (action) should I use because i don't know where to access the top save button at the page header.

Help me,

thanks

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

Yes you can define a new save button

On header put this :

<header>
<button string="Save" type="object" name="save"/>
<header>

On save method on python object put this

def save(self, cr, uid, ids, context):
    return True

You can return in place of True a window action with the actual ID, if you want to leave the edit mode.

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

Can I just use existing save method? Do you know what method they are calling to save a form, especially for a project form? I really appreciate your help. Thank you

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 25
351
3
thg 2 20
3626
0
thg 3 15
3771
0
thg 3 17
3073
1
thg 3 15
4672