iam trying to update my custom module , while upgrading iam getting this error
Error:
Odoo Server Error
Traceback (most recent call last):
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 392, in _check_xml
self.postprocess_and_fields(view.model, view_doc, view.id)
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 964, in postprocess_and_fields
self.raise_view_error(message, view_id)
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 592, in raise_view_error
raise ValueError(message)
ValueError: Field `message_follower_ids` does not exist
Error context:
View `Money.Transfer.form`
[view_id: 1064, xml_id: transfers.money_transfer, model: transfers.name, parent_id: n/a]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/odoo/odoo-server/odoo/tools/convert.py", line 712, in parse
self._tag_root(de)
File "/odoo/odoo-server/odoo/tools/convert.py", line 674, in _tag_root
f(rec)
File "/odoo/odoo-server/odoo/tools/convert.py", line 577, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/odoo/odoo-server/odoo/models.py", line 4040, in _load_records
data['record']._load_records_write(data['values'])
File "/odoo/odoo-server/odoo/models.py", line 3978, in _load_records_write
self.write(values)
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 490, in write
return super(View, self).write(self._compute_defaults(vals))
File "/odoo/odoo-server/odoo/models.py", line 3556, in write
fields[0].determine_inverse(real_recs)
File "/odoo/odoo-server/odoo/fields.py", line 1114, in determine_inverse
getattr(records, self.inverse)()
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 299, in _inverse_arch
view.write(data)
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 490, in write
return super(View, self).write(self._compute_defaults(vals))
File "/odoo/odoo-server/odoo/models.py", line 3551, in write
real_recs._validate_fields(set(vals) - set(inverse_fields))
File "/odoo/odoo-server/odoo/models.py", line 1167, in _validate_fields
check(self)
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 394, in _check_xml
raise ValidationError("%s\n\n%s" % (_("Error while validating view"), tools.ustr(e)))
odoo.exceptions.ValidationError: ('Error while validating view\n\nField `message_follower_ids` does not exist\n\nError context:\nView `Money.Transfer.form`\n[view_id: 1064, xml_id: transfers.money_transfer, model: transfers.name, parent_id: n/a]', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/odoo/odoo-server/odoo/http.py", line 619, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/odoo/odoo-server/odoo/http.py", line 309, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/odoo/odoo-server/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/odoo/odoo-server/odoo/http.py", line 664, in dispatch
result = self._call_function(**self.params)
File "/odoo/odoo-server/odoo/http.py", line 345, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/odoo/odoo-server/odoo/service/model.py", line 93, in wrapper
return f(dbname, *args, **kwargs)
File "/odoo/odoo-server/odoo/http.py", line 338, in checked_call
result = self.endpoint(*a, **kw)
File "/odoo/odoo-server/odoo/http.py", line 910, in __call__
return self.method(*args, **kw)
File "/odoo/odoo-server/odoo/http.py", line 510, in response_wrap
response = f(*args, **kw)
File "/odoo/odoo-server/addons/web/controllers/main.py", line 1324, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/odoo/odoo-server/addons/web/controllers/main.py", line 1312, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/odoo/odoo-server/odoo/api.py", line 387, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/odoo/odoo-server/odoo/api.py", line 374, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "<decorator-gen-64>", line 2, in button_immediate_upgrade
File "/odoo/odoo-server/odoo/addons/base/models/ir_module.py", line 72, in check_and_log
return method(self, *args, **kwargs)
File "/odoo/odoo-server/odoo/addons/base/models/ir_module.py", line 629, in button_immediate_upgrade
return self._button_immediate_function(type(self).button_upgrade)
File "/odoo/odoo-server/odoo/addons/base/models/ir_module.py", line 573, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/odoo/odoo-server/odoo/modules/registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/odoo/odoo-server/odoo/modules/loading.py", line 419, in load_modules
force, status, report, loaded_modules, update_module, models_to_check)
File "/odoo/odoo-server/odoo/modules/loading.py", line 315, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/odoo/odoo-server/odoo/modules/loading.py", line 225, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package, report=report)
File "/odoo/odoo-server/odoo/modules/loading.py", line 68, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
File "/odoo/odoo-server/odoo/tools/convert.py", line 736, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/odoo/odoo-server/odoo/tools/convert.py", line 803, in convert_xml_import
obj.parse(doc.getroot())
File "/odoo/odoo-server/odoo/tools/convert.py", line 721, in parse
exc_info[2]
File "/odoo/odoo-server/odoo/tools/pycompat.py", line 13, in reraise
raise value.with_traceback(tb)
File "/odoo/odoo-server/odoo/tools/convert.py", line 712, in parse
self._tag_root(de)
File "/odoo/odoo-server/odoo/tools/convert.py", line 674, in _tag_root
f(rec)
File "/odoo/odoo-server/odoo/tools/convert.py", line 577, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/odoo/odoo-server/odoo/models.py", line 4040, in _load_records
data['record']._load_records_write(data['values'])
File "/odoo/odoo-server/odoo/models.py", line 3978, in _load_records_write
self.write(values)
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 490, in write
return super(View, self).write(self._compute_defaults(vals))
File "/odoo/odoo-server/odoo/models.py", line 3556, in write
fields[0].determine_inverse(real_recs)
File "/odoo/odoo-server/odoo/fields.py", line 1114, in determine_inverse
getattr(records, self.inverse)()
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 299, in _inverse_arch
view.write(data)
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 490, in write
return super(View, self).write(self._compute_defaults(vals))
File "/odoo/odoo-server/odoo/models.py", line 3551, in write
real_recs._validate_fields(set(vals) - set(inverse_fields))
File "/odoo/odoo-server/odoo/models.py", line 1167, in _validate_fields
check(self)
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 394, in _check_xml
raise ValidationError("%s\n\n%s" % (_("Error while validating view"), tools.ustr(e)))
odoo.tools.convert.ParseError: "Error while validating view
Field `message_follower_ids` does not exist
Error context:
View `Money.Transfer.form`
[view_id: 1064, xml_id: transfers.money_transfer, model: transfers.name, parent_id: n/a]
None" while parsing /odoo/odoo-server/addons/transfers/transfers.xml:2, near
<odoo>
<record id="money_transfer" model="ir.ui.view">
<field name="name">Money.Transfer.form</field>
<field name="model">transfers.name</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="money_transfers">
<field name="transfers_Name"/>
<field name="transfers_ISO"/>
<field name="transfers_amount"/>
<field name="notes"/>
<field name="image"/>
</tree>
</field>
</record>
<record id="money_transfer" model="ir.ui.view">
<field name="name">Money.Transfer.form</field>
<field name="model">transfers.name</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="money_transfers">
<sheet>
<group>
<field name="transfers_Name"/>
<field name="transfers_ISO"/>
</group>
<group>
<field name="transfers_amount"/>
<field name="notes"/>
<field name="image"/>
</group>
</sheet>
<div class="one chatter">
<field name="message_follower_ids" widget="mail_followers"/>
<field name="activity_ids" widget="mail_activity"/>
<field name="message_ids" widget="mail_thread" options="{'post_refresh': 'recipients'}"/>
</div>
</form>
</field>
</record>
<record id="action_transfers" model="ir.actions.act_window">
<field name="name">Transfers</field>
<field name="res_model">transfers.name</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="money_transfer"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
create your first transfer
</p>
</field>
</record>
<menuitem id="transfers_root" name="Transfers" sequence="0" web_icon="transfers,static/description/icon.png"/>
<menuitem id="transfers_name" name="Transfers_Name" parent="transfers_root" action="action_transfers"/>
</odoo>
mycode :
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="money_transfer" model="ir.ui.view">
<field name="name">Money.Transfer.form</field>
<field name="model">transfers.name</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string ="money_transfers">
<field name ="transfers_Name"/>
<field name ="transfers_ISO"/>
<field name ="transfers_amount"/>
<field name ="notes"/>
<field name ="image"/>
</tree>
</field>
</record>
<record id="money_transfer" model="ir.ui.view">
<field name="name">Money.Transfer.form</field>
<field name="model">transfers.name</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string ="money_transfers">
<sheet>
<group>
<field name ="transfers_Name"/>
<field name ="transfers_ISO"/>
</group>
<group>
<field name ="transfers_amount"/>
<field name ="notes"/>
<field name ="image"/>
</group>
</sheet>
<div class="one chatter">
<field name="message_follower_ids" widget ="mail_followers"/>
<field name="activity_ids" widget ="mail_activity"/>
<field name="message_ids" widget ="mail_thread" options ="{'post_refresh': 'recipients'}"/>
</div>
</form>
</field>
</record>
<record id="action_transfers" model="ir.actions.act_window">
<field name="name">Transfers</field>
<field name="res_model">transfers.name</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="money_transfer"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
create your first transfer
</p>
</field>
</record>
<menuitem id ="transfers_root" name ="Transfers" sequence ="0" web_icon="transfers,static/description/icon.png" />
<menuitem id ="transfers_name" name ="Transfers_Name" parent="transfers_root" action="action_transfers"/>
</odoo>
manifest file :
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Transfers',
'version': '1.0',
'summary': 'Module for Money Transfer',
'category': 'Extra Tools',
'description':
"""
Transifex integration
=====================
This module will add a link to the Transifex project in the translation view.
The purpose of this module is to speed up translations of the main modules.
To work, Odoo uses Transifex configuration files `.tx/config` to detec the
project source. Custom modules will not be translated (as not published on
the main Transifex project).
The language the user tries to translate must be activated on the Transifex
project.
""",
'data': [
'security/ir.model.access.csv' ,
'transfers.xml',
],
'depends': ['mail'],
'installable':True,
'application':True,
'auto_install':False,
}