Skip to content

[10.0] Merge website_blog_mgmt into website_blog - #1656

Merged
pedrobaeza merged 2 commits into
OCA:10.0from
Tecnativa:10.0-merge-website_blog_mgmt
Dec 11, 2018
Merged

[10.0] Merge website_blog_mgmt into website_blog#1656
pedrobaeza merged 2 commits into
OCA:10.0from
Tecnativa:10.0-merge-website_blog_mgmt

Conversation

@chienandalu

Copy link
Copy Markdown
Member

website_blog_mgmt is deprecated from 10.0 since there's Odoo core functionality for it.

cc @Tecnativa

Comment thread addons/website_blog/migrations/10.0.1.0/pre-migration.py Outdated
@pedrobaeza pedrobaeza added this to the 10.0 milestone Dec 11, 2018

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have removed the not used variable, so I merge.

@pedrobaeza
pedrobaeza merged commit 561283c into OCA:10.0 Dec 11, 2018
@pedrobaeza
pedrobaeza deleted the 10.0-merge-website_blog_mgmt branch December 11, 2018 21:04
yajo added a commit to Tecnativa/website that referenced this pull request Aug 27, 2019
This module is not needed. Remove code to avoid confusions (I just got confused today).

See OCA/OpenUpgrade#1656.
yajo added a commit to Tecnativa/OpenUpgrade that referenced this pull request Aug 27, 2019
In OCA#1656 website_blog_mgmt was merged into website_blog.

However, this noupdate record still remains in the database, producing recurring failures like this:

    Traceback (most recent call last):
      File "/opt/odoo/custom/src/odoo/odoo/tools/safe_eval.py", line 350, in safe_eval
        return unsafe_eval(c, globals_dict, locals_dict)
      File "", line 1, in <module>
    AttributeError: 'blog.post' object has no attribute 'cron_publish_posts'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_cron.py", line 102, in _callback
        self.env['ir.actions.server'].browse(server_action_id).run()
      File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_actions.py", line 569, in run
        res = func(action, eval_context=eval_context)
      File "/opt/odoo/auto/addons/website/models/ir_actions.py", line 57, in run_action_code_multi
        res = super(ServerAction, self).run_action_code_multi(action, eval_context)
      File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_actions.py", line 445, in run_action_code_multi
        safe_eval(action.sudo().code.strip(), eval_context, mode="exec", nocopy=True)  # nocopy allows to return 'action'
      File "/opt/odoo/custom/src/odoo/odoo/tools/safe_eval.py", line 373, in safe_eval
        pycompat.reraise(ValueError, ValueError('%s: "%s" while evaluating\n%r' % (ustr(type(e)), ustr(e), expr)), exc_info[2])
      File "/opt/odoo/custom/src/odoo/odoo/tools/pycompat.py", line 86, in reraise
        raise value.with_traceback(tb)
      File "/opt/odoo/custom/src/odoo/odoo/tools/safe_eval.py", line 350, in safe_eval
        return unsafe_eval(c, globals_dict, locals_dict)
      File "", line 1, in <module>
    ValueError: <class 'AttributeError'>: "'blog.post' object has no attribute 'cron_publish_posts'" while evaluating
    'model.cron_publish_posts()'

Now it is removed.
OCA-git-bot pushed a commit to OCA/website that referenced this pull request Aug 27, 2019
This module is not needed. Remove code to avoid confusions (I just got confused today).

See OCA/OpenUpgrade#1656.
Tardo pushed a commit to RedNeboa/website that referenced this pull request Dec 18, 2019
This module is not needed. Remove code to avoid confusions (I just got confused today).

See OCA/OpenUpgrade#1656.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants