Hi,
I  have  a  python  method  which  is  going  to  return  a  value.  I  want  to  call  it  on  the  inherit_id  attribute  of  template  tag.  How  can  i  achieve  this?
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
Hi,
I  have  a  python  method  which  is  going  to  return  a  value.  I  want  to  call  it  on  the  inherit_id  attribute  of  template  tag.  How  can  i  achieve  this?
Hi
You can try this code
XML:
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-name="your_module_name.custom_template_tag_name">
<t t-set="value" t-value="your_python_method()"/>
<t t-esc="value"/>
</t>
</templates>
Hope it helps
Create an account today to enjoy exclusive features and engage with our awesome community!
Реєстрація| Related Posts | Відповіді | Переглядів | Дія | |
|---|---|---|---|---|
|  | 2 серп. 25  | 3190 | ||
|  | 3 лют. 25  | 4591 | ||
|  | 0 трав. 24  | 46 | ||
|  | 4 вер. 23  | 5890 | ||
|  | 2 вер. 23  | 7734 |