|
|
@ -67,8 +67,8 @@ class MassEditingWizard(orm.TransientModel): |
|
|
|
etree.SubElement(xml_group, 'field', { |
|
|
|
'name': field.name, 'colspan': '4', 'nolabel': '1', |
|
|
|
'attrs': ( |
|
|
|
"{'invisible':[('selection__" |
|
|
|
+ field.name + "','=','remove_m2m')]}")}) |
|
|
|
"{'invisible':[('selection__" + |
|
|
|
field.name + "','=','remove_m2m')]}")}) |
|
|
|
elif field.ttype == "one2many": |
|
|
|
all_fields["selection__" + field.name] = { |
|
|
|
'type': 'selection', |
|
|
@ -82,8 +82,8 @@ class MassEditingWizard(orm.TransientModel): |
|
|
|
etree.SubElement(xml_group, 'field', { |
|
|
|
'name': field.name, 'colspan': '4', 'nolabel': '1', |
|
|
|
'attrs': ( |
|
|
|
"{'invisible':[('selection__" |
|
|
|
+ field.name + "','=','remove_o2m')]}")}) |
|
|
|
"{'invisible':[('selection__" + |
|
|
|
field.name + "','=','remove_o2m')]}")}) |
|
|
|
elif field.ttype == "many2one": |
|
|
|
all_fields["selection__" + field.name] = { |
|
|
|
'type': 'selection', |
|
|
@ -97,8 +97,8 @@ class MassEditingWizard(orm.TransientModel): |
|
|
|
etree.SubElement(xml_group, 'field', { |
|
|
|
'name': field.name, 'nolabel': '1', 'colspan': '2', |
|
|
|
'attrs': ( |
|
|
|
"{'invisible':[('selection__" |
|
|
|
+ field.name + "','=','remove')]}")}) |
|
|
|
"{'invisible':[('selection__" + |
|
|
|
field.name + "','=','remove')]}")}) |
|
|
|
elif field.ttype == "char": |
|
|
|
all_fields["selection__" + field.name] = { |
|
|
|
'type': 'selection', |
|
|
@ -114,8 +114,8 @@ class MassEditingWizard(orm.TransientModel): |
|
|
|
etree.SubElement(xml_group, 'field', { |
|
|
|
'name': field.name, 'nolabel': '1', |
|
|
|
'attrs': ( |
|
|
|
"{'invisible':[('selection__" |
|
|
|
+ field.name + "','=','remove')]}"), |
|
|
|
"{'invisible':[('selection__" + |
|
|
|
field.name + "','=','remove')]}"), |
|
|
|
'colspan': '2'}) |
|
|
|
elif field.ttype == 'selection': |
|
|
|
all_fields["selection__" + field.name] = { |
|
|
@ -127,8 +127,8 @@ class MassEditingWizard(orm.TransientModel): |
|
|
|
etree.SubElement(xml_group, 'field', { |
|
|
|
'name': field.name, 'nolabel': '1', 'colspan': '2', |
|
|
|
'attrs': ( |
|
|
|
"{'invisible':[('selection__" |
|
|
|
+ field.name + "','=','remove')]}")}) |
|
|
|
"{'invisible':[('selection__" + |
|
|
|
field.name + "','=','remove')]}")}) |
|
|
|
all_fields[field.name] = { |
|
|
|
'type': field.ttype, |
|
|
|
'string': field.field_description, |
|
|
@ -152,8 +152,8 @@ class MassEditingWizard(orm.TransientModel): |
|
|
|
etree.SubElement(xml_group, 'field', { |
|
|
|
'name': field.name, 'colspan': '4', 'nolabel': '1', |
|
|
|
'attrs': ( |
|
|
|
"{'invisible':[('selection__" |
|
|
|
+ field.name + "','=','remove')]}")}) |
|
|
|
"{'invisible':[('selection__" + |
|
|
|
field.name + "','=','remove')]}")}) |
|
|
|
else: |
|
|
|
all_fields["selection__" + field.name] = { |
|
|
|
'type': 'selection', |
|
|
@ -166,8 +166,8 @@ class MassEditingWizard(orm.TransientModel): |
|
|
|
etree.SubElement(xml_group, 'field', { |
|
|
|
'name': field.name, 'nolabel': '1', |
|
|
|
'attrs': ( |
|
|
|
"{'invisible':[('selection__" |
|
|
|
+ field.name + "','=','remove')]}"), |
|
|
|
"{'invisible':[('selection__" + |
|
|
|
field.name + "','=','remove')]}"), |
|
|
|
'colspan': '2', }) |
|
|
|
etree.SubElement( |
|
|
|
xml_form, 'separator', {'string': '', 'colspan': '4'}) |
|
|
|