How to update warehouse doctype?

hi , i am working on the Need Branch Filter on Gross Profit Report · Issue #39879 · frappe/erpnext · GitHub this issue. i am unable to update warehouse doctype(it is not a editable doctype) so it can be associated with branch doctype.