diff --git a/addons/crm/views/crm_lead_views.xml b/addons/crm/views/crm_lead_views.xml
index aacb1fbf915..8720efed338 100644
--- a/addons/crm/views/crm_lead_views.xml
+++ b/addons/crm/views/crm_lead_views.xml
@@ -259,7 +259,7 @@
+ name="lead_properties" nolabel="1" columns="2" hideKanbanOption="1"/>
diff --git a/addons/project/views/project_views.xml b/addons/project/views/project_views.xml
index 8d3100ced0b..4f94e23a729 100644
--- a/addons/project/views/project_views.xml
+++ b/addons/project/views/project_views.xml
@@ -1188,7 +1188,7 @@
+ name="task_properties" nolabel="1" columns="2" hideKanbanOption="1"/>
diff --git a/addons/web/static/src/views/fields/properties/properties_field.js b/addons/web/static/src/views/fields/properties/properties_field.js
index f12b511b2a5..1d8a0c74f55 100644
--- a/addons/web/static/src/views/fields/properties/properties_field.js
+++ b/addons/web/static/src/views/fields/properties/properties_field.js
@@ -13,6 +13,7 @@ import { usePopover } from "@web/core/popover/popover_hook";
import { sprintf } from "@web/core/utils/strings";
import { ConfirmationDialog } from "@web/core/confirmation_dialog/confirmation_dialog";
import { reposition } from '@web/core/position_hook';
+import { archParseBoolean } from '@web/views/utils';
import { Component, useRef, useState, useEffect, onWillStart } from "@odoo/owl";
@@ -447,6 +448,7 @@ export class PropertiesField extends Component {
isNewlyCreated: isNewlyCreated,
propertyIndex: propertyIndex,
propertiesSize: propertiesList.length,
+ hideKanbanOption: this.props.hideKanbanOption,
},
{
preventClose: this.checkPopoverClose,
@@ -471,10 +473,12 @@ PropertiesField.components = {
PropertiesField.props = {
...standardFieldProps,
columns: { type: Number, optional: true },
+ hideKanbanOption: { type: Boolean, optional: true },
};
PropertiesField.extractProps = ({ attrs, field }) => {
const columns = parseInt(attrs.columns || "1");
- return { columns };
+ const hideKanbanOption = archParseBoolean(attrs.hideKanbanOption);
+ return { columns, hideKanbanOption };
};
PropertiesField.displayName = _lt("Properties");
diff --git a/addons/web/static/src/views/fields/properties/property_definition.js b/addons/web/static/src/views/fields/properties/property_definition.js
index c0fb0d37b03..d10acf8a197 100644
--- a/addons/web/static/src/views/fields/properties/property_definition.js
+++ b/addons/web/static/src/views/fields/properties/property_definition.js
@@ -383,6 +383,7 @@ PropertyDefinition.props = {
readonly: { type: Boolean, optional: true },
canChangeDefinition: { type: Boolean, 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
diff --git a/addons/web/static/src/views/fields/properties/property_definition.scss b/addons/web/static/src/views/fields/properties/property_definition.scss
index ea47d5d265f..8baadbbe450 100644
--- a/addons/web/static/src/views/fields/properties/property_definition.scss
+++ b/addons/web/static/src/views/fields/properties/property_definition.scss
@@ -55,6 +55,14 @@
width: 100%;
display: inline-block !important;
}
+
+ .o-checkbox {
+ padding-left: 0 !important;
+
+ input {
+ margin-left: 0 !important;
+ }
+ }
}
.o_field_property_definition {
diff --git a/addons/web/static/src/views/fields/properties/property_definition.xml b/addons/web/static/src/views/fields/properties/property_definition.xml
index 2551d8d5ac9..86b1cbebe02 100644
--- a/addons/web/static/src/views/fields/properties/property_definition.xml
+++ b/addons/web/static/src/views/fields/properties/property_definition.xml
@@ -164,7 +164,7 @@
/>
-
+
|
View In Kanban
|