diff --git a/addons/product_expiry/models/production_lot.py b/addons/product_expiry/models/production_lot.py index 0b8f32c03fdebd7fc8e142e8ef61957faca9c756..65b26978ac04ec7a7e930a2547915b6b64bc8a1c 100644 --- a/addons/product_expiry/models/production_lot.py +++ b/addons/product_expiry/models/production_lot.py @@ -81,7 +81,7 @@ class StockLot(models.Model): for lot in alert_lots: lot.activity_schedule( 'product_expiry.mail_activity_type_alert_date_reached', - user_id=lot.product_id.responsible_id.id or SUPERUSER_ID, + user_id=lot.product_id.with_company(lot.company_id).responsible_id.id or lot.product_id.responsible_id.id or SUPERUSER_ID, note=_("The alert date has been reached for this lot/serial number") ) alert_lots.write({