odoo/odoo#172881
Created by haumenphai
Merged
at ffc855ea399483c31d773090b9e723dc645ff335
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- haumenphai:v17_odoo_fix_mail_tracking_upgrade
- head
- 31cfc0c72e5d6342f27fa76edd7a8892f21236b3
- merged
- 10 months ago by Marketing, Thibault Delavallee (tde)
odoo/odoo | |
---|---|
17.0 | #172881 |
saas-17.2 | #191670 |
saas-17.4 | #191694 |
18.0 | #191705 |
saas-18.1 | #191721 |
saas-18.2 | |
saas-18.3 | |
saas-18.4 | |
19.0 | |
master | #191729 |
[FIX] mail: fix field does not exist in _mail_track_get_field_sequence
I encountered an error when upgrading the database.
This error is because the fname
does not exist in self._fields
after the field has been removed in the code.
Here is all the traceback :
Traceback (most recent call last):
File "/home/do/my_projects/odoo-17/odoo17/odoo/service/server.py", line 1313, in preload_registries
registry = Registry.new(dbname, update_module=update_module)
File "<decorator-gen-16>", line 2, in new
File "/home/do/my_projects/odoo-17/odoo17/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "/home/do/my_projects/odoo-17/odoo17/odoo/modules/registry.py", line 113, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/home/do/my_projects/odoo-17/odoo17/odoo/modules/loading.py", line 536, in load_modules
env['ir.model.data']._process_end(processed_modules)
File "/home/do/my_projects/odoo-17/OpenUpgrade/openupgrade_framework/odoo_patch/odoo/addons/base/models/ir_model.py", line 77, in _process_end
return IrModelData._process_end._original_method(self, modules)
File "/home/do/my_projects/odoo-17/odoo17/odoo/addons/base/models/ir_model.py", line 2558, in _process_end
self._process_end_unlink_record(record)
File "/home/do/my_projects/odoo-17/odoo17/odoo/addons/base/models/ir_model.py", line 2487, in _process_end_unlink_record
record.unlink()
File "/home/do/my_projects/odoo-17/odoo17/addons/mail/models/ir_model_fields.py", line 52, in unlink
'sequence': self.env[field.model_id.model]._mail_track_get_field_sequence(field.name),
File "/home/do/my_projects/odoo-17/odoo17/addons/mail/models/models.py", line 181, in _mail_track_get_field_sequence
if isinstance(fname, IrModelFields):
KeyError: 'date_process'
close: #172891
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr