parameters: (self)
docstring: Assign booth category by default if only one exists
docstring_summary: Assign booth category by default if only one exists
docstring_tokens: Assign booth category by default if only one exists
function: def _get_default_booth_category(self):
          """Assign booth category by default if only one exists"""
          category_id = self.env['event.booth.category'].search([])
          if category_id and len(category_id) == 1:
              return category_id
function_tokens: def _get_default_booth_category ( self ) : category_id = self . env [ 'event.booth.category' ] . search ( [ ] ) if category_id and len ( category_id ) == 1 : return category_id