Commit 2f65b9ed by aagusti

duplicate examp with question

1 parent e9f826e6
......@@ -21,7 +21,8 @@ class EtqExam(models.Model):
active = fields.Boolean(string="Active", default=True, required=True)
slug = fields.Char(string="Slug", compute="slug_me", store="True")
show_correct_questions = fields.Boolean(string="Show Correct Answers?")
questions = fields.One2many('etq.question', 'exam_id', string="Questions")
questions = fields.One2many('etq.question', 'exam_id', string="Questions",
copy=True)
fill_mode = fields.Selection(
[('all', 'All Questions'), ('random', 'Random')], string="Fill Mode",
default="all")
......@@ -76,10 +77,12 @@ class EtqQuestion(models.Model):
default="multi_choice",
string="Question Type")
question_options = fields.One2many('etq.question.option', 'question_id',
string="Multiple Choice Options")
string="Multiple Choice Options",
copy=True)
question_options_blank = fields.One2many('etq.question.optionblank',
'question_id',
string="Fill in the Blank Options")
string="Fill in the Blank Options",
copy=True)
num_options = fields.Integer(string="Options", compute="calc_options")
num_correct = fields.Integer(string="Correct Options",
compute="calc_correct")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!