콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
4502 화면

Hi everyone, could you please tell how can i change attribute in the view using 'node.set' please?

아바타
취소
베스트 답변

You can change attribute of view using node.set in py file

you find many example in openerp addons

like

doc = etree.XML(res['arch'])
for node in doc.xpath("//field[@name='reference']"):
    node.set('invisible', '0')
아바타
취소
작성자

but why i can see its used only in fields_view_get function. and i want to use it in my function but i don't know how to get the etree and doc variable. could you please help me?