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

I

ito_oti

@ito_oti
关于
帖子
4
主题
3
群组
0
粉丝
0
关注
0

帖子

最新 最佳 有争议的

  • 对javascript的了解要达到何种程度才能够分析清odoo中的对应部分
    I ito_oti

    odoo(openerp)的网页使用了大量的javascript代码。它的复杂程度是我以前没有经历过的。

    在试着理清odoo的javascript代码运作过程之前,想参考一下各位的经验以估计要对javascript的了解要达到何种程度才能够分析清odoo中的对应部分。

    我个人的开发经历中,使用到的javascript库仅限于jQuery,Bootstrap,自己仅需要编写少量代码即可,无需任何编辑工具。因此也想请教一下实现对javascript进行debug,trace,traceback,troubleshooting的常规方式。

    另外,如果有人愿意分享一些学习odoo的流程上经历(建议),我将感激不尽。

    谢谢各位!

    Qinn


  • 一个TypeError问题
    I ito_oti

    [quote author=wangbuke link=topic=16260.msg27564#msg27564 date=1393998495]
    ;D , 终于有人遇到这个问题了。。。

    对于 web 模块,一定要有一个 js 文件,内容如下,即使是空函数。切记!切记!

    openerp.taobao_oauth = function(openerp) {

    };

    如 https://github.com/buke/openerp-taobao-oauth/blob/master/taobao_oauth/static/src/js/taobao_oauth.js br />[/quote]
    我在__openerp__.py加入一行:
    'js': ['static/src/js/first_module.js'],
    然后新建static/src/js/first_module.js

    openerp.standingbook = function(openerp) {};
    


    可是还是出现同样的问题。
    是不是我漏掉了什么?


  • 一个TypeError问题
    I ito_oti

    在开发模块时遇到。
    [img http://ww1.sinaimg.cn/mw1024/9ede99aegw1ee3te1e1twj20me0irtam.jpg /img]

    我的模块很简单只有3个文件:
    init.py
    openerp.py
    web_example.xml
    init.py是一个空文件。
    openerp.py:

    # -*- coding: utf-8 -*-<br />{<br />&nbsp; &nbsp; &#039;name&#039;: &quot;测试&quot;,<br />&nbsp; &nbsp; &#039;author&#039;: &quot;Freemind&quot;,<br />&nbsp; &nbsp; &#039;description&#039;:&quot;&quot;&quot;<br />测试模块<br />&quot;&quot;&quot;,<br />&nbsp; &nbsp; &#039;website&#039;: &quot;www.freemind.cn&quot;,<br />&nbsp; &nbsp; &#039;version&#039;:&quot;1.7&quot;,<br />&nbsp; &nbsp; &#039;depends&#039;: &#91;&#039;web&#039;],<br />&nbsp; &nbsp; &#039;category&#039;: &#039;Hidden&#039;,<br />&nbsp; &nbsp; &#039;data&#039;: &#91;&#039;web_example.xml&#039;],<br />}
    


    web_example.xml:

    &lt;openerp&gt;<br />&nbsp; &nbsp; &lt;data&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;record model=&quot;ir.actions.client&quot; id=&quot;action_client_example&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;name&quot;&gt;测试&lt;/field&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;tag&quot;&gt;example.action&lt;/field&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/record&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;menuitem action=&quot;action_client_example&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; id=&quot;menu_client_example&quot;/&gt;<br />&nbsp; &nbsp; &lt;/data&gt;<br />&lt;/openerp&gt;
    



    第一次启动openerp-server脚本时都没有问题.
    在"Create a New Database"页面新建数据库后,"Modules">"Installed Modules"可以看见这个名为“测试”的模块。
    [img http://ww3.sinaimg.cn/mw1024/9ede99aegw1ee3taji7upj20me0irwi0.jpg /img]
    然后安装也没有问题,“测试”也出现在菜单中。
    [img http://ww2.sinaimg.cn/mw1024/9ede99aegw1ee3tcpjvnpj20me0irtb5.jpg /img]
    可是一旦点过这个菜单后,则出现提示:
    OpenERP Client Error
    TypeError: ClientWidget is null<br / [检测到链接无效,已移除] br />[img http://ww1.sinaimg.cn/mw1024/9ede99aegw1ee3te1e1twj20me0irtam.jpg /img]
    在这个问题出现后,再次登录(admin),会立即出现这个提示。然后单击“测试”显示一片空白。
    [img http://ww2.sinaimg.cn/mw1024/9ede99aegw1ee3tfeb1j5j20me0irwfj.jpg /img]
    "Setting"后,虽可以在左边显示子菜单,但右边则是空白。
    [img http://ww1.sinaimg.cn/mw1024/9ede99aegw1ee3tge5s4bj20me0ir75o.jpg /img]
    启动OpenERP的终端一直没有报错。请问这是什么原因?

    以上都是使用firefox访问。还有一个很有意思的问题,使用Chrome的时候出现的错误的症状与firefox一样,但是给出的提示是
    OpenERP Client Error
    Uncaught TypeError: Cannot read property 'prototype' of null<br / [检测到链接无效,已移除] br />[img http://ww3.sinaimg.cn/mw1024/9ede99aegw1ee3thuaiucj20lt0h9abq.jpg /img]


  • 利用OpenERP进行项目管理时遇到一个权限上的问题
    I ito_oti

    假设有2个用户A和B,A在“项目”->“项目”->“任务”中新建了一个任务并将其指派到B。如何设置B的权限,能够使其无法删除这个指派给他的任务?现在A的项目管理权限设成了“经理”,B的权限设成了“用户”。但B却依然有权限删除A指派给他的任务。请问如何才能避免这种情况发生?

    另外想请教一下:能否在把任务指派到某位用户的同时通过某种方式(比如Email)通知到这位用户?

    恳请各位高手指点。

    (OpenERP的版本是6.1)

  • 登录

  • 没有帐号? 注册

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