diff --git a/addons/loyalty/models/loyalty_program.py b/addons/loyalty/models/loyalty_program.py index eb9f831296f..848a41df1c9 100644 --- a/addons/loyalty/models/loyalty_program.py +++ b/addons/loyalty/models/loyalty_program.py @@ -216,7 +216,7 @@ class LoyaltyProgram(models.Model): def _program_type_default_values(self): # All values to change when program_type changes # NOTE: any field used in `rule_ids`, `reward_ids` and `communication_plan_ids` MUST be present in the kanban view for it to work properly. - first_sale_product = self.env['product.product'].search([('sale_ok', '=', True)], limit=1) + first_sale_product = self.env['product.product'].search([('company_id', 'in', [False, self.env.company.id]), ('sale_ok', '=', True)], limit=1) return { 'coupons': { 'applies_on': 'current',