title: how can I add n days to a date excluding National holidays odoo
body: <p>how can I exclude national holidays ?
  I used the code below to exclude Sundays</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>    @api.depends('date_request', 'Nbr_days')
      def _compute_date_result(self):
   
          for record in self:
              business_days_to_add = record.Nbr_days
              current_date = fields.Datetime.from_string(record.date_request)
              while business_days_to_add &gt; 0:
                  current_date += timedelta(days=1)
                  weekday = current_date.weekday()
                  if weekday &gt;= 6: 
                      continue
                  business_days_to_add -= 1
              record.date_perform=current_date</code></pre>
  </div>
  </div>
  </p>