Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
4765 Lượt xem

The report's template 'Invoices' is wrong, please contact your administrator. Can not separate file to save as attachment because the report's template does not contains the attributes 'data-oe-model' and 'data-oe-id' on the div with 'article' classname.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

You need to define ''t-att-data-oe-model' and 't-att-data-oe-id' ' in your external_layout.

Like this:

<div class="article o_report_layout_standard" t-att-data-oe-model="o and o._name" t-att-data-oe-id="o and o.id">


    <t t-call="web.address_layout"/>


    <t t-raw="0"/>


</div>


Regards

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I have the same problem


 the problem of printing invoice is with users account but in administrator account, it is working

Ảnh đại diện
Huỷ bỏ

* could you provide steps to reproduce the same in odoo runbot, so that it can be fixed

Câu trả lời hay nhất

I got same error on Odoo 16.


The report's template False is wrong, please contact your administrator. 

Can not separate file to save as attachment because the report's template does not contains the attributes 'data-oe-model' and 'data-oe-id' on the div with 'article' classname.


Could anyone suggest solution to fix and what the template has to change ?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 25
1275
2
thg 7 25
1535
1
thg 7 25
2574
3
thg 4 25
2486
3
thg 4 25
3494