In Odoo 12 I would like to get 90 days prior (before) to expiry of subscription and automatically and i have created a email template, i want this by code not by automated action can anyone help me with this.
in py file :
renewal_date = fields.Date ("Renewal Date", track_visibility = 'onchange')
Thank You !