odoo/upgrade-util#21
Created by Nishit Thakkar (thni)
Statuses:
- ci/runbot: Test upgrades between stable versions
- ci/upgrade_enterprise: Test upgrades for enterprise master
- label
- odoo-dev:master-rename_depends-thni
- head
- 1b48b12f75e1000f002a8dd8fec4a81902f59a47
- merged
- 2 years ago by Upgrade, Christophe Simonis (chs)
| odoo/upgrade-util | |
|---|---|
| master | #21 |
[FIX] util/fields: update depends on rename
Currently we are not updating the dependencies for custom compute fields which leads to test crawler failure when it tries to access the view and give: KeyError: 'old_field_name'
Full error
```bash
2023-12-11 06:32:37,756 926 ERROR thni_14.0 odoo.addons.base.maintenance.migrations.base.testsodoo.upgrade.base.tests.test_mock_crawl: Adding menu ('account.menu_action_move_out_invoice_type', 126, 'Accounting > Customers > Invoices', 206) to the failing menus
Traceback (most recent call last):
File "/tmp/tmpmzpbd93k/migrations/base/tests/test_mock_crawl.py", line 238, in crawl_menu
self.mock_action(action_vals)
File "/tmp/tmpmzpbd93k/migrations/base/tests/test_mock_crawl.py", line 394, in mock_action
mock_method(model, view, fields_list, domain, group_by)
File "/tmp/tmpmzpbd93k/migrations/base/tests/test_mock_crawl.py", line 423, in mock_view_form
[data] = record.read(fields_list)
File "/home/odoo/src/odoo/14.0/odoo/models.py", line 3024, in read
f = self._fields[dotname.split('.')[0]]
KeyError: 'invoice_payment_state'