2023-02-26 12:44:20,171 5433 ERROR db_538584 odoo.upgrade.base.tests.test_mock_crawl: FAIL: TestCrawler.test_check
Traceback (most recent call last):
  File "/tmp/tmp946fqdcd/migrations/testing.py", line 211, in test_check
    self.check(value)
  File "/tmp/tmp946fqdcd/migrations/base/tests/test_mock_crawl.py", line 121, in check
    self.assertFalse(diff, msg)
AssertionError: [('workshop.workshop_vehicles_evaluation', 626, 'Workshop > Reporting > Cost Evaluation', 863)] is not false : At least one menu or view working before upgrade is not working after upgrade.
('workshop.workshop_vehicles_evaluation', 626, 'Workshop > Reporting > Cost Evaluation', 863):
 Traceback (most recent call last):
   File "/home/odoo/src/odoo/16.0/odoo/tools/cache.py", line 85, in lookup
    r = d[key]
   File "", line 2, in __getitem__
   File "/home/odoo/src/odoo/16.0/odoo/tools/func.py", line 87, in locked
    return func(inst, *args, **kwargs)
   File "/home/odoo/src/odoo/16.0/odoo/tools/lru.py", line 34, in __getitem__
    a = self.d[obj]
 KeyError: ('workshop.vehicle.log.services', , (False, '', None, None, None))
During handling of the above exception, another exception occurred:
 Traceback (most recent call last):
   File "/home/odoo/src/odoo/16.0/odoo/addons/base/models/ir_ui_view.py", line 2578, in _get_view
    arch = getattr(self, '_get_default_%s_view' % view_type)()
 AttributeError: 'workshop.vehicle.log.services' object has no attribute '_get_default__view'
During handling of the above exception, another exception occurred:
 Traceback (most recent call last):
   File "/tmp/tmp946fqdcd/migrations/base/tests/test_mock_crawl.py", line 220, in crawl_menu
    self.mock_action(action_vals)
   File "/tmp/tmp946fqdcd/migrations/base/tests/test_mock_crawl.py", line 304, in mock_action
    views = get_views(
   File "/home/odoo/src/odoo/16.0/odoo/addons/base/models/ir_ui_view.py", line 2481, in get_views
    result['views'] = {
   File "/home/odoo/src/odoo/16.0/odoo/addons/base/models/ir_ui_view.py", line 2482, in 
    v_type: self.get_view(
   File "/home/odoo/src/odoo/16.0/odoo/addons/base/models/ir_ui_view.py", line 2666, in get_view
    result = dict(self._get_view_cache(view_id, view_type, **options))
   File "", line 2, in _get_view_cache
   File "/home/odoo/src/odoo/16.0/odoo/tools/cache.py", line 90, in lookup
    value = d[key] = self.method(*args, **kwargs)
   File "/home/odoo/src/odoo/16.0/odoo/addons/base/models/ir_ui_view.py", line 2626, in _get_view_cache
    arch, view = self._get_view(view_id, view_type, **options)
   File "/home/odoo/src/odoo/16.0/addons/web/models/models.py", line 245, in _get_view
    arch, view = super()._get_view(view_id, view_type, **options)
   File "/home/odoo/src/odoo/16.0/odoo/addons/base/models/ir_ui_view.py", line 2580, in _get_view
    raise UserError(_("No default view of type '%s' could be found !", view_type))
 odoo.exceptions.UserError: No default view of type '' could be found !
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
            
                2296
                
                    查看
                
            
        
    | 相关帖文 | 回复 | 查看 | 活动 | |
|---|---|---|---|---|
|  | 5 9月 25  | 23394 | ||
|  | 3 8月 25  | 3508 | ||
|  | 1 5月 25  | 3393 | ||
|  | 1 4月 25  | 4293 | ||
|  | 1 4月 25  | 5101 | 
