跳至内容
菜单
此问题已终结
3 回复
3769 查看

Hi guys, I need a simple form (list) of products so I added <report> into the xml, now I can see print button in tree view if product selected. Adapted one report(label) form from product but it's structure is horrible. So I would like to ask you for help ... how to create a simple ..... very simple form which will contain a header (title, date), table which will contain only 3 columns: name, quantity and location, no footer required. Simplest ..... Best.

Still getting an error:

TypeError: get_response() takes exactly 2 arguments (1 given)

while trying create a simple report form :(

What a'm i doing wrong ?

<?xml version="1.0" encoding="ISO-8859-1"?>

<templates xml:space="preserve">

<t t-name="Product report" t-attf-class="base #{cls}">

<div style="background-color: red;">This is simple HTML</div>

</t>

</templates>

形象
丢弃
最佳答案

Hello,

you can check this link : http://parikshitvaghasiya.blogspot.in/2015/09/qweb-report-in-odoo.html

hope this will help you.

形象
丢弃

Thank you @parikshit. It's helpful for me.

最佳答案

Hello,

You can check Yenthe's tutorial tutorial  


形象
丢弃
编写者

Thanx Ahmed

Thanks for linking it Ahmed :) +1

相关帖文 回复 查看 活动
2
8月 17
9088
1
8月 16
7712
1
10月 15
3581
3
2月 24
12722
5
1月 20
8323