コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4167 ビュー

Hello All,

Again asked because not able to edit the question, added example

I've created report which is printed from wizard,

It works well until i add,

report.external_layout in report template,

After adding this external layout header footer appears but report content is disappeared

What could be the issue?

If i remove report.external_layout template than report works well but the report will not having header & footer then.

Edit, Eg.

<!-- Report Template--><template id="test_template">
  <t t-call="report.html_container">
          <t t-foreach="docs" t-as="doc">
              <t t-call="report.external_layout">
  <div class="page">
  <div class="row">
  <p>Report printed from wizard</p>
                      </div>
                  </div>
               </t>
      </t>
      </t>
</template>

These are the problems

1. If i remove external_layout template than it print the report content but there is no header,

2. if I add external_layout it just print header and footer for all records not content.

What can be issue?

Do i need add something else with my parser class?

Please help

Thank you.

Prince.

アバター
破棄
最善の回答

Hi prince,

Try this internal layout instead of external layout, because for wizard report it only supports internal layout.


Here is the syntax.

report.internal_layout

Just replace external with internal, it will work perfectly but it will give you the different header footer than the normal, which is normally used for summary report.

For the reference you can see all accounting reports those are generated through wizard, those all are following the internal layout only. external layout is not used anywhere so probably external layout cannot be used for the report those are generated from wizard. 

May be someone has idea how to apply external layout on it, it would help me as well.

Hope this will help.

Rgds,

Anil Kesariya.

アバター
破棄
著作者

@Anil thanks, yes it working

関連投稿 返信 ビュー 活動
1
7月 16
3264
0
4月 20
2304
3
8月 18
9945
2
2月 16
8813
5
11月 24
45855