第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

Odoo 10:安全組不在編輯/創(chuàng)建按鈕上工作

Odoo 10:安全組不在編輯/創(chuàng)建按鈕上工作

藍(lán)山帝景 2021-07-09 15:03:44
目的:讓編輯/創(chuàng)建按鈕只出現(xiàn)在用戶組:Manager模塊名稱: Simcard型號(hào)名稱:simcard_simcard我的 csv 文件:id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlinkdemo_admin, Model admin access,model_simcard_simcard,simcard.group_manager,1,1,1,1demo_user, Model user access,model_simcard_simcard,simcard.group_user,0,0,0,0我的 user_groups.xml :<?xml version="1.0" encoding="utf-8"?><odoo>  <data>    <record model="ir.module.category" id="module_management">      <field name="name">Simcard</field>      <field name="description">User access level for this module</field>      <field name="sequence">3</field>    </record>   <record id="group_user" model="res.groups">     <field name="name">User</field>     <field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>     <field name="users" eval="[(4, ref('base.user_root'))]"/>     <field name="category_id" ref="simcard.module_management"/>    </record>    <record id="group_manager" model="res.groups">      <field name="name">Manager</field>      <field name="implied_ids" eval="[(4, ref('simcard.group_user'))]"/>      <field name="category_id" ref="simcard.module_management"/>    </record></data></odoo>我的 views.xml :<record id="remove_edit" model="ir.ui.view">    <field name="name">remove.edit</field>    <field name="model">simcard.simcard</field>    <field name="inherit_id" ref="simcard.view_sim_form"/>    <!-- <field name="groups_id" eval="[(4, [ref('simcard.group_manager')])]"/> -->    <field name="arch" type="xml">        <xpath expr="//form" position="attributes">            <attribute name="edit">true</attribute>            <attribute name="groups">simcard.group_manager</attribute>        </xpath>    </field>    </record>普通用戶仍會(huì)顯示此編輯按鈕。
查看完整描述

2 回答

?
holdtom

TA貢獻(xiàn)1805條經(jīng)驗(yàn) 獲得超10個(gè)贊

在 csv 的 model_id:id 列中,添加您的module_name。前:

simcard.model_simcard_simcard


查看完整回答
反對(duì) 回復(fù) 2021-07-13
  • 2 回答
  • 0 關(guān)注
  • 205 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)