Navigation Menu

Skip to content

Commit

Permalink
[FIX] mass_editing: modifiers attribute must be valid JSON
Browse files Browse the repository at this point in the history
Replace tuples with arrays in the value of the modifiers attribute.
  • Loading branch information
LeartS committed Mar 21, 2017
1 parent c08d17c commit 0ef5be8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion mass_editing/__manifest__.py
Expand Up @@ -4,7 +4,7 @@

{
'name': 'Mass Editing',
'version': '10.0.1.1.0',
'version': '10.0.1.1.1',
'author': 'Serpent Consulting Services Pvt. Ltd., '
'MONK Software, '
'Odoo Community Association (OCA)',
Expand Down
20 changes: 10 additions & 10 deletions mass_editing/wizard/mass_editing_wizard.py
Expand Up @@ -125,8 +125,8 @@ def fields_view_get(self, view_id=None, view_type='form', toolbar=False,
'colspan': '4',
'attrs': ("{'invisible':[('selection__" +
field.name + "', '=', 'remove')]}"),
'modifiers': ('{"invisible":[("selection__' +
field.name + '", "=", "remove")]}'),
'modifiers': ('{"invisible":[["selection__' +
field.name + '", "=", "remove"]]}'),
})
elif field.ttype == "char":
all_fields["selection__" + field.name] = {
Expand All @@ -148,8 +148,8 @@ def fields_view_get(self, view_id=None, view_type='form', toolbar=False,
'nolabel': '1',
'attrs': ("{'invisible':[('selection__" +
field.name + "','=','remove')]}"),
'modifiers': ('{"invisible":[("selection__' +
field.name + '","=","remove")]}'),
'modifiers': ('{"invisible":[["selection__' +
field.name + '","=","remove"]]}'),
'colspan': '4',
})
elif field.ttype == 'selection':
Expand All @@ -168,8 +168,8 @@ def fields_view_get(self, view_id=None, view_type='form', toolbar=False,
'colspan': '4',
'attrs': ("{'invisible':[('selection__" +
field.name + "', '=', 'remove')]}"),
'modifiers': ('{"invisible":[("selection__' +
field.name + '", "=", "remove")]}'),
'modifiers': ('{"invisible":[["selection__' +
field.name + '", "=", "remove"]]}'),
})
all_fields[field.name] = {
'type': field.ttype,
Expand Down Expand Up @@ -206,8 +206,8 @@ def fields_view_get(self, view_id=None, view_type='form', toolbar=False,
'nolabel': '1',
'attrs': ("{'invisible':[('selection__" +
field.name + "','=','remove')]}"),
'modifiers': ('{"invisible":[("selection__' +
field.name + '","=","remove")]}'),
'modifiers': ('{"invisible":[["selection__' +
field.name + '","=","remove"]]}'),
})
else:
all_fields["selection__" + field.name] = {
Expand All @@ -224,8 +224,8 @@ def fields_view_get(self, view_id=None, view_type='form', toolbar=False,
'nolabel': '1',
'attrs': ("{'invisible':[('selection__" +
field.name + "','=','remove')]}"),
'modifiers': ('{"invisible":[("selection__' +
field.name + '","=","remove")]}'),
'modifiers': ('{"invisible":[["selection__' +
field.name + '","=","remove"]]}'),
'colspan': '4',
})
etree.SubElement(xml_form, 'separator', {
Expand Down

0 comments on commit 0ef5be8

Please sign in to comment.