跳至内容
菜单
此问题已终结
1 回复
15081 查看

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

相关帖文 回复 查看 活动
2
7月 25
428
3
2月 20
3656
0
3月 15
3796
0
3月 17
3113
1
3月 15
4706