So, I am making a module attendance with geolocation and face recognition. I want to make a extended model for locating the company. So I have this on attendance.py
class Company(ModelSQL, ModelView):
'Company'
__name__ = 'company'
address = fields.Char('Address')
longitude = fields.Float('Longitude', readonly=True)
latitude = fields.Float('Latitude', readonly=True)
so i added this to my attendance.xml
<record model="ir.action.act_window" id="act_company_geo">
<field name="name">Company Location</field>
<field name="res_model">company</field>
</record>
<record model="ir.ui.view" id="geo_company_form">
<field name="model">company</field>
<field name="type">form</field>
<field name="name">geo_form</field>
</record>
<record model="ir.action.act_window.view" id="act_geo_company">
<field name="sequence" eval="10"/>
<field name="view" ref="geo_company_form"/>
<field name="act_window" ref="act_company_geo"/>
</record>
<menuitem
action="act_company_geo"
parent="menu_configuration"
sequence="10"
id="menu_geo_company"/>
but when i tried to compile it, it got this error?
Traceback (most recent call last):
File "/home/name/.virtualenvs/project/bin/trytond-admin", line 7, in <module>
exec(compile(f.read(), __file__, 'exec'))
File "/home/name/tryton/trytond/bin/trytond-admin", line 23, in <module>
admin.run(options)
File "/home/name/tryton/trytond/trytond/admin.py", line 53, in run
pool.init(update=options.update, lang=list(lang),
File "/home/name/tryton/trytond/trytond/pool.py", line 164, in init
restart = not load_modules(
File "/home/name/tryton/trytond/trytond/modules/__init__.py", line 441, in load_modules
_load_modules(update)
File "/home/name/tryton/trytond/trytond/modules/__init__.py", line 411, in _load_modules
load_module_graph(graph, pool, update, lang)
File "/home/name/tryton/trytond/trytond/modules/__init__.py", line 252, in load_module_graph
tryton_parser.parse_xmlstream(fp)
File "/home/name/tryton/trytond/trytond/convert.py", line 461, in parse_xmlstream
raise Exception("Error " + self.current_state()) from e
Exception: Error In tag record model ir.ui.view with id attendance.geo_company_form.
UPDATE: it doesnt show any error anymore but when i clicked it it still doesnt show anything.