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

1

125997125

@125997125
关于
帖子
5
主题
4
群组
0
粉丝
0
关注
0

帖子

最新 最佳 有争议的

  • Openerp7.0有树(tree)控件吗?不是tree视图
    1 125997125

    请问下openerp7.0有树(tree)控件吗?不是tree视图,就是那种很直观的一颗树,我听说产品模块那里有,可是我怎么找不到呢
    大神求助啊!!!


  • 请问一下many2one的问题
    1 125997125

    各位大神,我有A,B,C三个对象,他们之间的关系是这样的:
    A---many2one----B
    A---one2many----C
    C呢有个字段是类似下拉框的那种,假设是status字段,

    现在我要在A的新建视图(FORM视图)里选择B,然后呢在A的视图里又新建个C,但是C中的status字段又受所选择的B来约束,比如选择B1,那么status字段只有3个,选择B2,那么status字段只有2个。
    请问这个需求好实现吗?如何实现呢?谢谢!


  • Openerp有定时任务的模块可以参考吗?
    1 125997125

    我现在有张任务计划表,比如我设定了每天的某一个时间段需要某个员工去做些事情(就相当于给任务计划添加了时间策略),但是我不知道如何让它再每天的00:00就自动分发任务给员工,这个该怎么实现呢?
    谢谢!


  • 请问下用代码如何设置自己的模块访问权限??
    1 125997125

    res_id是什么意思呢??
    我可不可以这么认为 对于openerp的XML文件中的每一个<record>都是对应存储在数据库中的一条记录?
    比如
    <record model="res.groups" id="base.group_user">
            <field name="comment">user will be able to manage his own human resources stuff (leave request, timesheets, ...), if he is linked to an employee in the system.</field>
        </record>

    这个表示的是 在res.groups表中有一条记录,它的字段"comment"为user will be able to manage his own human resources stuff (leave request, timesheets, ...), if he is linked to an employee in the system.可是这么认为的话,这条记录就只有comment字段有值吗??


  • 请问下用代码如何设置自己的模块访问权限??
    1 125997125

    我是模仿hr模块中的XML文件(hr_security.xml),可是有的地方看不懂啊,以下是文件的内容:
    <openerp>
    <data noupdate="0">

        <record model="res.groups" id="base.group_user">
            <field name="comment">user will be able to manage his own human resources stuff (leave request, timesheets, ...), if he is linked to an employee in the system.</field>
        </record>

        <record id="base.group_hr_user" model="res.groups">
            <field name="name">Officer</field>
            <field name="category_id" ref="base.module_category_human_resources"/>
            <field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
            <field name="comment">the user will be able to approve document created by employees.</field>
        </record>
        <record id="base.group_hr_manager" model="res.groups">
            <field name="name">Manager</field>
            <field name="comment">the user will have an access to the human resources configuration as well as statistic reports.</field>
            <field name="category_id" ref="base.module_category_human_resources"/>
            <field name="implied_ids" eval="[(4, ref('base.group_hr_user'))]"/>
            <field name="users" eval="[(4, ref('base.user_root'))]"/>
        </record>

    </data>

    <data noupdate="1">

        <record id="hr_dept_comp_rule" model="ir.rule">
            <field name="name">Department multi company rule</field>
            <field model="ir.model" name="model_id" ref="model_hr_department"/>
            <field eval="True" name="global"/>
            <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
        </record>
        <record id="hr_job_comp_rule" model="ir.rule">
            <field name="name">Job multi company rule</field>
            <field model="ir.model" name="model_id" ref="model_hr_job"/>
            <field eval="True" name="global"/>
            <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
        </record>

    </data>
    </openerp>

    我看不懂ref和eval的意思,想来想去还是没想通... eval="[(4, ref('base.group_hr_user'))]"这个是感觉最诡异的..
    有哪位高人能解释解释吗?

  • 登录

  • 没有帐号? 注册

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