I want to make an Array from XML file and put a value into it, like in the example below I want to add 5 to the Array so it become [1,2,3,5]. Can someone teach me how to do it. I tried with my code below
<t t-set="numberArray" t-value="[1,2,3]" />
<t t-set="numberArray" t-value="numberArray.append(5)" />
<t t-esc="numberArray" />
But its not working and produces an error
TypeError: scope.numberArray.append is not a function
Help me please thankss