(self, custom_id, arch)
return {'result': True}
Edit a custom view

        :param int custom_id: the id of the edited custom view
        :param str arch: the edited arch of the custom view
        :returns: dict with acknowledged operation (result set to True)
Edit a custom view
Edit a custom view
def edit_custom(self, custom_id, arch):
        """
        Edit a custom view

        :param int custom_id: the id of the edited custom view
        :param str arch: the edited arch of the custom view
        :returns: dict with acknowledged operation (result set to True)
        """
        custom_view = request.env['ir.ui.view.custom'].browse(custom_id)
        custom_view.write({ 'arch': arch })
        return {'result': True}
def edit_custom ( self , custom_id , arch ) : custom_view = request . env [ 'ir.ui.view.custom' ] . browse ( custom_id ) custom_view . write ( { 'arch' : arch } ) return { 'result' : True }