تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4615 أدوات العرض

<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
مارس 25
819
Expected singleton تم الحل
9
مارس 20
42040
2
أكتوبر 18
3954
1
أكتوبر 17
4210
1
مارس 15
4654