}
},
get_arch_fragment: function() {
- var doc = this.fvg.arch_doc.documentElement.cloneNode(true);
+ var doc = $.parseXML(instance.web.json_node_to_xml(this.fvg.arch)).documentElement;
// IE won't allow custom button@type and will revert it to spec default : 'submit'
$('button', doc).each(function() {
$(this).attr('data-button-type', $(this).attr('type')).attr('type', 'button');
*/
instance.web.fields_view_get = function(args) {
function postprocess(fvg) {
- fvg.arch_string = fvg.arch;
- fvg.arch_doc = $.parseXML(fvg.arch);
- fvg.arch = instance.web.xml_to_json(fvg.arch_doc, true);
+ var doc = $.parseXML(fvg.arch).documentElement;
+ fvg.arch = instance.web.xml_to_json(doc, (doc.nodeName.toLowerCase() !== 'kanban'));
if ('id' in fvg.fields) {
// Special case for id's
var id_field = fvg.fields['id'];