Error:
Odoo Server Error
Traceback (most recent call last):
File "/home/instructor/odoo12/odoo/tools/convert.py", line 757, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "/home/instructor/odoo12/odoo/tools/convert.py", line 662, in _tag_record
record = model.with_context(rec_context)._load_records([data], self.mode == 'update')
File "/home/instructor/odoo12/odoo/models.py", line 3821, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/home/instructor/odoo12/addons/website/models/ir_ui_view.py", line 128, in _load_records_create
records = super(View, self)._load_records_create(values)
File "/home/instructor/odoo12/odoo/models.py", line 3735, in _load_records_create
return self.create(values)
File "</home/instructor/.local/lib/python3.6/site-packages/decorator.py:decorator-gen-32>", line 2, in create
File "/home/instructor/odoo12/odoo/api.py", line 452, in _model_create_multi
return create(self, arg)
File "/home/instructor/odoo12/odoo/addons/base/models/ir_ui_view.py", line 428, in create
return super(View, self).create(vals_list)
File "</home/instructor/.local/lib/python3.6/site-packages/decorator.py:decorator-gen-3>", line 2, in create
File "/home/instructor/odoo12/odoo/api.py", line 452, in _model_create_multi
return create(self, arg)
File "/home/instructor/odoo12/odoo/models.py", line 3552, in create
fields[0].determine_inverse(batch_recs)
File "/home/instructor/odoo12/odoo/fields.py", line 1097, in determine_inverse
getattr(records, self.inverse)()
File "/home/instructor/odoo12/odoo/addons/base/models/ir_ui_view.py", line 275, in _inverse_arch
view.write(data)
File "/home/instructor/odoo12/addons/website/models/ir_ui_view.py", line 41, in write
return super(View, self).write(vals)
File "/home/instructor/odoo12/odoo/addons/base/models/ir_ui_view.py", line 444, in write
return super(View, self).write(self._compute_defaults(vals))
File "/home/instructor/odoo12/odoo/models.py", line 3269, in write
self._write(store_vals)
File "/home/instructor/odoo12/odoo/models.py", line 3413, in _write
self._validate_fields(vals)
File "/home/instructor/odoo12/odoo/models.py", line 1108, in _validate_fields
check(self)
File "/home/instructor/odoo12/odoo/addons/base/models/ir_ui_view.py", line 360, in _check_xml
raise ValidationError(_('Invalid view %s definition in %s') % (view.name, view.arch_fs))
odoo.exceptions.ValidationError: ('Invalid view form definition in Student_training/views/student_view.xml', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/instructor/odoo12/odoo/http.py", line 654, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/instructor/odoo12/odoo/http.py", line 312, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/home/instructor/odoo12/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/home/instructor/odoo12/odoo/http.py", line 696, in dispatch
result = self._call_function(**self.params)
File "/home/instructor/odoo12/odoo/http.py", line 344, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/instructor/odoo12/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/home/instructor/odoo12/odoo/http.py", line 337, in checked_call
result = self.endpoint(*a, **kw)
File "/home/instructor/odoo12/odoo/http.py", line 939, in __call__
return self.method(*args, **kw)
File "/home/instructor/odoo12/odoo/http.py", line 517, in response_wrap
response = f(*args, **kw)
File "/home/instructor/odoo12/addons/web/controllers/main.py", line 966, in call_button
action = self._call_kw(model, method, args, {})
File "/home/instructor/odoo12/addons/web/controllers/main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/instructor/odoo12/odoo/api.py", line 749, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "/home/instructor/odoo12/odoo/api.py", line 736, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "</home/instructor/.local/lib/python3.6/site-packages/decorator.py:decorator-gen-61>", line 2, in button_immediate_install
File "/home/instructor/odoo12/odoo/addons/base/models/ir_module.py", line 73, in check_and_log
return method(self, *args, **kwargs)
File "/home/instructor/odoo12/odoo/addons/base/models/ir_module.py", line 444, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/home/instructor/odoo12/odoo/addons/base/models/ir_module.py", line 553, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/home/instructor/odoo12/odoo/modules/registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/instructor/odoo12/odoo/modules/loading.py", line 421, in load_modules
loaded_modules, update_module, models_to_check)
File "/home/instructor/odoo12/odoo/modules/loading.py", line 313, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/home/instructor/odoo12/odoo/modules/loading.py", line 222, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package, report=report)
File "/home/instructor/odoo12/odoo/modules/loading.py", line 68, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
File "/home/instructor/odoo12/odoo/tools/convert.py", line 801, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/home/instructor/odoo12/odoo/tools/convert.py", line 864, in convert_xml_import
obj.parse(doc.getroot(), mode=mode)
File "/home/instructor/odoo12/odoo/tools/convert.py", line 754, in parse
self.parse(rec, mode)
File "/home/instructor/odoo12/odoo/tools/convert.py", line 763, in parse
exc_info[2]
File "/home/instructor/odoo12/odoo/tools/pycompat.py", line 86, in reraise
raise value.with_traceback(tb)
File "/home/instructor/odoo12/odoo/tools/convert.py", line 757, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "/home/instructor/odoo12/odoo/tools/convert.py", line 662, in _tag_record
record = model.with_context(rec_context)._load_records([data], self.mode == 'update')
File "/home/instructor/odoo12/odoo/models.py", line 3821, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/home/instructor/odoo12/addons/website/models/ir_ui_view.py", line 128, in _load_records_create
records = super(View, self)._load_records_create(values)
File "/home/instructor/odoo12/odoo/models.py", line 3735, in _load_records_create
return self.create(values)
File "</home/instructor/.local/lib/python3.6/site-packages/decorator.py:decorator-gen-32>", line 2, in create
File "/home/instructor/odoo12/odoo/api.py", line 452, in _model_create_multi
return create(self, arg)
File "/home/instructor/odoo12/odoo/addons/base/models/ir_ui_view.py", line 428, in create
return super(View, self).create(vals_list)
File "</home/instructor/.local/lib/python3.6/site-packages/decorator.py:decorator-gen-3>", line 2, in create
File "/home/instructor/odoo12/odoo/api.py", line 452, in _model_create_multi
return create(self, arg)
File "/home/instructor/odoo12/odoo/models.py", line 3552, in create
fields[0].determine_inverse(batch_recs)
File "/home/instructor/odoo12/odoo/fields.py", line 1097, in determine_inverse
getattr(records, self.inverse)()
File "/home/instructor/odoo12/odoo/addons/base/models/ir_ui_view.py", line 275, in _inverse_arch
view.write(data)
File "/home/instructor/odoo12/addons/website/models/ir_ui_view.py", line 41, in write
return super(View, self).write(vals)
File "/home/instructor/odoo12/odoo/addons/base/models/ir_ui_view.py", line 444, in write
return super(View, self).write(self._compute_defaults(vals))
File "/home/instructor/odoo12/odoo/models.py", line 3269, in write
self._write(store_vals)
File "/home/instructor/odoo12/odoo/models.py", line 3413, in _write
self._validate_fields(vals)
File "/home/instructor/odoo12/odoo/models.py", line 1108, in _validate_fields
check(self)
File "/home/instructor/odoo12/odoo/addons/base/models/ir_ui_view.py", line 360, in _check_xml
raise ValidationError(_('Invalid view %s definition in %s') % (view.name, view.arch_fs))
odoo.tools.convert.ParseError: "Invalid view form definition in Student_training/views/student_view.xml
None" while parsing /home/instructor/training_student/Student_training/views/student_view.xml:5, near
<record id="view_student_form" model="ir.ui.view">
<field name="name">form</field>
<field name="model">student.student</field>
<field name="arch" type="xml">
<form string="Student Information">
<sheet>
<header>
<button name="draft_med" states="draft" string="Medical Interview" class="oe_highlight"/>
<button name="med_acad" states="med_interview" string="Academic Interview" class="oe_highlight"/>
<button name="med_dismiss" states="med_interview" string="Dismiss" class="oe_highlight"/>
<button name="acad_first" states="acad_interview" string="First Year Register" class="oe_highlight"/>
<button name="acad_dismiss" states="acad_interview" string="Dismiss" class="oe_highlight"/>
<button name="first_second" states="first_register" string="Second Year Register" class="oe_highlight"/>
<button name="first_first" states="first_register" string="First Year Register" class="oe_highlight"/>
<button name="first_dismiss" states="first_register" string="Dismiss" class="oe_highlight"/>
<button name="second_third" states="second_register" string="Third Year Register" class="oe_highlight"/>
<button name="second_second" states="second_register" string="Second Year Register" class="oe_highlight"/>
<button name="second_dismiss" states="second_register" string="Dismiss" class="oe_highlight"/>
<button name="third_fourth" states="third_register" string="Fourth Year Register" class="oe_highlight"/>
<button name="third_third" states="third_register" string="Third Year Register" class="oe_highlight"/>
<button name="third_dismiss" states="third_register" string="Dismiss" class="oe_highlight"/>
<button name="fourth_fourth" states="fourth_register" string="Fourth Year Register" class="oe_highlight"/>
<button name="fourth_alumni" states="fourth_register" string="Alumni" class="oe_highlight"/>
<button name="fourth_dismiss" states="fourth_register" string="Dismiss" class="oe_highlight"/>
<button name="set_student_sequence" type="object" string="Generate Seat No." class="oe_highlight oe_inline"/>
<button name="test_x2Many" type="object" string="Test x2Many" class="oe_highlight oe_inline"/>
<button name="%(Student_training.action_wiz_calc_age)d" type="action" string="Calculate Age" icon="gtk-execute" groups="Student_training.manager_access_group"/>
<field name="state" widget="statusbar" statusbar_visible="draft,med_interview,acad_interview,first_register,second_register,third_register,fourth_register,dismiss,alumni"/>
</header>
<group colspan="4" col="2">
<div>
<field name="image" widget="image"/>
</div>
<br/>
<h1>
<label string="Name"/>
<field name="name" placeholder="Enter Name"/>
</h1>
<h2>
<label string="Ministry University No."/>
<field name="uni_no" placeholder="Enter Ministry University No."/>
<label string="Seat No." groups="Student_training.manager_access_group"/>
<field name="seat_no" groups="Student_training.manager_access_group"/>
</h2>
</group>
<group colspan="4" col="4">
<field name="dob"/>
<field name="age"/>
<field name="gender" widget="radio"/>
<field name="responsible_id"/>
<field name="email" widget="email"/>
<field name="phone"/>
<field name="fdate"/>
<field name="ldate"/>
<field name="degree_id" widget="selection"/>
<!-- <field name="degree_id" domain="[('name', 'ilike', 'Eng')]"/> -->
<field name="regfees"/>
<field name="tutfees"/>
<field name="totfees"/>
<field name="ref"/>
<field name="ref_link" widget="url"/>
</group>
<notebook>
<page string="School Result Details">
<field name="result_ids">
<tree editable="top">
<field name="subject_id"/>
<field name="result" avg="Average"/>
</tree>
<form>
<group>
<field name="subject_id"/>
<field name="result"/>
</group>
</form>
</field>
</page>
<page string="Other Information">
<separator string="Hobbies Detail" colspan="4"/>
<field name="hobbies_ids" nolabel="1" widget="many2many_tags"/>
</page>
</notebook>
<separator string="Health Issues and Notes" colspan="4"/>
<field name="health_issues"/>
<field name="health_notes" nolabel="1" attrs="{'invisible':[('health_issues','=','no')]}"/>
<separator string="Template" colspan="4"/>
<field name="template" nolabel="1"/>
</sheet>
</form>
</field>
</record>
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kirjanpito
- Varastointi
- PoS
- Project
- MRP
Tämä kysymys on merkitty
2103
Näkymät
Nautitko keskustelusta? Älä vain lue, vaan osallistu!
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
Rekisteröidy
Hi,
There is some issues inside the XML file you have added, its not easy to find out here, what you can do is that comment out the records inside the xml file and see which record actually cause issue and make changes. If you are new into odoo development see this: https://www.youtube.com/watch?v=BDepk0LhVuI&list=PLqRRLx0cl0hoJhjFWkFYowveq2Zn55dhM