28 lines
883 B
Python
28 lines
883 B
Python
# Confirmation msg box for ORIC
|
|
from openerp.osv import fields,osv
|
|
from openerp.tools.translate import _
|
|
|
|
class dssDialog(osv.osv_memory):
|
|
_name = "dss.dialog"
|
|
_columns={
|
|
'text': fields.text(),
|
|
}
|
|
thesis_approval_message_oric()
|
|
|
|
@api.multi
|
|
def btn_approve(self):
|
|
text = """The case """ + str(self.case_no) + """ will be forward to VC for further Approval. Are you want to proceed."""
|
|
query = 'delete from thesis_approval_message_oric'
|
|
self.env.cr.execute(query)
|
|
value = self.env['thesis.approval.message.oric'].sudo().create({'text': text})
|
|
|
|
return {
|
|
'type': 'ir.actions.act_window',
|
|
'name': 'Message',
|
|
'res_model': 'dss.dialog',
|
|
'view_type': 'form',
|
|
'view_mode': 'form',
|
|
'target': 'new',
|
|
# 'context':{'thesis_obj':self.id,'flag':'course Work completed'},
|
|
'res_id': value.id
|
|
} |