[IMP] stock: allow printing packages directly from picking
This commit adds a new print menu option for pickings so users no longer have to click on picking form > Packages smartbutton > switch to list > select all packages > Print "Package Barcode with Content" to have the same result. Part of Task: 2494740 Related ENT PR: odoo/enterprise#23323 Part-of: odoo/odoo#82389
This commit is contained in:
@@ -88,5 +88,10 @@
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
|
||||
<template id="report_picking_packages">
|
||||
<t t-set="docs" t-value="docs.move_line_ids.mapped('result_package_id')"/>
|
||||
<t t-call="stock.report_package_barcode"/>
|
||||
</template>
|
||||
</data>
|
||||
</odoo>
|
||||
|
||||
@@ -21,6 +21,17 @@
|
||||
<field name="binding_model_id" ref="model_stock_picking"/>
|
||||
<field name="binding_type">report</field>
|
||||
</record>
|
||||
<record id="action_report_picking_packages" model="ir.actions.report">
|
||||
<field name="name">Packages</field>
|
||||
<field name="model">stock.picking</field>
|
||||
<field name="report_type">qweb-pdf</field>
|
||||
<field name="report_name">stock.report_picking_packages</field>
|
||||
<field name="report_file">stock.report_picking_packages</field>
|
||||
<field name="print_report_name">'Packages - %s' % (object.name)</field>
|
||||
<field name="binding_model_id" ref="model_stock_picking"/>
|
||||
<field name="binding_type">report</field>
|
||||
<field name="groups_id" eval="[Command.link(ref('stock.group_tracking_lot'))]"/>
|
||||
</record>
|
||||
<record id="action_report_inventory" model="ir.actions.report">
|
||||
<field name="name">Count Sheet</field>
|
||||
<field name="model">stock.quant</field>
|
||||
|
||||
Reference in New Issue
Block a user