How to remove buttons from Child Table?

Hello,

I want to remove the Add, Delete (that shows when a row is checked) and Edit buttons from Child Table.

How can I do that?

TIA

Yogi Yang

1 Like

You can achieve using the Role permission

For more details

https://docs.erpnext.com/docs/v13/user/manual/en/setting-up/users-and-permissions/role-based-permissions

@YogiYang use js in the refresh section

cur_frm.get_field("table_name").grid.wrapper.find('.btn-open-row').hide();
cur_frm.get_field("table_name").grid.cannot_add_rows = true;
refresh_field("table_name");

or set the table as read only .

2 Likes