跳转至内容

Odoo 开发与实施交流

No decsciption available
2.3k 主题 10.5k 帖子
  • 关于fields.function显示网络图片的问题

    4
    0 赞同
    4 帖子
    4k 浏览
    mrshellyM

    恭喜... 给贴子加个 标签吧.. 或者后面需要了解的人会检索到.

  • 求助!openerp中project management模块,新的project添加member时的困惑

    3
    0 赞同
    3 帖子
    4k 浏览
    wjfonhandW

    这么长时间也没人回个贴。

    <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;page string=&quot;Members&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field colspan=&quot;4&quot; name=&quot;members&quot; nolabel=&quot;1&quot; context=&quot;{&#039;filter_member&#039;:&#039;1&#039;}&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tree string=&quot;Members&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;name&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;user_email&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;address_id&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tree&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/field&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/page&gt;<br />
    ```
        class res_user(osv.osv):
            _inherit = 'res.users'
       
            def search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False):
                if context and context.get('filter_member'):
                    print 'context:', context
                    project_obj = self.pool.get('project.project')
                    project_ids = project_obj.search(cr, user, [])
                    unavailable_users = []
                    for project in project_obj.browse(cr, user, project_ids, context):
                        if project.state in ('open', 'pending','draft') :
                            for member in project.members:
                                unavailable_users += [member.id]
                    available_members = self.search(cr,user, [('id','not in', unavailable_users)])
                    args.append(('id','in',available_members))
                return super(res_user, self).search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
       
        res_user()
    ```
    版权所有,翻版有理。
  • Openerp email的测试方法

    8
    0 赞同
    8 帖子
    8k 浏览
    J

    安装了poweremail模块,虽然还是会有那个warning信息,但是现在可以收到邮件了……

  • 一个产品有不同的供应商,价格不同

    3
    0 赞同
    3 帖子
    4k 浏览
    mrshellyM

    如果你在供应商界面没有这个信息的话.

    那试试 在材料的界面看看 有没有关系供应商的呢?

  • Openerp 6 和FF4 不兼容

    4
    0 赞同
    4 帖子
    3k 浏览
    J

    为了openerp,我现在也改用chrome了,总之是不能用IE的~~~~~~

  • 关于Openerp的自动提醒功能

    6
    0 赞同
    6 帖子
    4k 浏览
    J

    谢谢wjfonhand,我写了一个晚上的代码,也没写出个所以然来,你说的我看了一下,应该是可以实现的,我测试一下。
    不过我的mail设置一直有问题,能不能帮我看下,我新手求助区发布的mail设置的问题?smtp设置不成功,无法发送邮件。

  • 求助:自定义试图的继承问题

    9
    0 赞同
    9 帖子
    5k 浏览
    J

    谢谢mrshelly,我试一下这种方法

  • 求助,连锁店,需要收款机与openerp对接

    2
    0 赞同
    2 帖子
    4k 浏览
    尚无回复
  • 使用日志,调试OE程序,分析OE源码

    5
    0 赞同
    5 帖子
    5k 浏览
    JoshuaJ

    也可以使用 ide +断点的方法
    windows 下我推荐使用eclipse +pydev,直接可以查看变量值

  • 阅读源代码出现找不到的模块,求指教

    4
    0 赞同
    4 帖子
    3k 浏览
    mrshellyM

    这部分是 wiki 的 html 部分的东西, 是由 web client 渲染的...

    源码参阅 web client openerp 文件夹的 widgets 文件夹下的代码.

  • 数据库导入后的用户名和密码

    10
    0 赞同
    10 帖子
    7k 浏览
    J

    明白了,谢谢版主指点

  • 淘宝与openerp整合

    3
    0 赞同
    3 帖子
    6k 浏览
    N

    贴个API的使用代码

    <br />from taobaoapi import *<br />from trans import *<br />from params import *<br />from parsers import *<br />import utf8<br /><br />#trans = Transport(JsonParser())<br />trans = Transport(XmlParser())<br /><br />sysParams = SysParams(app_key=&#039;test&#039;)<br />sysParams.AppSecret=&#039;test&#039;<br /><br /><br />TOP = TaoBao(trans,sysParams)<br />img=open(&#039;test.jpg&#039;)<br /><br />p={&#039;num&#039;:&#039;123&#039;,<br />&nbsp; &nbsp; &#039;image&#039;:img,<br />&nbsp; &nbsp; &#039;price&#039;:&#039;321.00&#039;,<br />&nbsp; &nbsp; &#039;type&#039;:&#039;fixed&#039;,<br />&nbsp; &nbsp; &#039;stuff_status&#039;:u&#039;new&#039;,<br />&nbsp; &nbsp; &#039;title&#039;:&#039;title&#039;,<br />&nbsp; &nbsp; &#039;desc&#039;:&#039;dsffesc&#039;,<br />&nbsp; &nbsp; &#039;location.state&#039;:u&#039;浙江&#039;,<br />&nbsp; &nbsp; &#039;location.city&#039;:u&#039;杭州&#039;,<br />&nbsp; &nbsp; &#039;cid&#039;:&#039;50019153&#039;,<br />&nbsp; &nbsp; }<br /><br />#rsp = TOP.taobao.itemcats.get(fields=&#039;cid,parent_cid,name,is_parent&#039;,datetime=&#039;2000-01-01 00:00:00&#039;)<br />#for r in rsp[u&#039;item_cats&#039;][u&#039;item_cat&#039;]:<br />#&nbsp; &nbsp; print(r[u&#039;is_parent&#039;])<br />#&nbsp; &nbsp; print(&#039;\n%s\n%s&#039;%(r[u&#039;cid&#039;],r[u&#039;name&#039;]))<br />#rsp = TOP.taobao.product.img.upload(**p)<br />rsp = TOP.taobao.item.add(**p)<br />print(rsp)<br />
  • Openerp不能建立数据库 求助!!

    8
    0 赞同
    8 帖子
    8k 浏览
    J

    版主一说,我才明白为何我重启电脑就可以了,谢谢,知其然并知其所以然,这是一个良好的开始,但是我在linux的安装上还是有问题,发在安装板块了,请版主有时间的话帮忙看看,非常感谢。

  • 关于Openerp系统的升级,迁移和备份问题

    4
    0 赞同
    4 帖子
    7k 浏览
    J

    非常感谢版主的回复。谢谢哈

  • Openerp 6.0.1 的一些莫名其妙的Bug

    4
    0 赞同
    4 帖子
    5k 浏览
    wjfonhandW

    http://openerp-china.org/blog/space.php?uid=1&do=blog&id=176

  • Wizard 学习

    3
    0 赞同
    3 帖子
    4k 浏览
    mrshellyM

    赞一个...

    加些个标签吧... 可能更容易检索到...

  • [SOLVED] 继承添加 many2one 字段

    5
    0 赞同
    5 帖子
    5k 浏览
    Y

    Thanks digitalsatori & mrshelly !

    果然是x_ 的原因.

    新增的字段可以到数据表删除,但是在数据依然残留在 Administration-> Customization->Database Structure-> Fields。

  • [SOLVED] 登录用户id

    6
    0 赞同
    6 帖子
    5k 浏览
    Y

    修改 hr_expense.py

    <br />def expense_accept(self, cr, uid, ids, *args):<br />&nbsp; &nbsp; &nbsp; &nbsp; # 任何人都不能 accept 自己创建的 expense<br />&nbsp; &nbsp; &nbsp; &nbsp; userID = self.browse(cr, uid, ids)[0].user_id.id<br />&nbsp; &nbsp; &nbsp; &nbsp; if userID == uid:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; raise osv.except_osv(_(&#039;Error !&#039;), _(&#039;You can not accept your expense by yourself!&#039;))<br />
  • POSTGRES 自动备份与恢复,可用实例(Win2003)

    3
    0 赞同
    3 帖子
    6k 浏览
    mrshellyM

    赞.....

  • 推荐一本书 &lt;成本管理&gt;

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