Odoo 中文社区

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. jerry79

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

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

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

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

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

    J
    • Profile
    • Following 0
    • Followers 1
    • Topics 69
    • Posts 201
    • Best 0
    • Controversial 0
    • Groups 0

    jerry79

    @jerry79

    0
    Reputation
    644
    Profile views
    201
    Posts
    1
    Followers
    0
    Following
    Joined Last Online

    jerry79 Unfollow Follow

    Latest posts made by jerry79

    • RE: Odoo 9 使用nginx配置域名地址 chrome浏览器无法登陆进入系统

      终于搞定了,把这句删掉:
      expires 864000;

      posted in Odoo 开发与实施交流
      J
      jerry79
    • Odoo 9 使用nginx配置域名地址 chrome浏览器无法登陆进入系统

      安装odoo9,linux,源码安装。使用ngxin配置域名地址,此时如果使用Chome浏览器
      使用:localhost:8069,可以访问登陆界面并顺利登陆
      使用:X.XXX.com,可以访问登陆界面,但是无法登陆进入系统,点击登陆后直接返回登陆界面。
      使用firefox无此问题,可以成功登陆,使用opera也无法登陆。
      请问大家遇到过同样的问题吗?谢谢!
      我的nginx配置如下:

      <br />upstream x.xxx.com{<br />&nbsp; &nbsp; &nbsp; &nbsp; server 127.0.0.1:8069;<br />}<br />server {<br />&nbsp; &nbsp; &nbsp; &nbsp; server_name&nbsp; x.xxx.com;<br />&nbsp; &nbsp; &nbsp; &nbsp; root /usr/local/lib/python2.7/dist-packages/openerp-9.0c_20151202-py2.7.egg/openerp/addons/;<br />&nbsp; &nbsp; &nbsp; &nbsp; listen 80;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; gzip on;<br />&nbsp; &nbsp; &nbsp; &nbsp; gzip_disable &quot;msie6&quot;;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; gzip_vary on;<br />&nbsp; &nbsp; &nbsp; &nbsp; gzip_proxied any;<br />&nbsp; &nbsp; &nbsp; &nbsp; gzip_comp_level 6;<br />&nbsp; &nbsp; &nbsp; &nbsp; gzip_buffers 16 8k;<br />&nbsp; &nbsp; &nbsp; &nbsp; gzip_http_version 1.1;<br />&nbsp; &nbsp; &nbsp;  #添加一个类型 application/javascript<br />&nbsp; &nbsp; &nbsp; &nbsp; gzip_types text/plain text/css application/javascript application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;<br /><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; location /{<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_pass [检测到链接无效,已移除] br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; location ~* / {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_cache_valid 200 60m;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_buffering on;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; expires 864000;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_pass [检测到链接无效,已移除] br />&nbsp; &nbsp; &nbsp; &nbsp; }<br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_buffering on;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_cache_valid&nbsp; &nbsp; &nbsp;  1d;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; expires 1d;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />
      
      posted in Odoo 开发与实施交流
      J
      jerry79
    • Odoo 8.0 rc变更了目录结构后,如何设置nginx conf中的root路径?

      odoo 8 rc1的路径变成了
      openerp-8.0rc1-py2.7.egg/
        ---addons
        ---openerp/
                ---addons
      有了两个addons目录,而nginx.conf 中,只能设置一个addons路径:

      <br />server {<br />&nbsp; &nbsp; &nbsp; &nbsp; server_name&nbsp; xxx;<br />&nbsp; &nbsp; &nbsp; &nbsp; root /usr/local/lib/python2.7/dist-packages/openerp-8.0rc1-py2.7.egg/addons/;<br />&nbsp; &nbsp; &nbsp; &nbsp; listen 80;<br />}<br />
      


      如果root设置逞openerp下的addons,则界面显示不全,设置成上面的,那么openerp/addons/base下面的图片就无法显示了,比方说默认联系人的头像。
      请问如何才能解决这个问题?谢谢
      [attachimg=1]

      posted in Odoo 开发与实施交流
      J
      jerry79
    • 求助:OE8的message只能区分model,无法区分同一个model下的不同menu

      例如,crm.lead下有两个type, lead和oppotunity,因为view不同,所以对应两个不同的menu id,
      lead的url是:
      web#page=0&limit=80&view_type=list&model=crm.lead&menu_id=282&action=335
      opp的url是:
      web#view_type=kanban&model=crm.lead&menu_id=283&action=336

      url通过menuid和actionid区分两个不同的view。
      但是mail message的链接却只有model,没有menu和action,如下:
      web#id=4&view_type=form&model=crm.lead

      假如我在lead下,给其他用户发了一个message,其他用户登陆后,从消息界面看到这个message,然后点击链接,理应进入这个lead的form界面,但是实际上进入的却是opp的form界面,就是因为这个url没有区分menu和action,所以默认进入了opp的form界面。

      请问这个问题应该如何解决呢?
      谢谢

      posted in Odoo 开发与实施交流
      J
      jerry79
    • RE: 分享个小的使用心得,把OpenERP中的报价单做到excel里面

      稍微有点麻烦啊,OE的报表模块能直接支持到处excel的报表吗?

      posted in Odoo 开发与实施交流
      J
      jerry79
    • Openerp 8.0下,web_m2x_options模块出现问题

      7.0下的web_m2x_options模块,在8.0下出现:Uncaught TypeError: Cannot call method 'split' of undefined。
      应该是以下代码的问题,X[1] is undefined

      <br />var values = _.map(data, function (x) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x[1] = x[1].split(&quot;\n&quot;)[0];<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label: _.str.escapeHTML(x[1]),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value: x[1],<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name: x[1],<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; id: x[0],<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
      



      请问这个问题应该怎样解决呢?谢谢

      posted in Odoo 开发与实施交流
      J
      jerry79
    • RE: 消息模块_菜单显示待办事宜实现原理

      非常有用的东西,谢谢!

      posted in Odoo 开发与实施交流
      J
      jerry79
    • RE: Oe中的addons的一个大坑(已解决)

      还好我的备份都是通过git

      posted in Odoo 开发与实施交流
      J
      jerry79
    • 群消息整理“邮件发送,使用域名邮箱无法通过验证”

      jeff和buke的记录:
      假设:
      发件人为: [email protected]
      而发送账户为:[email protected]
      qq 邮箱等会严格校验,发件人和发送账户是否一致
      原 message['From'] 值 '[email protected]'
      改为 message['From'] = '[email protected] <[email protected]?> ' 即可正常通过校验

      修改代码:message.replace_header('From', '%s <%s>' % (message['From'], smtp_user))

      posted in Odoo 开发与实施交流
      J
      jerry79
    • RE: Openerp 8.0 website 开发技术

      [quote author=jerry79 link=topic=16293.msg27832#msg27832 date=1396716236]
      我最近也在看website模块,但是有一个疑问,网页做好后,如何发布出去让用户访问?我测试了一下,发现website的网页必须在选择数据库之后才能访问,如果一个新用户,第一次访问这个页面,会提示404错误。
      比方说website blog,如果你没有首先访问localhost:8069,然后选择数据库的话,第一次访问localhost:8069/blog页面是404错误。
      请问这个问题应该如何解决呢?谢谢!
      [/quote]
      问题解决了,按照下面的帖子的方法,为域名指定数据库即可,<br / [检测到链接无效,已移除] br />但是经过测试,下面指定数据库的方法无效:
      http://shine-it.net/index.php/topic,16199.msg27429.html#msg27429

      posted in Odoo 开发与实施交流
      J
      jerry79