跳转至内容
  • 版块
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(Flatly)
  • 不使用皮肤
折叠

Odoo 中文社区

  1. 主页
  2. 版块
  3. Odoo 新手求助
  4. 求助,新建账套后,重新登录,出现如下错误,请高手指点

求助,新建账套后,重新登录,出现如下错误,请高手指点

已定时 已固定 已锁定 已移动 Odoo 新手求助
6 帖子 3 发布者 5.9k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • Y 离线
    Y 离线
    yjq727
    写于 最后由 编辑
    #1

    Environment Information :
    System : Windows-XP-5.1.2600-SP2
    OS Name : nt
    Operating System Release : XP
    Operating System Version : 5.1.2600
    Operating System Architecture : 32bit
    Operating System Locale : zh_CN.cp936
    Python Version : 2.5.2
    OpenERP-Client Version : 5.0.11
    Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
      File "netsvc.pyo", line 247, in dispatch
      File "netsvc.pyo", line 76, in call
      File "service\web_services.pyo", line 577, in execute
      File "osv\osv.pyo", line 58, in wrapper
      File "osv\osv.pyo", line 119, in execute
      File "osv\osv.pyo", line 111, in execute_cr
      File "osv\orm.pyo", line 2228, in read
      File "osv\orm.pyo", line 2360, in _read_flat
      File "osv\fields.pyo", line 659, in get
      File "E:\Program Files\OpenERP AllInOne\Server\addons\report_analytic_planning\report_analytic_planning.py", line 138, in _sum_amount_tasks
    TypeError: unsupported operand type(s) for +: 'int' and 'tuple'

    1 条回复 最后回复
    0
    • Y 离线
      Y 离线
      yjq727
      写于 最后由 编辑
      #2

      同志们就没遇到过这个问题吗,今儿又重新建了一个账套,结果还是报上述错误,难道是建账套还需要注意些什么吗,请大家多多指教呀

      1 条回复 最后回复
      0
      • N 离线
        N 离线
        NewZN
        写于 最后由 编辑
        #3

        File "E:\Program Files\OpenERP AllInOne\Server\addons\report_analytic_planning\report_analytic_planning.py", line 138, in _sum_amount_tasks
        TypeError: unsupported operand type(s) for +: 'int' and 'tuple'

        检查report_analytic_planning.py的138行,该行你改过吗?或者你下载了新的源码吗?不管什么原因,反正是源码中引入了错误,导致执行出错。

        1 条回复 最后回复
        0
        • Y 离线
          Y 离线
          yjq727
          写于 最后由 编辑
          #4

          我没有改,下载的是最新的源码,是不是我的安装程序有问题呀,哪儿为好心人给我发一个report_analytic_planning.py,谢谢啊,邮箱:[email protected]

          1 条回复 最后回复
          0
          • digitalsatoriD 离线
            digitalsatoriD 离线
            digitalsatori 管理员
            写于 最后由 编辑
            #5

            这是一个bug,已经在开发版本库中修正,你可以选择不安装这个模块,或者按下面的方法来修改(就是找到report_analytic_planning.py文件,在122行和132行的位置,按下面的指示,-表示删除该行,+表示添加该行),linux用户可以直接用patch工具来打这个补丁:

            === modified file &#039;report_analytic_planning/report_analytic_planning.py&#039;<br />--- report_analytic_planning/report_analytic_planning.py&nbsp; &nbsp; 2010-02-23 14:28:21 +0000<br />+++ report_analytic_planning/report_analytic_planning.py&nbsp; &nbsp; 2010-06-07 09:58:16 +0000<br />@@ -122,7 +122,7 @@<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  sqlarg = ()<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if line.user_id:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  where=&#039;user_id=%s and &#039;<br />-&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sqlarg = (line.user_id.id)<br />+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sqlarg = (line.user_id.id,)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cr.execute(&#039;&#039;&#039;select<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  sum(planned_hours)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  from<br />@@ -132,7 +132,7 @@<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  project_id in (select id from project_project where category_id=%s) and<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  date_close&gt;=%s and<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  date_close&lt;=%s&#039;&#039;&#039;,<br />-&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  sqlarg + (<br />+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sqlarg + (<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; line.account_id.id,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; line.planning_id.date_from,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; line.planning_id.date_to))
            

            【上海先安科技】(tony AT openerp.cn)

            1 条回复 最后回复
            0

            • 登录

            • 没有帐号? 注册

            • 登录或注册以进行搜索。
            • 第一个帖子
              最后一个帖子
            0
            • 版块
            • 标签
            • 热门
            • 用户
            • 群组