Hello,
I want to add fields in listview from fields_view_get method, as well as wants to fill up data for these fields.
I have data and fields in dictionary.
I got some help to update attributes of fields, but I want more than this.
from lxml import etree
arch = etree.XML(res['arch'])
for node in arch.xpath("//field[@name='code']"):
node.set('readonly', '1')
res['arch'] = etree.tostring(arch)
But I want to add new fields (dynamically n numbers of field) using code.
Can any one help me ?
Thanks in advance.