Odoo中文社区可以通过以下两个域名访问:shine-it.net , odoo.net.cn

由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解

本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

Od0010安装blog出现错误-slides模块无法安装



  • 重置模板

    选择的模板将会重置为出厂模式。

    如果您想确认,在下面的框中键入yes。


    yes
    Confirm  取消
    首页
    返回
    500: Internal Server Error

    错误

    错误信息:

    Error to render compiling AST
    UnicodeDecodeError: 'utf8' codec can't decode byte 0xbe in position 0: invalid start byte
    Template: website_blog.blog_post_short
    Path: /templates/t/t/div[3]/div/div[2]/section[5]/ul/t/t/t[2]/li/a/t
    Node: <t t-esc="months['month']"/>
    Traceback

    Traceback (most recent call last):
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\addons\website\models\ir_http.py", line 265, in _handle_exception
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\addons\base\ir\ir_http.py", line 169, in _handle_exception
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\http.py", line 766, in _handle_exception
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\addons\base\ir\ir_http.py", line 195, in _dispatch
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\http.py", line 825, in dispatch
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\http.py", line 331, in _call_function
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\service\model.py", line 119, in wrapper
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\http.py", line 327, in checked_call
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\http.py", line 1257, in flatten
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\http.py", line 1250, in render
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\addons\base\ir\ir_ui_view.py", line 1020, in render_template
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\addons\website\models\ir_ui_view.py", line 110, in render
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\addons\web_editor\models\ir_ui_view.py", line 26, in render
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\addons\base\ir\ir_ui_view.py", line 1040, in render
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\addons\base\ir\ir_qweb\ir_qweb.py", line 53, in render
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\addons\base\ir\ir_qweb\qweb.py", line 248, in render
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\addons\base\ir\ir_qweb\qweb.py", line 322, in _compiled_fn
    QWebException: 'utf8' codec can't decode byte 0xbe in position 0: invalid start byte
    Traceback (most recent call last):
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\addons\base\ir\ir_qweb\qweb.py", line 315, in _compiled_fn
      File "<template>", line 1, in template_website_blog_blog_post_short_2552
      File "<template>", line 3, in body_call_content_2551
      File "<template>", line 131, in foreach_2547
      File "<template>", line 133, in foreach_2546
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\addons\base\ir\ir_qweb\qweb.py", line 154, in unicodifier
      File "encodings\utf_8.pyc", line 16, in decode
    UnicodeDecodeError: 'utf8' codec can't decode byte 0xbe in position 0: invalid start byte

    Error to render compiling AST
    UnicodeDecodeError: 'utf8' codec can't decode byte 0xbe in position 0: invalid start byte
    Template: website_blog.blog_post_short
    Path: /templates/t/t/div[3]/div/div[2]/section[5]/ul/t/t/t[2]/li/a/t
    Node: <t t-esc="months['month']"/>


    =============================

    [color=red]下面安装一个slides模块,也是出错[/color]

    Odoo
    Odoo Server Error
    Traceback (most recent call last):
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\http.py", line 638, in _handle_exception
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\http.py", line 675, in dispatch
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\http.py", line 331, in _call_function
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\service\model.py", line 119, in wrapper
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\http.py", line 324, in checked_call
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\http.py", line 933, in call
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\http.py", line 504, in response_wrap
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\addons\web\controllers\main.py", line 866, in call_button
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\addons\web\controllers\main.py", line 854, in _call_kw
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\api.py", line 681, in call_kw
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\api.py", line 672, in call_kw_multi
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\addons\base\module\module.py", line 410, in button_immediate_install
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\addons\base\module\module.py", line 484, in _button_immediate_function
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\modules\registry.py", line 78, in new
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\modules\loading.py", line 337, in load_modules
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\modules\loading.py", line 235, in load_marked_modules
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\modules\loading.py", line 159, in load_module_graph
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\modules\loading.py", line 95, in _load_data
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\tools\convert.py", line 851, in convert_file
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\tools\convert.py", line 921, in convert_xml_import
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\tools\convert.py", line 802, in parse
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\tools\convert.py", line 805, in parse
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\tools\convert.py", line 713, in _tag_record
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\addons\base\ir\ir_model.py", line 1159, in _update
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\addons\website_slides\models\slides.py", line 381, in create
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\addons\website_slides\models\slides.py", line 465, in _post_publication
      File "d:\Program Files\Odoo 10.0rc1c\server\odoo\addons\mail\models\mail_template.py", line 363, in render_template
    ParseError: "\u6e32\u67d3\u6a21\u677f<Template memory:61b3cd0> \u5931\u8d25 \u4f7f\u7528\u6570\u503c {'format_tz': <function <lambda> at 0x092B37F0>, 'ctx': {'base_url': u'http://localhost:8069'}, 'user': res.users(1,), 'object': slide.slide(9,)}
    None" while parsing file:///d:/Program%20Files/Odoo%2010.0rc1c/server/odoo/addons/website_slides/data/website_slides_demo.xml:28, near
    <record id="slide_0" model="slide.slide">
                <field name="name">Odoo Explained</field>
                <field name="url">http://www.youtube.com/watch?v=o0UM3Lg7K4Y</field>
                <field name="channel_id" ref="channel_public"/>
                <field name="category_id" ref="category_1"/>
                <field name="website_published" eval="True"/>
                <field name="tag_ids" eval="[(4, ref('tag2'))]"/>
            </record>



  • 我估计是中文的关系,我们中文是:10月,所以
    1、按照9.0原代码修改:原代码为:<t t-esc="months['create_date']"    website_blog 模块中的 website_blog_templates.xml
    2、把win系统日期格式修改为英语。


Log in to reply