Odoo Help

0

Hide a field within fields_view_get method

By
Danimar Ribeiro
on 5/21/14, 1:27 PM 1,429 views

There is no way for me to hide a field in the method fields_view_get, I tried all the possible ways to set invisible to the field, none of them worked (attrs, modifiers, invisible directly, invisible inside the tag.)

            for node in doc.xpath("//field[starts-with(@name, 'module_')]"):
                node.set('invisible', '1')  //don't work
                node.set('attrs', '{"invisible": 1 }') //don't work

What is my mistake here?

 

 

0

Prakash

--Prakash--
3238
| 5 4 7
Bikaner, India
--Prakash--

OpenERP Devloper at SunARC Technology

Prakash
On 5/26/14, 1:53 AM

Refer the LInk may be help you.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 5/21/14, 1:27 PM
Seen: 1429 times
Last updated: 3/16/15, 8:10 AM