p.ry
p.ry

Reputation: 489

Delete option not available in tree view odoo

My odoo tree view doesn't seem to have a delete optionenter image description here

as seen in the image, i have only export option! Did i miss something in my view?

       <record id="physical_tree_view" model="ir.ui.view">
            <field name="name">physical.tree.view</field>
            <field name="model">arrivals.physical</field>
            <field name= "arch" type = "xml">
                <tree string="Physical">
                    <field name="lotno"/>
                </tree>
            </field>
        </record> 

the ir.model.access.csv has the line

access_arrivals_physical,access.arrivals.physical,model_arrivals_physical,base.group_user,1,1,1,0

Upvotes: 2

Views: 739

Answers (1)

CZoellner
CZoellner

Reputation: 14768

There are no delete/unlink rights on that model. The last column in the csv is for perm_unlink field in ir.model.access and you've set that to 0. So globally no one except Superuser/Odoobot has the right to delete records of that model.

Upvotes: 1

Related Questions