Community mailing list archives

community@mail.odoo.com

Re: QWeb, t-call value

by
Olivier Dony (odo)
- 05/06/2015 07:15:38
On 05/05/2015 09:10 AM, Paul Catinean wrote:
> I think there is a misunderstanding here
>
> t-call="" takes in a external_id, if I pass a variable name there it does not
> try to parse it but instead looks for a external_id "xml"
>
> my question was wether I can somehow pass a variable name that is interpreted
> to the t-call attribute

t-call's argument is a format string[1], so you can use variable names in it, 
like you would in a t-attf- attribute[2]:

     mytemplate
     


[1] https://www.odoo.com/documentation/8.0/glossary.html#term-format-string
[2] https://www.odoo.com/documentation/8.0/reference/qweb.html#attributes