<form>
  <notebook>
  
    <!-- 🧾 Onglet 1 : Données contractuelles et générales -->
    <page string="Contract details" id="cs">
      <label name="chart"/>
      <field name="chart"/>
      <newline/>
      <separator string="🌍 Global" id="gb"/>
      <newline/>
      <label name="laytime_type"/>
      <field name="laytime_type"/>
      <field name="laytime_clause_hour"/>
      <newline/>
      <label name="laytime_start"/>
      <field name="laytime_start"/>
      <label name="laytime_end"/>
      <field name="laytime_end"/>
      <newline/>
      <label name="pumping_rate"/>
      <field name="pumping_rate"/>
      <label name="demurrage_rate"/>
      <field name="demurrage_rate"/>
      <newline/>
      <separator string="👤 Owner" id="ow"/>
      <newline/>
      <label name="laytime_type_o"/>
      <field name="laytime_type_o"/>
      <field name="laytime_clause_hour_o"/>
      <newline/>
      <label name="laytime_start_o"/>
      <field name="laytime_start_o"/>
      <label name="laytime_end_o"/>
      <field name="laytime_end_o"/>
      <newline/>
      <label name="pumping_rate_o"/>
      <field name="pumping_rate_o"/>
      <label name="demurrage_rate_o"/>
      <field name="demurrage_rate_o"/>
      <newline/>
      <separator string="⏳ TimeBar" id="tb"/>
      <newline/>
      <label name="timebar_day"/>
      <field name="timebar_day"/>
      <label name="timebar_warn"/>
      <field name="timebar_warn"/>
    </page>

    <!-- 📄 Onglet 2 : Événements du SOF -->
    <page string="Sof events" id="event">
      <label name="sof"/>
      <field name="sof"/>
      <newline/>
      <label name="arrival_time"/>
      <field name="arrival_time"/>
      <label name="notice_of_readiness_time"/>
      <field name="notice_of_readiness_time"/>
      <newline/>
      <label name="hoses_connected"/>
      <field name="hoses_connected"/>
      <label name="start_pumping"/>
      <field name="start_pumping"/>
      <newline/>
      <label name="end_pumping"/>
      <field name="end_pumping"/>
      <label name="hoses_disconnected"/>
      <field name="hoses_disconnected"/>
      <newline/>
      <label name="sailing_time"/>
      <field name="sailing_time"/>
      <newline/>
      <field name="sof_events" colspan="4" mode="tree" view_ids="purchase_trade.view_sof_event_tree"/>
    </page>

    <!-- 🧮 Onglet 3 : Calculs de Demurrage -->
    <page string="Calculation" id="calcul">
      <label name="quantity"/>
      <field name="quantity"/>
      <newline/>
      <label name="laytime_commenced"/>
      <field name="laytime_commenced"/>
      <label name="laytime_completed"/>
      <field name="laytime_completed"/>
      <newline/>
      <label name="actual_time_used"/>
      <field name="actual_time_used"/>
      <label name="laytime_allowed"/>
      <field name="laytime_allowed"/>
      <newline/>
      <label name="deductions"/>
      <field name="deductions"/>
      <newline/>
      <label name="laytime_used"/>
      <field name="laytime_used"/>
      <label name="laytime_balance"/>
      <field name="laytime_balance"/>
      <newline/>
      <label name="compensation_type"/>
      <field name="compensation_type"/>
      <label name="compensation_amount"/>
      <field name="compensation_amount"/>
      <newline/>
      <label name="notes"/>
      <field name="notes" colspan="4"/>
    </page>

  </notebook>
</form>
