문제

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