跳至內容
選單
此問題已被標幟
4639 瀏覽次數

<button name="refuse_reason_action" string="Yes" type="object" class="oe_highlight"/>

class HrAppRefuseWiz(models.TransientModel): 

 _name = 'hr.applicant.refuse.wizard'

 refuse_reason = fields.Text('Refuse Reason')

@api.multi

def refuse_reason_action(self): 

if self: 

code logic 

when i put method my module stock working when i comment code of method where i'm wrong ....

頭像
捨棄

What happens when you click on the button? Do you get any error or what? Please post your code of the method as well.

相關帖文 回覆 瀏覽次數 活動
0
3月 25
844
9
3月 20
42060
2
10月 18
3984
1
10月 17
4226
1
3月 15
4666