310
309
req_date = (datetime.strptime(time.strftime('%Y-%m-%d'), '%Y-%m-%d') + relativedelta(years=2)).strftime('%Y-%m-%d')
311
310
self.write(cr, uid, ref('lot5'), {'life_date': req_date}, context=context)
320
312
I create an inventory to add products in stock
322
314
!record {model: stock.inventory, id: inv1}: