Odoo 中文社区

    • 注册
    • 登录
    • 搜索
    • 版块
    • 标签
    • 热门
    • 用户
    • 群组

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

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

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

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

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

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

    Odoo 新手求助
    3
    6
    5566
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • Y
      yjq727 最后由 编辑

      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
        yjq727 最后由 编辑

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

        1 条回复 最后回复 回复 引用 0
        • N
          NewZN 最后由 编辑

          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
            yjq727 最后由 编辑

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

            1 条回复 最后回复 回复 引用 0
            • digitalsatori
              digitalsatori 管理员 最后由 编辑

              这是一个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
              • First post
                Last post