Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
3785 Представления

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

Related Posts Ответы Просмотры Активность
2
авг. 17
9161
1
авг. 16
7727
1
окт. 15
3599
3
февр. 24
12754
5
янв. 20
8381