diff --git a/addons/stock/models/stock_picking.py b/addons/stock/models/stock_picking.py
index b6b31b39255e4..d94e76e5868b4 100644
--- a/addons/stock/models/stock_picking.py
+++ b/addons/stock/models/stock_picking.py
@@ -369,6 +369,7 @@ class Picking(models.Model):
help="When validating the transfer, the products will be assigned to this owner.")
printed = fields.Boolean('Printed', copy=False)
signature = fields.Image('Signature', help='Signature', copy=False, attachment=True)
+ is_signed = fields.Boolean('Is Signed', compute="_compute_is_signed")
is_locked = fields.Boolean(default=True, help='When the picking is not done this allows changing the '
'initial demand. When the picking is done this allows '
'changing the done quantities.')
@@ -411,6 +412,11 @@ def _compute_delay_alert_date(self):
for picking in self:
picking.delay_alert_date = delay_alert_date_data.get(picking.id, False)
+ @api.depends('signature')
+ def _compute_is_signed(self):
+ for picking in self:
+ picking.is_signed = picking.signature
+
@api.depends('move_lines', 'state', 'picking_type_code', 'move_lines.forecast_availability', 'move_lines.forecast_expected_date')
def _compute_products_availability(self):
self.products_availability = False
diff --git a/addons/stock/views/stock_picking_views.xml b/addons/stock/views/stock_picking_views.xml
index d233a49b4b348..80b17dbe537c9 100644
--- a/addons/stock/views/stock_picking_views.xml
+++ b/addons/stock/views/stock_picking_views.xml
@@ -189,7 +189,7 @@
-
+