[REF] *: relative width of a field is no longer supported in list views
Since the conversion of the list view to owl, the relative field size
has not been reimplemented. We have decided not to support it anymore.
So we will remove all its uses.
The relative width consists in adding a width attribute with a
value. This value corresponds to the weight of the field, the higher
it is, the more space the field will take. This size is only used when
the list is empty.
Example of this:
<tree>
<field ... width="2">
<field ... width="1">
</tree>
The first field will take 2x more space than the first one when the list
is empty.
closes odoo/odoo#110382
Related: odoo/documentation#3375
Related: odoo/enterprise#36020
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
@@ -176,12 +176,12 @@
|
||||
<field name="ref" optional="hide" readonly="False"/>
|
||||
<field name="product_id" readonly="1" optional="hide"/>
|
||||
<field name="name" optional="show"/>
|
||||
<field name="tax_ids" widget="many2many_tags" width="0.5" optional="hide" readonly="1"/>
|
||||
<field name="tax_ids" widget="many2many_tags" optional="hide" readonly="1"/>
|
||||
<field name="amount_currency" groups="base.group_multi_currency" optional="show" readonly="1" attrs="{'invisible':[('is_same_currency', '=', True)]}"/>
|
||||
<field name="currency_id" readonly="1" groups="base.group_multi_currency" optional="hide" string="Currency" attrs="{'invisible':[('is_same_currency', '=', True)]}"/>
|
||||
<field name="debit" sum="Total Debit" readonly="1"/>
|
||||
<field name="credit" sum="Total Credit" readonly="1"/>
|
||||
<field name="tax_tag_ids" string="Tax Grids" widget="many2many_tags" width="0.5" optional="hide"/>
|
||||
<field name="tax_tag_ids" string="Tax Grids" widget="many2many_tags" optional="hide"/>
|
||||
<field name="discount_date" string="Discount Date" optional="hide" />
|
||||
<field name="discount_amount_currency" string="Discount Amount" optional="hide" />
|
||||
<field name="tax_line_id" string="Originator Tax" optional="hide" readonly="1"/>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<field name="company_id" groups="base.group_multi_company" optional="hide"/>
|
||||
<field name="start_date"/>
|
||||
<field name="end_date"/>
|
||||
<field name="color" widget="color_picker" width="1"/>
|
||||
<field name="color" widget="color_picker"/>
|
||||
<field name="department_ids" widget="many2many_tags"/>
|
||||
<field name="resource_calendar_id" optional="hide"/>
|
||||
</tree>
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
<field name="allowed_operation_ids" invisible="1"/>
|
||||
<field name="operation_id" groups="mrp.group_mrp_routings" optional="hidden" attrs="{'column_invisible': [('parent.type','not in', ('normal', 'phantom'))]}" options="{'no_quick_create':True,'no_create_edit':True}"/>
|
||||
<field name="tracking" invisible="1"/>
|
||||
<field name="manual_consumption" groups="mrp.group_mrp_routings" optional="hide" width="1.0" attrs="{'readonly': ['|', ('tracking', '!=', 'none'), ('operation_id', '!=', False)]}"/>
|
||||
<field name="manual_consumption" groups="mrp.group_mrp_routings" optional="hide" attrs="{'readonly': ['|', ('tracking', '!=', 'none'), ('operation_id', '!=', False)]}"/>
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<field name="workcenter_id"/>
|
||||
<field name="time_mode" optional="show"/>
|
||||
<field name="time_computed_on" optional="hide"/>
|
||||
<field name="time_cycle" widget="float_time" string="Duration (minutes)" width="1.5"/>
|
||||
<field name="time_cycle" widget="float_time" string="Duration (minutes)"/>
|
||||
<field name="company_id" optional="hide" groups="base.group_multi_company"/>
|
||||
<field name="possible_bom_product_template_attribute_value_ids" invisible="1"/>
|
||||
<field name="bom_product_template_attribute_value_ids" optional="hide" widget="many2many_tags" options="{'no_create': True}" groups="product.group_product_variant"/>
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
title="Open Work Order"
|
||||
context="{'default_workcenter_id': workcenter_id}"/>
|
||||
<field name="show_json_popover" invisible="1"/>
|
||||
<field name="json_popover" widget="mrp_workorder_popover" string=" " width="0.1" attrs="{'invisible': [('show_json_popover', '=', False)]}"/>
|
||||
<field name="json_popover" widget="mrp_workorder_popover" string=" " attrs="{'invisible': [('show_json_popover', '=', False)]}"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<field name="product_qty"/>
|
||||
<field name="production_capacity"/>
|
||||
<field name="product_uom_id" groups="uom.group_uom"/>
|
||||
<button name="action_prepare_split" type="object" icon="fa-scissors" width="0.1" title="Split Production"/>
|
||||
<button name="action_prepare_split" type="object" icon="fa-scissors" title="Split Production"/>
|
||||
</tree>
|
||||
</field>
|
||||
<footer>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<xpath expr="//field[@name='move_ids_without_package']//tree//button[@name='action_show_details']" position="after">
|
||||
<field name="show_subcontracting_details_visible" invisible="1"/>
|
||||
<button name="action_show_subcontract_details" string="Register components for subcontracted product" type="object" icon="fa-sitemap"
|
||||
width="0.1" attrs="{'invisible': [('show_subcontracting_details_visible', '=', False)]}"/>
|
||||
attrs="{'invisible': [('show_subcontracting_details_visible', '=', False)]}"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -34,11 +34,11 @@
|
||||
<field name="product_qty" invisible="1" readonly="1"/>
|
||||
<field name="quantity_done" string="Done"/>
|
||||
<field name="product_uom" groups="uom.group_uom"/>
|
||||
<button name="action_show_details" type="object" icon="fa-list" width="0.1" title="Details"
|
||||
<button name="action_show_details" type="object" icon="fa-list" title="Details"
|
||||
attrs="{'invisible': [('show_details_visible', '=', False)]}" context="{'is_subcontracting_portal': 1}"/>
|
||||
<field name="show_subcontracting_details_visible" invisible="1"/>
|
||||
<button name="action_show_subcontract_details" string="Register components for subcontracted product" type="object" icon="fa-sitemap"
|
||||
width="0.1" attrs="{'invisible': [('show_subcontracting_details_visible', '=', False)]}"/>
|
||||
attrs="{'invisible': [('show_subcontracting_details_visible', '=', False)]}"/>
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
|
||||
@@ -691,7 +691,7 @@
|
||||
<field name="sequence" invisible="1"/>
|
||||
<field name="message_needaction" invisible="1"/>
|
||||
<field name="active" invisible="1"/>
|
||||
<field name="is_favorite" string="Favorite" nolabel="1" width="1" widget="boolean_favorite" optional="hide"/>
|
||||
<field name="is_favorite" string="Favorite" nolabel="1" widget="boolean_favorite" optional="hide"/>
|
||||
<field name="display_name" string="Name" class="fw-bold"/>
|
||||
<field name="partner_id" optional="show" string="Customer"/>
|
||||
<field name="company_id" optional="show" groups="base.group_multi_company" options="{'no_create': True, 'no_open': True}"/>
|
||||
|
||||
@@ -207,7 +207,7 @@
|
||||
<tree string="Working Time" editable="top">
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="display_type" invisible="1"/>
|
||||
<field name="display_name" width="1" string=" " attrs="{'invisible': [('display_type', '!=', 'line_section')]}"/>
|
||||
<field name="display_name" string=" " attrs="{'invisible': [('display_type', '!=', 'line_section')]}"/>
|
||||
<field name="name" attrs="{'invisible': [('display_type', '=', 'line_section')]}"/>
|
||||
<field name="dayofweek"/>
|
||||
<field name="day_period"/>
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
<field name="qty_to_deliver" invisible="1"/>
|
||||
<field name="is_mto" invisible="1"/>
|
||||
<field name="display_qty_widget" invisible="1"/>
|
||||
<widget name="qty_at_date_widget" width="0.1"/>
|
||||
<widget name="qty_at_date_widget"/>
|
||||
</xpath>
|
||||
<xpath expr="//page/field[@name='order_line']/tree/field[@name='qty_delivered']" position="after">
|
||||
<!-- below fields are used in the widget qty_at_date_widget -->
|
||||
|
||||
@@ -299,11 +299,10 @@
|
||||
context="{'default_company_id': company_id, 'default_product_id': product_id, 'active_picking_id': parent.id}"
|
||||
domain="[('product_id','=',product_id)]"
|
||||
/>
|
||||
<button name="action_show_details" type="object" icon="fa-list" width="0.1" title="Details"
|
||||
<button name="action_show_details" type="object" icon="fa-list" title="Details"
|
||||
attrs="{'invisible': [('show_details_visible', '=', False)]}" options='{"warn": true}'/>
|
||||
<button name="action_assign_serial" type="object"
|
||||
icon="fa-plus-square"
|
||||
width="0.1"
|
||||
role="img" title="Assign Serial Numbers"
|
||||
attrs="{'invisible': ['|', ('display_assign_serial', '=', False), ('show_operations', '=', False)]}"/>
|
||||
</tree>
|
||||
|
||||
Reference in New Issue
Block a user