|
@ -30,7 +30,6 @@ class mass_editing_wizard(osv.osv_memory): |
|
|
_columns = { |
|
|
_columns = { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False): |
|
|
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False): |
|
|
result = super(mass_editing_wizard, self).fields_view_get(cr, uid, view_id, view_type, context, toolbar, submenu) |
|
|
result = super(mass_editing_wizard, self).fields_view_get(cr, uid, view_id, view_type, context, toolbar, submenu) |
|
|
if context.get('mass_editing_object'): |
|
|
if context.get('mass_editing_object'): |
|
@ -67,7 +66,6 @@ class mass_editing_wizard(osv.osv_memory): |
|
|
elif field.ttype == 'selection': |
|
|
elif field.ttype == 'selection': |
|
|
field_info = model_obj.fields_get(cr, uid, [field.name], context) |
|
|
field_info = model_obj.fields_get(cr, uid, [field.name], context) |
|
|
all_fields["selection_"+field.name] = {'type':'selection', 'string': field_info[field.name]['string'], 'selection':[('set', 'Set'), ('remove', 'Remove')]} |
|
|
all_fields["selection_"+field.name] = {'type':'selection', 'string': field_info[field.name]['string'], 'selection':[('set', 'Set'), ('remove', 'Remove')]} |
|
|
field_info = model_obj.fields_get(cr, uid, [field.name], context) |
|
|
|
|
|
etree.SubElement(xml_group, 'field', {'name': "selection_"+field.name, 'colspan':'2'}) |
|
|
etree.SubElement(xml_group, 'field', {'name': "selection_"+field.name, 'colspan':'2'}) |
|
|
etree.SubElement(xml_group, 'field', {'name': field.name, 'nolabel':'1', 'colspan':'2', 'attrs':"{'invisible':[('selection_"+field.name+"','=','remove')]}"}) |
|
|
etree.SubElement(xml_group, 'field', {'name': field.name, 'nolabel':'1', 'colspan':'2', 'attrs':"{'invisible':[('selection_"+field.name+"','=','remove')]}"}) |
|
|
all_fields[field.name] = {'type':field.ttype, 'string': field.field_description, 'selection': field_info[field.name]['selection']} |
|
|
all_fields[field.name] = {'type':field.ttype, 'string': field.field_description, 'selection': field_info[field.name]['selection']} |
|
|