showing below error
odoo.tools.convert.ParseError: "Error while validating constraint Field `assignment_marks` does not exist Error context: View `op.marksheet.line.inherit` [view_id: 1776, xml_id: o3_annual_student_report.op_marksheet_line_inherit, model: op.marksheet.line, parent_id: 1002] None" while parsing file:/c:/program files (x86)/odoo 12.0/server/odoo/addons/o3_annual_student_report/assignment_marks.xml:5, near <record model="ir.ui.view" id="op_marksheet_line_inherit"> <field name="name">op.marksheet.line.inherit</field> <field name="model">op.marksheet.line</field> <field name="inherit_id" ref="openeducat_exam.view_op_marksheet_line_form"/> <field name="arch" type="xml"> <field name="total_marks" position="after"> <field name="assignment_marks"/> </field> </field> </record>
my python code:
class assignments(models.Model):
_inherit = 'op.marksheet.line'
assignment_marks = fields.Float("Assignment Marks", compute='_compute_assignment_marks', store=True, default=0)
please help me to solve this
These tips help you to get the basic idea about customization in odoo
https://github.com/sehrishnaz/learnopenerp/wiki