{
  "doctype": "DocType",
  "name": "OTO Dossier Vente",
  "module": "OTO Ventes",
  "custom": 1,
  "is_submittable": 1,
  "naming_rule": "By \"Naming Series\" field",
  "autoname": "naming_series:",
  "title_field": "prospect",
  "search_fields": "prospect,projet,workflow_state",
  "track_changes": 1,
  "track_seen": 1,
  "editable_grid": 1,
  "engine": "InnoDB",
  "field_order": [
    "naming_series",
    "sb_pipeline",
    "workflow_state",
    "statut_pipeline",
    "sb_prospect___client_0",
    "prospect",
    "client",
    "conseiller",
    "sb_projet___unit_1",
    "projet",
    "unite",
    "typologie",
    "sb_financier_2",
    "devise",
    "prix_liste",
    "montant_reservation",
    "montant_contrat",
    "sb_jalons__dates_3",
    "date_lead",
    "date_visite",
    "date_devis",
    "date_reservation",
    "date_contrat",
    "sb_confotur_4",
    "confotur_reference",
    "date_confotur_depot",
    "date_confotur_approbation",
    "confotur_notes",
    "sb_cl_ture_5",
    "motif_perte"
  ],
  "fields": [
    {
      "fieldname": "naming_series",
      "fieldtype": "Select",
      "label": "Série de nommage",
      "options": "OTO-DV-.YYYY.-",
      "default": "OTO-DV-.YYYY.-",
      "read_only": 1
    },
    {
      "fieldname": "sb_pipeline",
      "fieldtype": "Section Break",
      "label": "Pipeline"
    },
    {
      "fieldname": "workflow_state",
      "fieldtype": "Select",
      "label": "État du workflow",
      "options": "\nLead\nVisite planifiée\nDevis émis\nRéservation confirmée\nContrat signé\nCONFOTUR déposé\nCONFOTUR approuvé\nAbandonné\nPerdu",
      "read_only": 1,
      "in_list_view": 1,
      "in_standard_filter": 1
    },
    {
      "fieldname": "statut_pipeline",
      "fieldtype": "Select",
      "label": "Statut pipeline (machine)",
      "options": "\nlead\nvisite\ndevis\nreservation\ncontrat\nconfotur_depose\nconfotur_approuve\nabandonne\nperdu",
      "read_only": 1,
      "hidden": 1
    },
    {
      "fieldname": "sb_prospect___client_0",
      "fieldtype": "Section Break",
      "label": "Prospect & Client"
    },
    {
      "fieldname": "prospect",
      "fieldtype": "Link",
      "label": "Prospect",
      "options": "Lead",
      "reqd": 1,
      "in_list_view": 1,
      "in_standard_filter": 1
    },
    {
      "fieldname": "client",
      "fieldtype": "Link",
      "label": "Client (après conversion)",
      "options": "Customer"
    },
    {
      "fieldname": "conseiller",
      "fieldtype": "Link",
      "label": "Conseiller ventes",
      "options": "User",
      "in_standard_filter": 1
    },
    {
      "fieldname": "sb_projet___unit_1",
      "fieldtype": "Section Break",
      "label": "Projet & Unité"
    },
    {
      "fieldname": "projet",
      "fieldtype": "Select",
      "label": "Projet",
      "options": "\nP01 Structure\nP02 Coral del Sur\nP03 Nakua\nP04 Xamaná Cantiles\nP05 Las Colinas Najayo Arriba\nP06 Coco Real\nP07 Aqua Terra Las Terrenas\nP08 Fasano Espirilla\nP09 1069 Crisfer",
      "reqd": 1,
      "in_list_view": 1,
      "in_standard_filter": 1
    },
    {
      "fieldname": "unite",
      "fieldtype": "Data",
      "label": "Unité (code)",
      "in_list_view": 1
    },
    {
      "fieldname": "typologie",
      "fieldtype": "Data",
      "label": "Typologie"
    },
    {
      "fieldname": "sb_financier_2",
      "fieldtype": "Section Break",
      "label": "Financier"
    },
    {
      "fieldname": "devise",
      "fieldtype": "Select",
      "label": "Devise",
      "options": "USD\nDOP",
      "default": "USD",
      "reqd": 1
    },
    {
      "fieldname": "prix_liste",
      "fieldtype": "Currency",
      "label": "Prix de liste",
      "options": "devise"
    },
    {
      "fieldname": "montant_reservation",
      "fieldtype": "Currency",
      "label": "Dépôt de réservation",
      "options": "devise"
    },
    {
      "fieldname": "montant_contrat",
      "fieldtype": "Currency",
      "label": "Montant du contrat",
      "options": "devise"
    },
    {
      "fieldname": "sb_jalons__dates_3",
      "fieldtype": "Section Break",
      "label": "Jalons (dates)"
    },
    {
      "fieldname": "date_lead",
      "fieldtype": "Date",
      "label": "Date lead"
    },
    {
      "fieldname": "date_visite",
      "fieldtype": "Date",
      "label": "Date visite"
    },
    {
      "fieldname": "date_devis",
      "fieldtype": "Date",
      "label": "Date devis"
    },
    {
      "fieldname": "date_reservation",
      "fieldtype": "Date",
      "label": "Date réservation"
    },
    {
      "fieldname": "date_contrat",
      "fieldtype": "Date",
      "label": "Date contrat"
    },
    {
      "fieldname": "sb_confotur_4",
      "fieldtype": "Section Break",
      "label": "CONFOTUR"
    },
    {
      "fieldname": "confotur_reference",
      "fieldtype": "Data",
      "label": "Référence CONFOTUR"
    },
    {
      "fieldname": "date_confotur_depot",
      "fieldtype": "Date",
      "label": "Date dépôt CONFOTUR"
    },
    {
      "fieldname": "date_confotur_approbation",
      "fieldtype": "Date",
      "label": "Date approbation CONFOTUR"
    },
    {
      "fieldname": "confotur_notes",
      "fieldtype": "Small Text",
      "label": "Notes CONFOTUR"
    },
    {
      "fieldname": "sb_cl_ture_5",
      "fieldtype": "Section Break",
      "label": "Clôture"
    },
    {
      "fieldname": "motif_perte",
      "fieldtype": "Small Text",
      "label": "Motif de perte / abandon"
    }
  ],
  "permissions": [
    {
      "role": "OTO Direction Commerciale",
      "permlevel": 0,
      "read": 1,
      "cancel": 1,
      "amend": 1
    },
    {
      "role": "OTO Ventes CONFOTUR",
      "permlevel": 0,
      "read": 1,
      "write": 1,
      "submit": 1
    },
    {
      "role": "OTO Ventes Chef Équipe",
      "permlevel": 0,
      "read": 1,
      "write": 1,
      "create": 1
    },
    {
      "role": "OTO Ventes Conseiller",
      "permlevel": 0,
      "read": 1,
      "write": 1,
      "create": 1
    },
    {
      "role": "OTO Ventes Contrats",
      "permlevel": 0,
      "read": 1,
      "write": 1,
      "submit": 1
    },
    {
      "role": "OTO Ventes Directeur",
      "permlevel": 0,
      "read": 1,
      "write": 1,
      "cancel": 1,
      "amend": 1
    },
    {
      "role": "OTO Ventes Réservations",
      "permlevel": 0,
      "read": 1,
      "write": 1,
      "submit": 1
    }
  ]
}
