Frage

I'd like to add in an 'integer' field a type of date.

Like = Lifetime of a Product = 6 months

I know i can use integer for the number, like

'Lifetime' : fields.integer('Lifetime'),

But is there a possibility to add as a parameter, years, months or days?

'Lifetime' : fields.integer('Lifetime' , 'Months' , 'Years' ...),

And so on?

Thanks in advance!

War es hilfreich?

Lösung

You need to add different fields.For example In the settings menu you will be able to see a scheduler> scheduled actions. There you can see interval number and interval unit.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top