[IMP] web: remove hideKanbanOption from properties field
Purpose: -------- This commit removes the "hideKanbanOption" from the properties field. This option allowed to prevent users to make properties visible on cards (kanban cards and calendar popovers). The rationale being that there is no reason to prevent users of adding properties on cards now that they have been redesigned (see commit [1]). Task-3458627 [1]: https://github.com/odoo/odoo/commit/25e8fbe0a1327c289df826cf6eb7882098a4c325 Part-of: odoo/odoo#132578
This commit is contained in:
@@ -252,7 +252,7 @@
|
||||
</group>
|
||||
</group>
|
||||
<div class="d-flex">
|
||||
<field name="lead_properties" nolabel="1" columns="2" hideKanbanOption="1"/>
|
||||
<field name="lead_properties" nolabel="1" columns="2"/>
|
||||
</div>
|
||||
<notebook>
|
||||
<page string="Internal Notes" name="internal_notes">
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
<field name="utm_source_id"/>
|
||||
</group>
|
||||
</group>
|
||||
<field name="registration_properties" columns="2" hideKanbanOption="1"/>
|
||||
<field name="registration_properties" columns="2"/>
|
||||
</sheet>
|
||||
<div class="oe_chatter">
|
||||
<field name="message_follower_ids"/>
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
</group>
|
||||
</group>
|
||||
<div class="d-flex">
|
||||
<field name="vehicle_properties" nolabel="1" columns="2" hideKanbanOption="1"/>
|
||||
<field name="vehicle_properties" nolabel="1" columns="2"/>
|
||||
</div>
|
||||
<notebook>
|
||||
<page string="Tax Info">
|
||||
|
||||
@@ -372,7 +372,7 @@
|
||||
</group>
|
||||
</group>
|
||||
<div class="d-flex">
|
||||
<field name="task_properties" nolabel="1" columns="2" hideKanbanOption="1"/>
|
||||
<field name="task_properties" nolabel="1" columns="2"/>
|
||||
</div>
|
||||
<notebook>
|
||||
<page name="description_page" string="Description">
|
||||
|
||||
@@ -31,7 +31,6 @@ export class PropertiesField extends Component {
|
||||
context: { type: Object, optional: true },
|
||||
columns: { type: Number, optional: true },
|
||||
showAddButton: { type: Boolean, optional: true },
|
||||
hideKanbanOption: { type: Boolean, optional: true },
|
||||
};
|
||||
|
||||
setup() {
|
||||
@@ -898,7 +897,6 @@ export class PropertiesField extends Component {
|
||||
isNewlyCreated: isNewlyCreated,
|
||||
propertyIndex: propertyIndex,
|
||||
propertiesSize: propertiesList.length,
|
||||
hideKanbanOption: this.props.hideKanbanOption,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -943,7 +941,6 @@ export const propertiesField = {
|
||||
context: dynamicInfo.context,
|
||||
columns: parseInt(attrs.columns || "1"),
|
||||
showAddButton: archParseBoolean(attrs.showAddButton),
|
||||
hideKanbanOption: archParseBoolean(attrs.hideKanbanOption),
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
@@ -401,7 +401,6 @@ PropertyDefinition.props = {
|
||||
canChangeDefinition: { type: Boolean, optional: true },
|
||||
checkDefinitionWriteAccess: { type: Function, optional: true },
|
||||
propertyDefinition: { optional: true },
|
||||
hideKanbanOption: { type: Boolean, optional: true },
|
||||
context: { type: Object },
|
||||
isNewlyCreated: { type: Boolean, optional: true },
|
||||
// index and number of properties, to hide the move arrows when needed
|
||||
|
||||
@@ -156,7 +156,7 @@
|
||||
onChange.bind="onDefaultChange"
|
||||
/>
|
||||
</div>
|
||||
<div t-if="!props.hideKanbanOption and state.propertyDefinition.type !== 'separator'"
|
||||
<div t-if="state.propertyDefinition.type !== 'separator'"
|
||||
class="o_field_property_definition_kanban d-contents mb-3 mb-sm-0">
|
||||
<label t-att-for="getUniqueDomID('kanban')" class="o_form_label align-self-center text-900">
|
||||
Display in Cards
|
||||
|
||||
Reference in New Issue
Block a user