|
@ -69,8 +69,8 @@ class mass_editing_wizard(orm.TransientModel): |
|
|
etree.SubElement(xml_group, 'field', { |
|
|
etree.SubElement(xml_group, 'field', { |
|
|
'name': field.name, 'colspan': '4', 'nolabel': '1', |
|
|
'name': field.name, 'colspan': '4', 'nolabel': '1', |
|
|
'attrs': ( |
|
|
'attrs': ( |
|
|
"{'invisible':[('selection__" |
|
|
|
|
|
+ field.name + "','=','remove_m2m')]}")}) |
|
|
|
|
|
|
|
|
"{'invisible':[('selection__" + |
|
|
|
|
|
field.name + "','=','remove_m2m')]}")}) |
|
|
elif field.ttype == "one2many": |
|
|
elif field.ttype == "one2many": |
|
|
all_fields["selection__" + field.name] = { |
|
|
all_fields["selection__" + field.name] = { |
|
|
'type': 'selection', |
|
|
'type': 'selection', |
|
@ -84,8 +84,8 @@ class mass_editing_wizard(orm.TransientModel): |
|
|
etree.SubElement(xml_group, 'field', { |
|
|
etree.SubElement(xml_group, 'field', { |
|
|
'name': field.name, 'colspan': '4', 'nolabel': '1', |
|
|
'name': field.name, 'colspan': '4', 'nolabel': '1', |
|
|
'attrs': ( |
|
|
'attrs': ( |
|
|
"{'invisible':[('selection__" |
|
|
|
|
|
+ field.name + "','=','remove_o2m')]}")}) |
|
|
|
|
|
|
|
|
"{'invisible':[('selection__" + |
|
|
|
|
|
field.name + "','=','remove_o2m')]}")}) |
|
|
elif field.ttype == "many2one": |
|
|
elif field.ttype == "many2one": |
|
|
all_fields["selection__" + field.name] = { |
|
|
all_fields["selection__" + field.name] = { |
|
|
'type': 'selection', |
|
|
'type': 'selection', |
|
@ -99,8 +99,8 @@ class mass_editing_wizard(orm.TransientModel): |
|
|
etree.SubElement(xml_group, 'field', { |
|
|
etree.SubElement(xml_group, 'field', { |
|
|
'name': field.name, 'nolabel': '1', 'colspan': '2', |
|
|
'name': field.name, 'nolabel': '1', 'colspan': '2', |
|
|
'attrs': ( |
|
|
'attrs': ( |
|
|
"{'invisible':[('selection__" |
|
|
|
|
|
+ field.name + "','=','remove')]}")}) |
|
|
|
|
|
|
|
|
"{'invisible':[('selection__" + |
|
|
|
|
|
field.name + "','=','remove')]}")}) |
|
|
elif field.ttype == "char": |
|
|
elif field.ttype == "char": |
|
|
all_fields["selection__" + field.name] = { |
|
|
all_fields["selection__" + field.name] = { |
|
|
'type': 'selection', |
|
|
'type': 'selection', |
|
@ -115,8 +115,8 @@ class mass_editing_wizard(orm.TransientModel): |
|
|
etree.SubElement(xml_group, 'field', { |
|
|
etree.SubElement(xml_group, 'field', { |
|
|
'name': field.name, 'nolabel': '1', |
|
|
'name': field.name, 'nolabel': '1', |
|
|
'attrs': ( |
|
|
'attrs': ( |
|
|
"{'invisible':[('selection__" |
|
|
|
|
|
+ field.name + "','=','remove')]}"), |
|
|
|
|
|
|
|
|
"{'invisible':[('selection__" + |
|
|
|
|
|
field.name + "','=','remove')]}"), |
|
|
'colspan': '2'}) |
|
|
'colspan': '2'}) |
|
|
elif field.ttype == 'selection': |
|
|
elif field.ttype == 'selection': |
|
|
all_fields["selection__" + field.name] = { |
|
|
all_fields["selection__" + field.name] = { |
|
@ -128,8 +128,8 @@ class mass_editing_wizard(orm.TransientModel): |
|
|
etree.SubElement(xml_group, 'field', { |
|
|
etree.SubElement(xml_group, 'field', { |
|
|
'name': field.name, 'nolabel': '1', 'colspan': '2', |
|
|
'name': field.name, 'nolabel': '1', 'colspan': '2', |
|
|
'attrs': ( |
|
|
'attrs': ( |
|
|
"{'invisible':[('selection__" |
|
|
|
|
|
+ field.name + "','=','remove')]}")}) |
|
|
|
|
|
|
|
|
"{'invisible':[('selection__" + |
|
|
|
|
|
field.name + "','=','remove')]}")}) |
|
|
all_fields[field.name] = { |
|
|
all_fields[field.name] = { |
|
|
'type': field.ttype, |
|
|
'type': field.ttype, |
|
|
'string': field.field_description, |
|
|
'string': field.field_description, |
|
@ -153,8 +153,8 @@ class mass_editing_wizard(orm.TransientModel): |
|
|
etree.SubElement(xml_group, 'field', { |
|
|
etree.SubElement(xml_group, 'field', { |
|
|
'name': field.name, 'colspan': '4', 'nolabel': '1', |
|
|
'name': field.name, 'colspan': '4', 'nolabel': '1', |
|
|
'attrs': ( |
|
|
'attrs': ( |
|
|
"{'invisible':[('selection__" |
|
|
|
|
|
+ field.name + "','=','remove')]}")}) |
|
|
|
|
|
|
|
|
"{'invisible':[('selection__" + |
|
|
|
|
|
field.name + "','=','remove')]}")}) |
|
|
else: |
|
|
else: |
|
|
all_fields["selection__" + field.name] = { |
|
|
all_fields["selection__" + field.name] = { |
|
|
'type': 'selection', |
|
|
'type': 'selection', |
|
@ -167,8 +167,8 @@ class mass_editing_wizard(orm.TransientModel): |
|
|
etree.SubElement(xml_group, 'field', { |
|
|
etree.SubElement(xml_group, 'field', { |
|
|
'name': field.name, 'nolabel': '1', |
|
|
'name': field.name, 'nolabel': '1', |
|
|
'attrs': ( |
|
|
'attrs': ( |
|
|
"{'invisible':[('selection__" |
|
|
|
|
|
+ field.name + "','=','remove')]}"), |
|
|
|
|
|
|
|
|
"{'invisible':[('selection__" + |
|
|
|
|
|
field.name + "','=','remove')]}"), |
|
|
'colspan': '2', }) |
|
|
'colspan': '2', }) |
|
|
etree.SubElement( |
|
|
etree.SubElement( |
|
|
xml_form, 'separator', {'string': '', 'colspan': '4'}) |
|
|
xml_form, 'separator', {'string': '', 'colspan': '4'}) |
|
|