[REF] web, *: remove one2many_list widget
This widget was exactly the same as a `one2many` and was kept for backward compatibility reasons. It can be safely removed in master. Related to task 1918327
This commit is contained in:
@@ -342,7 +342,7 @@
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="Journal Items">
|
||||
<field name="line_ids" widget="one2many_list"
|
||||
<field name="line_ids" widget="one2many"
|
||||
context="{'line_ids': line_ids, 'journal_id': journal_id }">
|
||||
<tree editable="bottom" string="Journal Items">
|
||||
<field name="tax_line_id" invisible="1"/>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
<notebook>
|
||||
<page name="tax_mapping" string="Tax Mapping">
|
||||
<group>
|
||||
<field name="tax_ids" widget="one2many_list" nolabel="1">
|
||||
<field name="tax_ids" widget="one2many" nolabel="1">
|
||||
<tree name="tax_map_tree" string="Tax Mapping" editable="bottom">
|
||||
<field name="tax_src_id" domain="[('type_tax_use', '!=', None)]"/>
|
||||
<field name="tax_dest_id" domain="[('type_tax_use', '!=', None)]"/>
|
||||
@@ -56,7 +56,7 @@
|
||||
</page>
|
||||
<page name="account_mapping" string="Account Mapping" groups="account.group_account_user">
|
||||
<group>
|
||||
<field name="account_ids" widget="one2many_list" nolabel="1">
|
||||
<field name="account_ids" widget="one2many" nolabel="1">
|
||||
<tree string="Account Mapping" editable="bottom">
|
||||
<field name="account_src_id"/>
|
||||
<field name="account_dest_id"/>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<field name="active_analytic_distribution" groups="analytic.group_analytic_accounting"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</group>
|
||||
<field name="analytic_distribution_ids" nolabel="1" widget="one2many_list"
|
||||
<field name="analytic_distribution_ids" nolabel="1" widget="one2many"
|
||||
attrs="{'invisible': [('active_analytic_distribution', '=', False)]}" groups="analytic.group_analytic_accounting">
|
||||
<tree string="Analytic Distribution" editable="bottom">
|
||||
<field name="account_id"/>
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="Components">
|
||||
<field name="bom_line_ids" widget="one2many_list" context="{'default_parent_product_tmpl_id': product_tmpl_id}">
|
||||
<field name="bom_line_ids" widget="one2many" context="{'default_parent_product_tmpl_id': product_tmpl_id}">
|
||||
<tree string="Components" editable="bottom">
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="product_id" context="{'default_type': 'product'}"/>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
</group>
|
||||
<group name="values_ids">
|
||||
<label for="value_ids" string="Attribute Values"/>
|
||||
<field name="value_ids" widget="one2many_list" nolabel="1">
|
||||
<field name="value_ids" widget="one2many" nolabel="1">
|
||||
<tree string="Values" editable="bottom">
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="name"/>
|
||||
@@ -75,7 +75,7 @@
|
||||
<group name="main_field">
|
||||
<label for="attribute_id" string="Attribute Name"/>
|
||||
<field name="attribute_id" nolabel="1"/>
|
||||
<field name="value_ids" widget="one2many_list">
|
||||
<field name="value_ids" widget="one2many">
|
||||
<tree string="Values">
|
||||
<field name="name"/>
|
||||
</tree>
|
||||
@@ -110,7 +110,7 @@
|
||||
<group>
|
||||
<field name="name" />
|
||||
<field name="price_extra" />
|
||||
<field name="exclude_for" widget="one2many_list" mode="tree">
|
||||
<field name="exclude_for" widget="one2many" mode="tree">
|
||||
<tree editable="top">
|
||||
<field name="product_tmpl_id" />
|
||||
<field name="value_ids" widget="many2many_tags" options="{'no_create': true}" />
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
<xpath expr="//page[@name='general_information']" position="after">
|
||||
<page name="variants" string="Variants" groups="product.group_product_variant">
|
||||
<field name="attribute_line_ids" widget="one2many_list" context="{'show_attribute': False}">
|
||||
<field name="attribute_line_ids" widget="one2many" context="{'show_attribute': False}">
|
||||
<tree string="Variants" editable="bottom">
|
||||
<field name="attribute_id"/>
|
||||
<field name="value_ids" widget="many2many_tags" options="{'no_create_edit': True}" domain="[('attribute_id', '=', attribute_id)]" context="{'default_attribute_id': attribute_id}"/>
|
||||
|
||||
@@ -78,8 +78,7 @@ registry
|
||||
.add('many2many_checkboxes', relational_fields.FieldMany2ManyCheckBoxes)
|
||||
.add('one2many', relational_fields.FieldOne2Many)
|
||||
.add('statusbar', relational_fields.FieldStatus)
|
||||
.add('reference', relational_fields.FieldReference)
|
||||
.add('one2many_list', relational_fields.FieldOne2Many);
|
||||
.add('reference', relational_fields.FieldReference);
|
||||
|
||||
// Special fields
|
||||
registry
|
||||
|
||||
@@ -1805,7 +1805,7 @@ QUnit.module('fields', {}, function () {
|
||||
data: this.data,
|
||||
arch: '<form>' +
|
||||
'<field name="name"/>' +
|
||||
'<field name="turtle_ids" widget="one2many_list">' +
|
||||
'<field name="turtle_ids" widget="one2many">' +
|
||||
'<tree string="Turtles" editable="bottom">' +
|
||||
'<field name="type_id"/>' +
|
||||
'</tree>' +
|
||||
|
||||
@@ -284,7 +284,7 @@ QUnit.module('Views', {
|
||||
data: this.data,
|
||||
arch: '<form>' +
|
||||
'<field name="name"/>' +
|
||||
'<field name="partner" widget="one2many_list" >' +
|
||||
'<field name="partner" widget="one2many" >' +
|
||||
'<tree editable="top">' +
|
||||
'<field name="display_name"/>' +
|
||||
'<field name="instrument"/>' +
|
||||
@@ -295,7 +295,7 @@ QUnit.module('Views', {
|
||||
archs: {
|
||||
'partner,false,form': '<form>' +
|
||||
'<field name="name"/>' +
|
||||
'<field name="instrument" widget="one2many_list" mode="tree"/>' +
|
||||
'<field name="instrument" widget="one2many" mode="tree"/>' +
|
||||
'</form>',
|
||||
|
||||
'instrument,false,form': '<form>'+
|
||||
|
||||
@@ -2144,10 +2144,6 @@ Relational fields
|
||||
|
||||
- Supported field types: *char, reference*
|
||||
|
||||
- one2many_list (FieldOne2Many)
|
||||
This widget is exactly the same as a FieldOne2Many. It is registered at this
|
||||
key only for backward compatibility reasons. Please avoid using this.
|
||||
|
||||
|
||||
Client actions
|
||||
==============
|
||||
|
||||
@@ -139,7 +139,7 @@
|
||||
<sheet>
|
||||
<notebook>
|
||||
<page>
|
||||
<field name="line_ids" widget="one2many_list" context="{'line_ids': line_ids}">
|
||||
<field name="line_ids" widget="one2many" context="{'line_ids': line_ids}">
|
||||
<tree editable="bottom">
|
||||
<field name="dummy"/>
|
||||
<field name="flag" invisible="1" readonly="1"/>
|
||||
|
||||
Reference in New Issue
Block a user