When creating a new module on Odoo, everything goes well - I install and execute it, and it works. However, as soon as I try to add new XML fields or functions, it validates the new fields in XML but shows an error in Python, saying that the attribute declared in Python does not exist.
Note: There were no errors before I added the "result2" attribute.
please attach a screenshot of your python code block
from odoo import fields, models
class grille(models.Model):
_name = "evaluation.grille"
_description = "evaluation grille"
prise_con = fields.Integer(string="PRISE DE CONTACT ACCEUIL CLIENT :", required=True)
proc = fields.Integer(string="ELIGIBILOTE PROSPECT", required=True)
pres1 = fields.Integer(string="Présenation/Accroche/Question/Filtre/Reformulation", required=True)
pres2 = fields.Integer(string="Présentation des produits /bénifices clients/Presentation tarif", required=True)
result = fields.Float('Result', compute='_compute_sum', store=True)