How to increment sequence number with respect to month and year - Odoo 11
<record id="seq_contract_sequence_code" model="ir.sequence">
This is my code for sequence number ,I have taken year and month ,that is increasing in each month and year ,
What I want is I have to newly increment the sequence when month or year changes.
That means if a new month is starting then a new contract created in the month should be 2019/06/001 in next month it should restart as 2019/07/001
How could I do this??
Thanks in advance