Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queue Job Error #36

Closed
hieulucky111 opened this issue Oct 27, 2017 · 2 comments
Closed

Queue Job Error #36

hieulucky111 opened this issue Oct 27, 2017 · 2 comments

Comments

@hieulucky111
Copy link

hieulucky111 commented Oct 27, 2017

I have this issue when i start odoo with option server_wide_modules = web,web_kanban_gauge,queue_job

  File "/opt/odoo/code/projects/odoo11/odoo/odoo/service/server.py", line 869, in load_server_wide_modules
    odoo.modules.module.load_openerp_module(m)
  File "/opt/odoo/code/projects/odoo11/odoo/odoo/modules/module.py", line 368, in load_openerp_module
    __import__('odoo.addons.' + module_name)
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
  File "/opt/odoo/code/projects/odoo11/odoo/odoo/modules/module.py", line 82, in load_module
    exec(open(modfile, 'rb').read(), new_mod.__dict__)
  File "<string>", line 4, in <module>
  File "/opt/odoo/code/projects/odoo11/addons/oca-queue/queue_job/models/__init__.py", line 4, in <module>
    from . import queue_job
  File "/opt/odoo/code/projects/odoo11/addons/oca-queue/queue_job/models/queue_job.py", line 21, in <module>
    class QueueJob(models.Model):
  File "/opt/odoo/code/projects/odoo11/addons/oca-queue/queue_job/models/queue_job.py", line 45, in QueueJob
    record_ids = fields.Serialized(readonly=True)
AttributeError: module 'odoo.fields' has no attribute 'Serialized'

@hieulucky111
Copy link
Author

I try to fix by add this line from odoo.addons.base_sparse_field.models.fields import Serialized and change record_ids = fields.Serialized(readonly=True) to record_ids = Serialized(readonly=True)

@guewen
Copy link
Member

guewen commented Oct 27, 2017

In v11 you have to use server_wide_modules = web,web_kanban_gauge,base_sparse_field,queue_job

@guewen guewen closed this as completed Oct 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants