Display columns on Record Board (#3626)

* Display columns on Record board

* Fix

* Fix according to review

* Fix
This commit is contained in:
Charles Bochet
2024-01-25 18:21:15 +01:00
committed by GitHub
parent ca6250286a
commit 377fd23c90
27 changed files with 591 additions and 29 deletions

View File

@ -55,6 +55,27 @@ export class OpportunityObjectMetadata extends BaseObjectMetadata {
})
probability: string;
@FieldMetadata({
type: FieldMetadataType.SELECT,
label: 'Stage',
description: 'Opportunity stage',
icon: 'IconProgressCheck',
options: [
{ value: 'new', label: 'New', position: 0, color: 'red' },
{ value: 'screening', label: 'Screening', position: 1, color: 'purple' },
{ value: 'meeting', label: 'Meeting', position: 2, color: 'sky' },
{
value: 'proposal',
label: 'Proposal',
position: 3,
color: 'turquoise',
},
{ value: 'customer', label: 'Customer', position: 4, color: 'yellow' },
],
defaultValue: { value: 'new' },
})
stage: string;
// Relations
@FieldMetadata({
type: FieldMetadataType.RELATION,