I want to save popup view "cancelreason text field" in site.survey module don't want create new table.
please review my code how is it possible.
class site_survey(models.Model):
_name = 'site.survey'
name = fields.Char(readonly=True)
@api.multi
def action_cancel(self):
# self.state = 'cancel'
return {
'name': ('Assignment Sub'),
'view_type': 'form',
'view_mode': 'form',
'res_model': 'site.survey.cancel',
'view_id': False,
'type': 'ir.actions.act_window',
'target': 'new'
}
class site.survey.cancel(models.Model):
_inherit = 'site.survey.cancel'
cancelreason = fields.Char('Cancel Reason')