Files
odoo_source/addons/stock/wizard/stock_lot_label_layout.xml
T
Tiffany Chang (tic) 4879da9ee5 [IMP] stock{_picking_batch}: print sn/lots from picking
Before this commit we could print the product labels of a picking from a
picking, but we couldn't print only the lots/sns. This commit adds in
this ability. Because we want to be flexible with this label printing
(i.e. have the option to choose between printing zpl or pdf + 1 per
unit or per lot/sn), we include it in the general "Print Labels" button
with additional wizards.

Note that we assume:
1. If there are no lot_ids in the picking => default to only product
   labels wizard (i.e. this also means if a picking that only creates
   New Lots/SN, lots/sns will not be printable until picking is
   validated.)
2. Lots/SN PDF labels will only be in the 4x12 label format
3. Batch pickings can also print lot/sn labels

Part of task: 2494740
Related ENT PR: odoo/enterprise#23323

closes odoo/odoo#82389

Related: odoo/upgrade#3202
Signed-off-by: Arnold Moyaux <arm@odoo.com>
2022-01-31 12:06:06 +00:00

22 lines
868 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="lot_label_layout_form_picking" model="ir.ui.view">
<field name="name">lot.label.layout.form</field>
<field name="model">lot.label.layout</field>
<field name="mode">primary</field>
<field name="priority">25</field>
<field name="arch" type="xml">
<form>
<group>
<field name="label_quantity" widget="radio"/>
<field name="print_format" widget="radio"/>
</group>
<footer>
<button name="process" string="Confirm" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
</record>
</odoo>