Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
5805 Vizualizări

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.



Imagine profil
Abandonează
Cel mai bun răspuns

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.


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mai 25
1216
1
apr. 25
2012
1
feb. 25
1255
0
apr. 25
1276
0
oct. 24
1103