콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3756 화면

Hi All

I Want Help Here Please I Want To Create Module And Want To Create my Own Users To Use This Module So I Want To Know The Best Way to Do That If Any One Can Help Me Please Put Your Answer

아바타
취소
베스트 답변

Create a new folder in your module called security. Add 2 files ir.model.access.csv and an xml file with any name. (here : student_security.xml ). Specify these files in the update xml portion in the __openerp__.py file of the module as :

 'update_xml': ["security/student_security.xml",
                "security/ir.model.access.csv",
                  ............other files in the module...................
               ]

in the xml file you can create groups for users. For eg:

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>

    <record id="group_student" context="{'noadmin':'True'}" model="res.groups">
        <field name="name">Student</field>
    </record>
</data>
</openerp>

After upgrading the module This creates a group Student. Now you can add any user that you create or an existing user to this group via the client. Settings/users/users/Access rights. . you will be able to see your created group as a boolen field in the section "Other" Then you can set the permissions for this group in the ir.model.access.csv file. An example for this file would be there in the module sale/security. you can refere that.

아바타
취소
작성자

Thanks A lot For Effort But Still Unknown to Me I Need Clear Example Subhin

관련 게시물 답글 화면 활동
1
2월 24
2989
0
6월 25
421
0
2월 25
1788
0
1월 25
1557
2
1월 25
8454