|
@ -67,8 +67,8 @@ class MassEditingWizard(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', |
|
@ -82,8 +82,8 @@ class MassEditingWizard(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', |
|
@ -97,8 +97,8 @@ class MassEditingWizard(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', |
|
@ -114,8 +114,8 @@ class MassEditingWizard(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] = { |
|
@ -127,8 +127,8 @@ class MassEditingWizard(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, |
|
@ -152,8 +152,8 @@ class MassEditingWizard(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', |
|
@ -166,8 +166,8 @@ class MassEditingWizard(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'}) |
|
|