You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem?
I want to create an automatic sequence number for each record, but it seems there is no 'index' for the current record.
Describe the solution you'd like
It would be great if there were a feature similar to $as_index in qweb.
I thought I could override get_eval_context(), but it looks like that won't work for the current pattern/algorithm in excel_import_export
Additional context
{
'__EXPORT__': {
'a_42152223': {
'results': {
'A3': '${index + 1}', # if 'results' len is 3, 'index' will be 0, 1, 2 on each record
'B3': 'date${value.strftime("%d/%m/%Y") or ""}#{style=text}',
'C3': '${"NPWP"}#{style=text}',
'D3': 'partner_id.vat${value or ""}#{style=text}',
},
},
},
}
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem?
I want to create an automatic sequence number for each record, but it seems there is no 'index' for the current record.
Describe the solution you'd like
It would be great if there were a feature similar to
$as_index
in qweb.I thought I could override
get_eval_context()
, but it looks like that won't work for the current pattern/algorithm inexcel_import_export
Additional context
The text was updated successfully, but these errors were encountered: