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

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

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

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

打印->Print Screen 时,出错



  • [code]
    Environment Information :
    System : Linux-2.6.32-29-generic-i686-with-Ubuntu-10.04-lucid
    OS Name : posix
    Distributor ID: Ubuntu
    Description: Ubuntu 10.04.2 LTS
    Release: 10.04
    Codename: lucid
    Operating System Release : 2.6.32-29-generic
    Operating System Version : #58-Ubuntu SMP Fri Feb 11 19:00:09 UTC 2011
    Operating System Architecture : 32bit
    Operating System Locale : en_US.UTF8
    Python Version : 2.6.5
    OpenERP-Client Version : 5.0.15
    Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
      File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 683, in go
        (result, format) = obj.create(cr, uid, ids, datas, context)
      File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/printscreen/ps_list.py", line 82, in create
        res = self._create_table(uid, datas['ids'], result['fields'], fields_order, rows, context, model_desc)
      File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/printscreen/ps_list.py", line 97, in _create_table
        _append_node('date', time.strftime(str(locale.nl_langinfo(locale.D_FMT).replace('%y', '%Y'))))
      File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/printscreen/ps_list.py", line 94, in _append_node
        n.text = text
      File "lxml.etree.pyx", line 821, in lxml.etree._Element.text.set (src/lxml/lxml.etree.c:32944)
      File "apihelpers.pxi", line 645, in lxml.etree._setNodeText (src/lxml/lxml.etree.c:15265)
      File "apihelpers.pxi", line 1242, in lxml.etree._utf8 (src/lxml/lxml.etree.c:19848)
    ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes
    [/code]

    系统: Ubuntu OpenERP GTK client
    动作: 每个Tree view 中, 打印->Print Screen时出错!
    上下文:全新套帐,已安装base_report_cn模块
    自诊:好像locale.nl_langinfo(locale.D_FMT)取得的date字段为空了,而要求不为空
    无效尝试:1. 更改、删除当前user的时区
                    2. 更换用户
                    3. 更改用户的语言
    解决:ps_list.py中:
          注释掉这行:  #_append_node('date', time.strftime(str(locale.nl_langinfo(locale.D_FMT).replace('%y', '%Y'))))
            把这行的注释去掉: _append_node('date', time.strftime('%d/%m/%Y'))

    请求: 怎么回事 ?

    Chip



  • [code]
    Environment Information :
    System : Linux-2.6.32-29-generic-i686-with-Ubuntu-10.04-lucid
    OS Name : posix
    Distributor ID: Ubuntu
    Description: Ubuntu 10.04.2 LTS
    Release: 10.04
    Codename: lucid
    Operating System Release : 2.6.32-29-generic
    Operating System Version : #58-Ubuntu SMP Fri Feb 11 19:00:09 UTC 2011
    Operating System Architecture : 32bit
    Operating System Locale : en_US.UTF8
    Python Version : 2.6.5
    OpenERP-Client Version : 5.0.15
    Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
      File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 683, in go
        (result, format) = obj.create(cr, uid, ids, datas, context)
      File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/printscreen/ps_list.py", line 82, in create
        res = self._create_table(uid, datas['ids'], result['fields'], fields_order, rows, context, model_desc)
      File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/printscreen/ps_list.py", line 97, in _create_table
        _append_node('date', time.strftime(str(locale.nl_langinfo(locale.D_FMT).replace('%y', '%Y'))))
      File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/printscreen/ps_list.py", line 94, in _append_node
        n.text = text
      File "lxml.etree.pyx", line 821, in lxml.etree._Element.text.set (src/lxml/lxml.etree.c:32944)
      File "apihelpers.pxi", line 645, in lxml.etree._setNodeText (src/lxml/lxml.etree.c:15265)
      File "apihelpers.pxi", line 1242, in lxml.etree._utf8 (src/lxml/lxml.etree.c:19848)
    ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes
    [/code]

    系统: Ubuntu OpenERP GTK client
    动作: 每个Tree view 中, 打印->Print Screen时出错!
    上下文:全新套帐,已安装base_report_cn模块
    自诊:好像locale.nl_langinfo(locale.D_FMT)取得的date字段为空了,而要求不为空
    无效尝试:1. 更改、删除当前user的时区
                    2. 更换用户
                    3. 更改用户的语言
    解决:ps_list.py中:
          注释掉这行:  #_append_node('date', time.strftime(str(locale.nl_langinfo(locale.D_FMT).replace('%y', '%Y'))))
            把这行的注释去掉: _append_node('date', time.strftime('%d/%m/%Y'))

    请求: 怎么回事 ?

    Chip




  • 我隐约觉得这个问题有一定的普遍意义,所以即使我使用笨拙的办法把它解决了,但是还希望哪位仔细分析下,所以就把它提了出来。

    Chip


登录后回复
 

与 Odoo 中文社区 的连接断开,我们正在尝试重连,请耐心等待