Files
manufacture/quality_control_formula/models/qc_test_question.py
2020-01-24 15:46:43 +01:00

19 lines
671 B
Python

# -*- coding: utf-8 -*-
# Copyright 2019 Simone Rubino - Agile Business Group
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class QcTestQuestion(models.Model):
_inherit = 'qc.test.question'
code = fields.Char(
help="Used for the evaluation of formulas: "
"name of the variable corresponding to this question's value.")
formula = fields.Text(
help="Python formula for evaluating the current question."
"Provided values are 'input_value' and "
"the values of all the previous questions "
"(the variable name is the 'code' field).")