Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
15086 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
ผู้เขียน

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ค. 25
437
3
ก.พ. 20
3659
0
มี.ค. 15
3802
0
มี.ค. 17
3125
1
มี.ค. 15
4718