跳转至内容
  • 版块
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • 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 中文社区

Z

zhouzhunxi

@zhouzhunxi
关于
帖子
9
主题
6
群组
0
粉丝
0
关注
0

帖子

最新 最佳 有争议的

  • 求助:openerp cookie 闲置时间设置
    Z zhouzhunxi

    太高深了。怎么单步。。。用户时HornERP AllInOne 版本。。


  • 求助:openerp cookie 闲置时间设置
    Z zhouzhunxi

    由于,公司的openerp 是几个人使用。。cookie时间只有1小时,一天内要登陆好几次,太麻烦。请教大侠们,怎么可以设置 cookie时间。设置成1天。
      谢谢

      大侠们,版本是5.0.x的。
    通过搜索找到了。(timeout * 60)) 改成(timeout * 6024365))改成这样。还是闲置时间长了还是会没反映。要重新登陆,请大侠指点,哪能加闲置时间。



    def set_response_cookie(path=None, path_header=None, name='session_id',
                            timeout=60, domain=None, secure=False):
        """Set a response cookie for the client.
       
        path: the 'path' value to stick in the response cookie metadata.
        path_header: if 'path' is None (the default), then the response
            cookie 'path' will be pulled from request.headers[path_header].
        name: the name of the cookie.
        timeout: the expiration timeout for the cookie.
        domain: the cookie domain.
        secure: if False (the default) the cookie 'secure' value will not
            be set. If True, the cookie 'secure' value will be set (to 1).
        """
        # Set response cookie
        cookie = cherrypy.response.cookie
        cookie[name] = cherrypy.serving.session.id
        cookie[name]['path'] = (path or cherrypy.request.headers.get(path_header)
                                or '/')
       
        # We'd like to use the "max-age" param as indicated in
        # http://www.faqs.org/rfcs/rfc2109.html but IE doesn't
        # save it to disk and the session is lost if people close
        # the browser. So we have to use the old "expires" ... sigh ...
    ##    cookie[name]['max-age'] = timeout * 60
        if timeout:
            cookie[name]['expires'] = http.HTTPDate(time.time() + (timeout * 60))
        if domain is not None:
            cookie[name]['domain'] = domain
        if secure:
            cookie[name]['secure'] = 1


  • Win7 下安装openerp 已成功
    Z zhouzhunxi

    [quote author=mrshelly link=topic=8024.msg17587#msg17587 date=1373851512]
    hornerp 吗?

    你得要找个全新的系统安装. 推荐你用虚拟机 虚拟个XP去玩...
    [/quote]

    玩的话.倒无所谓哪个版本了.问题,我的模块是在这下面面的.数据也在这个版本里...现在想移植到win7里..移不过去....
    是不是有什么字体不对.

    还发现一个问题..就是新建库失败后..登陆就提示密码错误..用pgadmin  查看users  发现密码 空  (随便填入密码)..context_lang character varying(64) 里也只有''  (改成 en_us)  再登陆.竟然可以登陆.改成(zh_cn)..就不行..

    是什么原因.大侠指点一下.


  • Win7 下安装openerp 已成功
    Z zhouzhunxi

    这几天换win7系统。。
    想把openerp 也移过来。可装了半天装不起来。求教大侠们
    1种方法装
    把hornerp-allinone-setup-0.2-OE5.0.12 装好后。新建账套到一半就出错。没办法,导入一个备份的sql。用sql里的账号登陆,结果提示,用户或密码错误。打开数据库。里面的用户,密码是对的。

    2种。
    把hornerp-allinone-setup-0.2-OE5.0.12 装好后,把xp下openerp整个目录拷过来。。。结果。postgre 服务无法启动。

    求大侠帮忙。。

    看log
    Traceback (most recent call last):
      File "openerp-client.py", line 138, in <module>
      File "modules\gui\main.pyo", line 1058, in sig_login
      File "rpc.pyo", line 216, in login
      File "tiny_socket.pyo", line 81, in myreceive
    tiny_socket.Myexception: ("psName='MS Song' contains invalid character ' ' ie U+0020", 'Traceback (most recent call last):\n  File "netsvc.pyo", line 247, in dispatch\n  File "netsvc.pyo", line 76, in call\n  File "service\web_services.pyo", line 400, in login\n  File "service\security.pyo", line 31, in login\n  File "pooler.pyo", line 77, in get_db\n  File "pooler.pyo", line 40, in get_db_and_pool\n  File "addons\init.pyo", line 741, in load_modules\n  File "addons\init.pyo", line 581, in load_module_graph\n  File "addons\init.pyo", line 403, in register_class\n  File "C:\Program Files\HornERP AllInOne\Server\addons\l10n_cn\init.py", line 32, in <module>\n  File "reportlab\pdfbase\ttfonts.pyo", line 989, in init\n  File "reportlab\pdfbase\ttfonts.pyo", line 898, in init\n  File "reportlab\pdfbase\ttfonts.pyo", line 412, in init\n  File "reportlab\pdfbase\ttfonts.pyo", line 487, in extractInfo\nTTFError: psName=&#039;MS Song&#039; contains invalid character &#039; &#039; ie U+0020\n')

    ######################################################################################

    搞了一天时间,原来是因为用的精减的win7.缺少字体库引起的.
    从别的win7里copy windows/fonts目录来.发现已经可以正常使用.
    .只是客户端的字还很多是框框.通过james的贴子http://shine-it.net/index.php/topic,4180.msg11240.html#msg11240 
    替换gtkrc.zh_CN。显示正常,
    有个问题.原版的

    # Auto-written by gtk2-prefs. Do not edit.

    gtk-font-name = "SimSun 9"


    style "user-font" {
        font_name = "SimSun 9"
    }

    widget_class "*" style "user-font"

    gtk-font-name="SimSun 9"
    为什么会显示框框.simsun字体.fonts里也有啊


  • 报表的设计及应用
    Z zhouzhunxi

    请求各位版主,或老肖,写一个SXW报表的制作到应用的详细教程,希望能从制作,然后一步一步实施到应用,详细的步骤。

      谢谢各们大侠们。


  • HornERP2.0 安装包发布社区内测版
    Z zhouzhunxi

    一安装出错..高手看看.
    Environment Information :
    System : Windows-XP-5.1.2600-SP3
    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.12
    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 633, in execute
      File "service\web_services.pyo", line 613, in execute
      File "wizard_init
    .pyo", line 178, in execute
      File "wizard_init_.pyo", line 73, in execute_cr
      File "D:\OpenERP\Server\addons\base_setup\wizard\wizard_base_setup.py", line 208, in update
      File "pooler.pyo", line 62, in restart_pool
      File "pooler.pyo", line 40, in get_db_and_pool
      File "addons_init
    .pyo", line 741, in load_modules
      File "addons_init_.pyo", line 581, in load_module_graph
      File "addons_init_.pyo", line 403, in register_class
      File "C:\Program Files\HornERP AllInOne\Server\addons\l10n_account_cn_init_.py", line 27, in <module>
      File "C:\Program Files\HornERP AllInOne\Server\addons\l10n_account_cn\report_init_.py", line 26, in <module>
    ImportError: No module named report_account_balance


  • 打开GTK 就跳出=注册窗口。。
    Z zhouzhunxi

    怎么让开客户端。不跳出窗口。。


  • Open erp 材料仓库管理功能。
    Z zhouzhunxi

    oe 有没有材料仓库管理功能。 就是简单 的采购入库。。领料出库。。。自带有点复杂。。难懂


  • HornERP WEB能用吗?
    Z zhouzhunxi

    我的HornERP WEB怎么打不开啊。。。不能连接。。糸统WIN7

  • 登录

  • 没有帐号? 注册

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