Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

How to print report using button ?

By
HappyOdoo
on 4/15/16, 1:25 AM 513 views

i have to print report using click on button.

i have one button print packing list in sales order screen.

i want to print data from other table sales.packing this is a custom module.

i have two .py files

first file new table is generate sales,packing 

sales.packing has 4 column. out of 4 column 1 is Many2one field from sale.order.

2nd is inherited module 

sales order there is a one filed one2Many to  connect sales.packing with sales order.


now,

i am clicking on packing list button. button is available in sales order form header.

but, print not showing any data for particular sales order.



0
yopi
On 4/16/16, 7:30 AM

Hi HappyOdoo,


Here you go:

https://github.com/odoo/odoo/blob/8.0/addons/stock_picking_wave/stock_picking_wave_view.xml#L16

and

https://github.com/odoo/odoo/blob/8.0/addons/stock_picking_wave/stock_picking_wave.py#L31


If it's a custom report, then you have to create your own template report.


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 4/15/16, 1:25 AM
Seen: 513 times
Last updated: 4/16/16, 7:30 AM