【问题标题】:OpenERP 7, accounting moduleOpenERP 7、会计模块
【发布时间】:2018-03-09 04:02:14
【问题描述】:

我需要创建一组用户,他们只能查看供应商发票而不是客户发票(在会计模块中)。

我问是否可以这样做,如果可以,请问我该怎么做?

PS:我已经进行了几次搜索,但没有找到任何可能有帮助的东西。

【问题讨论】:

    标签: python openerp accounting access-rights


    【解决方案1】:

    你可以使用规则:

    <record id="your_rule_id" model="ir.rule">
        <field name="name">Rule Name</field>
        <field name="model_id" ref="model_account_invoice"/>
        <field name="groups" eval="[(6,0, [ref('your_group')])]"/>
        <field name="perm_read" eval="True"/>
        <field name="perm_write" eval="False"/>
        <field name="perm_create" eval="False"/>
        <field name="perm_unlink" eval="False"/>
        <field name="domain_force">[('your_field','=','supplier')]</field>
    </record>
    

    希望对你有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-04-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-11
      相关资源
      最近更新 更多