Odoo 新手求助

No decsciption available
2.4k 主题 10.7k 帖子
  • 请问新版i汉化openerp 在哪里下载呢!

    5
    0 赞同
    5 帖子
    6k 浏览

    新用户建议先通过十天视频来了解下OpenERP
    http://openerp-china.org/index.php?page=user

  • Win版的客户端在哪里下呀

    3
    0 赞同
    3 帖子
    2k 浏览

    官方下载链接<br / [检测到链接无效,已移除] br />更多最新消息,可以查看:
    http://www.openerp-china.org/index.php?page=Hello+OpenERP

  • 代办事项列表模块一安装就出错

    3
    0 赞同
    3 帖子
    4k 浏览

    在汇报问题时应该把你所使用的版本告诉大家。我这里6.1版本中显示在4月26日的rev 6767中这个问题已经修正。
    在解码二进制字符串时,加了utf-8 encoding,将project_gtd.py文件的118行改为如下:
               

    res&#91;&#039;arch&#039;] = unicode(res&#91;&#039;arch&#039;],&#039;utf8&#039;).replace(&#039;&lt;separator name=&quot;gtdsep&quot;/&gt;&#039;, search_extended)



    或到官网下载最小版本,
    或用bzr更新获取最新版本


  • 请问OpenERP适合医药生产企业么?

    4
    0 赞同
    4 帖子
    4k 浏览

    谢谢楼上的回复
    我想知道药企要使用OpenERP的话,需要什么样的模块呢?我想试一试看看。

  • 0 赞同
    3 帖子
    3k 浏览

    不明白你说的不允许自定义模板是什么意思,是指模块么?
    自定义模块是允许的,而且是免费的。

    这里有关于OpenERP企业版和社区版的区别
    http://www.openerp-china.org/index.php?page=FAQ&redirect=no

  • Openerp是完全免费的吗?

    4
    0 赞同
    4 帖子
    7k 浏览

    同楼上。然后这里有关于OpenERP企业版和社区版的区别
    http://www.openerp-china.org/index.php?page=FAQ&redirect=no

  • 开始尝试OpenERP,刚开始还是有蛮多问题的...

    3
    0 赞同
    3 帖子
    3k 浏览

    1 找不到 dump 就调试, 看看什么原因找不到....    必要时, 可以买调试服务.
    2 时间是因为 6.1 的时间控件 使用的GMT 时间.  我目前全部采用的GMT时间做.. 需要你做一些简单的开发...    必要时, 你可以买开发服务...
    3 关于固定资产... 如果真找不到. 也可以尝试二次开发..  必要时, 你可以买实施服务或者开发服务...

    理论上, *NIX 的网络性能比 Win 系的要好一些... 错误应该基本上都差不多.  *NIX 应该会相对少一些...

  • 关于生产订单的疑问

    4
    0 赞同
    4 帖子
    2k 浏览

    嗯,再加个权限,楼上的解决办法完美了。

  • [提问]设置-序号与标识符-External Identifiers

    2
    0 赞同
    2 帖子
    2k 浏览
    尚无回复
  • 初学报表,不知从何处查错

    6
    0 赞同
    6 帖子
    5k 浏览

    以你上面的代码为例:

    <br />&lt;report <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; auto=&quot;False&quot; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; id=&quot;training_lesson_report&quot; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; model=&quot;oecn.training.lesson&quot; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header=&quot;False&quot; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name=&quot;oecn.training.lesson_report&quot; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rml=&quot;oecn_training/report/oecn_training_lesson.rml&quot; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string=&quot;课程报告&nbsp; Lesson report&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; /&gt;<br />


    这一段是在 [检测到链接无效,已移除] 里添加一条记录,你可以通过进入 设定->自定义->底层对象->报表 可以查看到自己的报表

    <br />report_sxw.report_sxw(&#039;report.oecn.training.lesson_report&#039;, &#039;oecn.training.lesson&#039;, &#039;addons/oecn_training_lesson/report/oecn_training_lesson_report.rml&#039;,<br />parser=training_lesson_report)<br />


    这一段是实例化了report_sxw,实际上是通过这个实例来打印报表的。

    而你问的问题我们可以通过到report\report_sxw.py 代码里看看。

    <br />&nbsp; &nbsp; &nbsp; &nbsp; ir_obj = pool.get(&#039;ir.actions.report.xml&#039;)<br />&nbsp; &nbsp; &nbsp; &nbsp; report_xml_ids = ir_obj.search(cr, uid,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [(&#039;report_name&#039;, &#039;=&#039;, self.name[7:])], context=context)<br />&nbsp; &nbsp; &nbsp; &nbsp; if report_xml_ids:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; report_xml = ir_obj.browse(cr, uid, report_xml_ids[0], context=context)<br />&nbsp; &nbsp; &nbsp; &nbsp; else:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; title = &#039;&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; report_file = tools.file_open(self.tmpl, subdir=None)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rml = report_file.read()<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; report_type= data.get(&#039;report_type&#039;, &#039;pdf&#039;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; class a(object):<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; def __init__(self, *args, **argv):<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for key,arg in argv.items():<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setattr(self, key, arg)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; report_xml = a(title=title, report_type=report_type, report_rml_content=rml, name=title, attachment=False, header=self.header)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; finally:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; report_file.close()<br />


    这里的主要意思是他首先会根据名字report_name搜索 [检测到链接无效,已移除] ,如果有匹配的就取它的记录,如果没有就用上面实例化的那个实例。
    所以就是如果你向ir.actions.report.xml插入了报表数据 ,那么他就优先取它的数据而不是你在python里报表实例,这样的好处是你可以在openerp里面对报表直接进行修改(表头之类的),而不用修改代码。
    欢迎测试

  • 无法看到业务流程图

    4
    0 赞同
    4 帖子
    2k 浏览

    嗯,很好,我再科普一下OpenERP的企业版与社区版
    http://www.openerp-china.org/index.php?page=FAQ&redirect=no

  • 0 赞同
    4 帖子
    5k 浏览

    [quote author=软件钳工 link=topic=2755.msg9278#msg9278 date=1328676110]
    我在使用openerp报表打印功能是点击打印报表,在ie中可以直接显示出pdf文档,在chrome中打印报表时直接弹出下载对话框,我的预期是希望能在chrome中直接显示pdf文档,查阅代码之后找到
    /usr/local/lib/python2.7/dist-packages/openerp_web-6.0.3-py2.7.egg/addons/openerp/controllers/root.py:LINE 67
    @expose(content_type='application/octet-stream')
    修改成@expose(content_type='application/pdf')
    实现了直接在chrome浏览器中直接开启PDF的功能,具体代码并不理解,其他代码中有看到设置 ./addons/openerp/controller/actions.py 中对 content_type 有设置。pdf对应content_type:appliaction/pdf
    我们在设置的时候有设定报表的类型pdf
    如果不修改代码,执行的结果送到浏览器的http头部content_type始终是 application/octet-steam ,对于IE的处理方式会打开新页面直接显示pdf报表,而chrome是跳出下载对话框(我的预期是用chrome直接显示pdf报表,直接打印),不知道论坛里有解决这类问题的其他更优雅方法没有?
    [/quote]


    在firefox里也有同样的问题。打开.pdf是直接在浏览器内显示,但OE的打印是要下载后才显示的。不知有没有什么好的解决方案。

  • 安装后,在浏览器中:127.0.0.1:8069 打不开主页

    3
    0 赞同
    3 帖子
    5k 浏览

    可以先看看这里<br / [检测到链接无效,已移除] br />

  • 0 赞同
    5 帖子
    3k 浏览

    错误信息 很明确,在最后一行。

    就是2楼 说的情况

  • 0 赞同
    9 帖子
    7k 浏览

    更新了:
    ir.actions.actions
    ir.actions.report.xml
    purchase.order
    purchase.order.line
    sale.order
    sale.order.line
    res.partner
    res.country
    res.partner.address
    sale.shop
    stock.warehouse.orderpoint
    product.product
    product.uom
    product.product
    product.category
    请看顶楼

  • 0 赞同
    4 帖子
    5k 浏览

    一般这样使用<para> 条件 or removeParentNode('para')</para> 就是如果条件不成立就删除 <para></para>

  • OpenERP功能概要

    2
    0 赞同
    2 帖子
    4k 浏览
    尚无回复
  • 0 赞同
    6 帖子
    7k 浏览

    [quote author=mrshelly link=topic=4190.msg11309#msg11309 date=1338991829]
    不错.... 能给贴子加上标签(Tag) 就更棒了哇. ....
    [/quote]

    😃 已添加

  • 0 赞同
    4 帖子
    7k 浏览

    嗯. 不错.... 推荐使用 xmlrpc 进行数据处理... 不推荐直接连数据库处理...

  • 0 赞同
    11 帖子
    8k 浏览

    [quote author=mrshelly link=topic=2743.msg11297#msg11297 date=1338973067]
    嗯. 还是不推荐在数据库上面玩这些....  理论上, 应该可以二次开发, 修改  pos.order 的 create write 方法来实现...
    [/quote]

    确实是这样, 主要当时为了解决这个问题,而又不想去改动代码, 感觉通过数据触发器实现就能解决.

    所以官方不费吹灰之力,版本升级后就解决了.

    现在是用不到了,这里只做个记录.