تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4365 أدوات العرض

Hi guys,


the following: I want to customize or replace the h2 headline of an invoice in odoo 13.


Heres my QWeb code:


<?xml version="1.0"?>
<t t-name="web.my_innovation_layout">
    <div t-attf-class="article"
       t-att-data-oe-model="o and o._name" t-att-data-oe-id="o and o.id"
       t-att-data-oe-lang="o and o.env.context.get('lang')">
    ...
    
    <!-- Page part -->
     <xpath expr="//div[@class='page']//h2" position="replace">
      <div>New stuff</div>
    </xpath>
    <t t-raw="0"/>
  </div></t>


Unfortunately, everything what comes from

<t t-raw="0"/>

is not working with xpath. If I put my xpath above it, it'll print the content just above the content from my "t-tag", if I put it below, the output is shown below.


What can I do?


Thanks!










الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
فبراير 24
2324
3
يوليو 17
10495
1
نوفمبر 15
11644
1
أغسطس 24
1992
0
يناير 24
1510