Hello, I have a date field and I need to extract its month and year using studio, I tried the following, but it gives me an error, how can I solve it? I thought that I needed to compute a new month field, but I got an error with this one:
for record in self:
from datetime import datetime, date
record[("x_studio_month")] = datetime.record.x_studio_from.strftime("%B")
The error is something like:
ValueError: forbidden opcode(s) in 'for record in self:\n from datetime import datetime\n record[("x_studio_mes_desde")] = record.x_studio_desde.month': IMPORT_NAME, IMPORT_FROM