Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
726 Zobrazení

We have to pack electronics components in bags and send them to a subcontractor

To make picking easy, I would like to print all the picking labels which will be fixed to the bags.

I there of created a new report template, and wish to print 1 page (label) per move_line_ids entry.

I've tried all sorts of variations, it always prints the whole lines within one page.


<t t-name="stock.report_picking_label">

                <t t-call="web.basic_layout">

                <t t-call="web.html_container">

    <t t-foreach="docs" t-as="page_docs">

        <t t-foreach="page_docs.move_line_ids" t-as="ml">

                    <div class="page" style="page-break-after: always; padding: 10mm;">

                        <h2>Item:

   

                            <t t-esc="ml.display_name"/>

                        </h2>

                        <p>Quantity:

           

                            <t t-esc="ml.product_packaging_qty"/>

                        </p>

                    </div>

                </t>

            </t>

        </t>

    </t>

</t>

Avatar
Zrušit
Autor Nejlepší odpověď

Actually it works, its just a bug of the preview module, but when actually generating the labels it does different pages.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
srp 25
566
2
čvc 24
2012
1
srp 23
2337
1
čvc 23
2603
0
pro 22
3104