Domanda

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!

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top