diff --git a/addons/lunch/models/lunch_supplier.py b/addons/lunch/models/lunch_supplier.py index f0ee44b853f..af1cf46f33a 100644 --- a/addons/lunch/models/lunch_supplier.py +++ b/addons/lunch/models/lunch_supplier.py @@ -50,7 +50,7 @@ class LunchSupplier(models.Model): country_id = fields.Many2one('res.country', related='partner_id.country_id', readonly=False) responsible_id = fields.Many2one('res.users', string="Responsible", domain=lambda self: [('groups_id', 'in', self.env.ref('lunch.group_lunch_manager').id)], - default=lambda self: self.env.user.partner_id, + default=lambda self: self.env.user, help="The responsible is the person that will order lunch for everyone" "It will be used as the 'from' when sending the automatic email")