如何管理模型的安全性,例如只有销售经理才能在 odoo 10 中创建、删除、写入和读取这些记录

How to manage security of model, such as only sales manager should be able to create, delete, write and read those records in odoo 10

我是 odoo 的新手,想知道如何管理模块中的安全性,
O 已经创建了一个模型,现在给只能看到我的组 记录视图,见下面我试过的代码,

<record id="view_account_supplier_payment_tree" model="ir.ui.view">
        <field name="name">account.supplier.payment.tree</field>
        <field name="model">account.payment</field>
        <field name="arch" type="xml">
            <tree decoration-info="state=='draft'" decoration-muted="state=='reconciled'" edit="false">
                <field name="payment_date"/>
                <field name="name"/>
                <field name="journal_id"/>
                <field name="payment_method_id"/>
                <field name="partner_id" string="Vendor"/>
                <field name="amount" sum="Amount"/>
                <field name="company_id" groups="base.group_multi_company"/>
                <field name="state"/>
                <field name="currency_id" invisible="1"/>
                <field name="partner_type" invisible="1"/>
            </tree>
        </field>
    </record>

创建一个 ir.model.access.csv 文件来管理安全性,
此文件也在清单文件中提及。