parameters: (self, product, **values)
return_statement: return delay + supplier_delay + security_delay + days_to_purchase, delay_description
docstring: Add the company security lead time, days to purchase and the supplier
          delay to the cumulative delay and cumulative description. The days to
          purchase and company lead time are always displayed for onboarding
          purpose in order to indicate that those options are available.
docstring_summary: Add the company security lead time, days to purchase and the supplier
          delay to the cumulative delay and cumulative description. The days to
          purchase and company lead time are always displayed for onboarding
          purpose in order to indicate that those options are available.
docstring_tokens: Add the company security lead time days to purchase and the supplier delay to the cumulative delay and cumulative description . The days to purchase and company lead time are always displayed for onboarding purpose in order to indicate that those options are available .
function: def _get_lead_days(self, product, **values):
          """Add the company security lead time, days to purchase and the supplier
          delay to the cumulative delay and cumulative description. The days to
          purchase and company lead time are always displayed for onboarding
          purpose in order to indicate that those options are available.
          """
          delay, delay_description = super()._get_lead_days(product, **values)
          bypass_delay_description = self.env.context.get('bypass_delay_description')
          buy_rule = self.filtered(lambda r: r.action == 'buy')
          seller = 'supplierinfo' in values and values['supplierinfo'] or product.with_company(buy_rule.company_id)._select_seller(quantity=None)
          if not buy_rule or not seller:
              return delay, delay_description
          buy_rule.ensure_one()
          supplier_delay = seller[0].delay
          if supplier_delay and not bypass_delay_description:
              delay_description.append((_('Vendor Lead Time'), _('+ %d day(s)', supplier_delay)))
          security_delay = buy_rule.picking_type_id.company_id.po_lead
          if not bypass_delay_description:
              delay_description.append((_('Purchase Security Lead Time'), _('+ %d day(s)', security_delay)))
          days_to_purchase = buy_rule.company_id.days_to_purchase
          if not bypass_delay_description:
              delay_description.append((_('Days to Purchase'), _('+ %d day(s)', days_to_purchase)))
          return delay + supplier_delay + security_delay + days_to_purchase, delay_description
function_tokens: def _get_lead_days ( self , product , * * values ) : delay , delay_description = super ( ) . _get_lead_days ( product , * * values ) bypass_delay_description = self . env . context . get ( 'bypass_delay_description' ) buy_rule = self . filtered ( lambda r : r . action == 'buy' ) seller = 'supplierinfo' in values and values [ 'supplierinfo' ] or product . with_company ( buy_rule . company_id ) . _select_seller ( quantity = None ) if not buy_rule or not seller : return delay , delay_description buy_rule . ensure_one ( ) supplier_delay = seller [ 0 ] . delay if supplier_delay and not bypass_delay_description : delay_description . append ( ( _ ( 'Vendor Lead Time' ) , _ ( '+ %d day(s)' , supplier_delay ) ) ) security_delay = buy_rule . picking_type_id . company_id . po_lead if not bypass_delay_description : delay_description . append ( ( _ ( 'Purchase Security Lead Time' ) , _ ( '+ %d day(s)' , security_delay ) ) ) days_to_purchase = buy_rule . company_id . days_to_purchase if not bypass_delay_description : delay_description . append ( ( _ ( 'Days to Purchase' ) , _ ( '+ %d day(s)' , days_to_purchase ) ) ) return delay + supplier_delay + security_delay + days_to_purchase , delay_description