سؤال

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!

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top