<form col="4">
    <group col="2" id="na">
        <label name="name"/>
        <field name="name"/>
        <label name="type"/>
        <field name="type"/>
    </group>
    <group col="2" id="na">
        <label name="sale"/>
        <field name="sale"/>
        <label name="company"/>
        <field name="company"/>
    </group>
    <group col="2" id="na">
        <label name="applicant"/>
        <field name="applicant"/>
        <label name="beneficiary"/>
        <field name="beneficiary"/>
    </group>
    <newline/>
    <group col="2" id="na">
        <label name="amount"/>
        <field name="amount"/>
        <label name="currency"/>
        <field name="currency"/>
    </group>
    <group col="2" id="na">
        <label name="tolerance_plus"/>
        <field name="tolerance_plus"/>
        <label name="tolerance_minus"/>
        <field name="tolerance_minus"/>
    </group>
    <group col="2" id="na">
        <label name="port_of_loading"/>
        <field name="port_of_loading"/>
        <label name="port_of_discharge"/>
        <field name="port_of_discharge"/>
    </group>
    <newline/>
    <group col="2" id="na">
        <label name="partial_shipment"/>
        <field name="partial_shipment"/>
        <label name="transhipment"/>
        <field name="transhipment"/>
    </group>
    <group col="2" id="na">
        <label name="latest_shipment_date"/>
        <field name="latest_shipment_date"/>
        <label name="issue_date"/>
        <field name="issue_date"/>    
    </group>
    <group col="2" id="na">
        <label name="expiry_date"/>
        <field name="expiry_date"/>
        <label name="incoterm"/>
        <field name="incoterm"/>
    </group>
    <newline/>
    <group col="2" id="na">
        <label name="expiry_place"/>
        <field name="expiry_place"/>
        <label name="presentation_days"/>
        <field name="presentation_days"/>
    </group>
    <group col="2" id="na">
        <label name="ruleset"/>
        <field name="ruleset"/>
    </group>
    <newline/>
    <group col="2" id="na">
        <label name="issuing_bank"/>
        <field name="issuing_bank"/>
        <label name="advising_bank"/>
        <field name="advising_bank"/>
    </group>
    <group col="2" id="na">
        <label name="confirming_bank"/>
        <field name="confirming_bank"/>
        <label name="reimbursing_bank"/>
        <field name="reimbursing_bank"/>
    </group>
    <group col="2" id="na">
        <label name="bank_reference"/>
        <field name="bank_reference"/>
        <label name="our_reference"/>
        <field name="our_reference"/>
    </group>
    <notebook>
        <page string="SWIFT import" id="si">
            <label name="swift_file"/>
            <field name="swift_file"/>
            <label name="swift_execute"/>
            <field name="swift_execute"/>
            <newline/>
            <label name="swift_text"/>
            <field name="swift_text" colspan="4" height="400"/>
        </page>
        <page string="Required documents" id="rd">
            <field name="required_documents"/>
        </page>
        <page string="Risk Analysis" id="na">
            <label name="receiving_bank"/>
            <field name="receiving_bank"/>
            <label name="confirming_bank_required"/>
            <field name="confirming_bank_required"/>
            <label name="confirmation_cost"/>
            <field name="confirmation_cost"/>
            <label name="risk_level"/>
            <field name="risk_level"/>
            <label name="conditions_analysis"/>
            <field name="conditions_analysis" colspan="4" height="150"/>
        </page>
        <page string="Discrepancies" id="na">
            <label name="discrepancies_found"/>
            <field name="discrepancies_found" colspan="4">
                <!-- <tree string="Discrepancies">
                    <field name="discrepancy_type"/>
                    <field name="description"/>
                    <field name="severity"/>
                    <field name="resolved"/>
                </tree>
                <form>
                    <group col="2">
                        <label name="discrepancy_type"/>
                        <field name="discrepancy_type"/>
                        <label name="severity"/>
                        <field name="severity"/>
                        <label name="resolved"/>
                        <field name="resolved"/>
                        <label name="description"/>
                        <field name="description" colspan="2"/>
                        <label name="resolution"/>
                        <field name="resolution" colspan="2"/>
                        <label name="resolved_date"/>
                        <field name="resolved_date"/>
                        <label name="resolved_by"/>
                        <field name="resolved_by"/>
                    </group>
                </form> -->
            </field>
        </page>
        <page string="Documents Preparation" id="na">
            <field name="documents_prepared" colspan="4" view_ids="purchase_trade.lc_doc_prepa_view_list"/>
        </page>
        <page string="Presentation" id="na">
            <group col="2" id="na">
                <label name="presentation_date"/>
                <field name="presentation_date"/>
                <label name="presentation_bank"/>
                <field name="presentation_bank"/>
                <label name="acceptance_date"/>
                <field name="acceptance_date"/>
                <label name="payment_date"/>
                <field name="payment_date"/>
                <label name="refusal_reason"/>
                <field name="refusal_reason" colspan="4" height="100"/>
            </group>
        </page>
    </notebook>
    <newline/>
    <label name="state"/>
    <field name="state"/>
    <group col="-1" id="buttons_">
        <button name="cancel" icon="tryton-cancel"/>
        <button name="submit" icon="tryton-forward"/>
        <button name="approve" icon="tryton-forward"/>
        <button name="draft" icon="tryton-undo"/>
    </group>
</form>