Community mailing list archives

community@mail.odoo.com

Re: Remove Delete Option in Odoo 9

by
gnanamuthub1112
- 10/25/2016 08:24:05
Hi,
 Sorry if i have misunderstood,
If you want to hide delete option just use delete="false" in the view(tree, form, etc).

EX:
<record id="technician_ticket_view_tree" model="ir.ui.view">
<field name="name">ticket.ticket.technician.tree</field>
<field name="model">ticket.ticket</field>
<field name="arch" type="xml">
<tree string="Ticket" delete='false'
decoration-danger="warranty=='no'" decoration-success="warranty=='yes'">
<field name="technician_id" />
    <field name="main_ticket_no" groups="base.group_multi_company" />
    <field name="name"/>
</tree>
</field>
</record>

On Tue, Oct 25, 2016 at 5:47 PM, Gaurav Kapse <gaurav.kapse@inspiritvision.com> wrote:
Hi Team,

I want to hide the 'Delete' option in Action button in Odoo 9.

I accomplished this on openerp 7 using view_list.js file 
from static -> src -> js -> view_list.js path location and commenting the Delete statement.

I want to know the equivalent file name of view_list.js of openerp 7 in odoo 9.
Attached is the screenshot for the reference.

Thanks in advance !!

Regards,
Gaurav

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe