[FIX] stock: add tooltip for lot.label.layout quantity to print
Current behavior: If the UoM of a product is not 'units' (e.g 'kg') and tracked by lot. When trying to print labels 'per unit', some users except one label printed per 'kg'. But it will actually print one label per lot. This is not a bug so we are just adding a tooltip to make it clear that only one label will be printed for lots using UoM different from 'units' Steps to reproduce: - Create a product tracked by lots with 'kg' as UoM - Create a purchase order for 5kg of this product - Validate the PO and receive the products in 2 lots - Print the labels "Lot/SN Labels" > "One per unit" - Confirm, the PDF shows 2 labels opw-2941942 closes odoo/odoo#98812 X-original-commit: 5b2eb07d3831406146d70150e3a9f61fa3aca7c3 Signed-off-by: Adrien Widart <awt@odoo.com> Signed-off-by: Engels Robin (roen) <roen@odoo.com>
This commit is contained in:
@@ -3087,6 +3087,13 @@ msgstr ""
|
||||
msgid "If set, the operations are packed into this package"
|
||||
msgstr ""
|
||||
|
||||
#. module: stock
|
||||
#: model:ir.model.fields,help:stock.field_lot_label_layout__label_quantity
|
||||
msgid ""
|
||||
"If the UoM of a lot is not 'units', the lot will be considered as a unit and"
|
||||
" only one label will be printed for this lot."
|
||||
msgstr ""
|
||||
|
||||
#. module: stock
|
||||
#: model:ir.model.fields,help:stock.field_stock_warehouse_orderpoint__active
|
||||
msgid ""
|
||||
|
||||
@@ -12,7 +12,7 @@ class ProductLabelLayout(models.TransientModel):
|
||||
picking_ids = fields.Many2many('stock.picking')
|
||||
label_quantity = fields.Selection([
|
||||
('lots', 'One per lot/SN'),
|
||||
('units', 'One per unit')], string="Quantity to print", required=True, default='lots')
|
||||
('units', 'One per unit')], string="Quantity to print", required=True, default='lots', help="If the UoM of a lot is not 'units', the lot will be considered as a unit and only one label will be printed for this lot.")
|
||||
print_format = fields.Selection([
|
||||
('4x12', '4 x 12'),
|
||||
('zpl', 'ZPL Labels')], string="Format", default='4x12', required=True)
|
||||
|
||||
Reference in New Issue
Block a user