diff --git a/addons/stock/models/stock_warehouse.py b/addons/stock/models/stock_warehouse.py index 04b338770ad..73f13545b7a 100644 --- a/addons/stock/models/stock_warehouse.py +++ b/addons/stock/models/stock_warehouse.py @@ -965,9 +965,10 @@ class Orderpoint(models.Model): 'product.product', 'Product', domain=[('type', '=', 'product')], ondelete='cascade', required=True) product_uom = fields.Many2one( - 'uom.uom', 'Product Unit of Measure', related='product_id.uom_id', + 'uom.uom', 'Unit of Measure', related='product_id.uom_id', readonly=True, required=True, default=lambda self: self._context.get('product_uom', False)) + product_uom_name = fields.Char(string='Product unit of measure label', related='product_uom.display_name', readonly=True) product_min_qty = fields.Float( 'Minimum Quantity', digits='Product Unit of Measure', required=True, help="When the virtual stock equals to or goes below the Min Quantity specified for this field, Odoo generates " diff --git a/addons/stock/views/stock_warehouse_views.xml b/addons/stock/views/stock_warehouse_views.xml index 6732bd26a39..658f0b262f5 100644 --- a/addons/stock/views/stock_warehouse_views.xml +++ b/addons/stock/views/stock_warehouse_views.xml @@ -169,10 +169,10 @@ - + @@ -201,35 +201,43 @@ stock.warehouse.orderpoint + + + Run the scheduler manually to trigger the reordering rules right now. + + - - - Run the scheduler manually to trigger the reordering rules right now. - - + + + + + - + + + + + + + + + + + - - + + + + - - - - - - - - -