<?xml version="1.0"?>
<!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
    <xpath expr="/form/group/field[@name='certif']" position="after">
        <label name="wb"/>
        <field name="wb"/>
        <newline/>
        <label name="agent"/>
        <field name="agent" colspan="3"/>
        <newline/>
        <label name="association"/>
        <field name="association"/>
        <label name="crop"/>
        <field name="crop"/>
        <newline/>
        <label name="tol_min"/>
        <field name="tol_min"/>
        <label name="tol_max"/>
        <field name="tol_max"/>
        <newline/>
        <label name="from_location"/>
        <field name="from_location"/>
        <label name="to_location"/>
        <field name="to_location"/>
        <newline/>
        <label name="incoterm"/>
        <field name="incoterm"/>
        <label name="incoterm_location"/>
        <field name="incoterm_location"/>
    </xpath>
    <xpath expr="/form/notebook/page[@id='sale']" position="after">
        <page string="Derivative" col="4" id="der">
            <field name="derivatives" mode="tree" view_ids="purchase_trade.derivative_view_tree_sequence" height="450"/>
        </page>
        <page string="Pnl" col="4" id="pnl">
            <field name="pnl" mode="tree" view_ids="purchase_trade.valuation_view_tree_sequence3" height="450"/>
        </page>
        <page string="Forex" col="4" id="fo">
            <field name="forex" mode="tree" view_ids="purchase_trade.view_forex_cover_physical_sale_tree2"/>
        </page>
        <!-- <page string="Execution plan" col="4" id="ep">
            <field name="plans" mode="tree,form" view_ids="purchase_trade.ep_view_list,purchase_trade.ep_view_form"/>
        </page> -->
        <page string="Required documents" id="rd">
            <group col="2" id="dt">
                <label name="doc_template"/>
                <field name="doc_template"/>
            </group>
            <newline/> 
            <field name="required_documents" colspan="4"/>
        </page>
    </xpath>
    <xpath expr="/form/notebook/page[@id='sale']/notebook/page[@id='line']/field[@name='payment_term']" position="after">
        <label name="from_location"/>
        <field name="from_location"/>
    </xpath>
    <xpath expr="/form/notebook/page[@id='sale']/notebook/page[@id='line']/field[@name='warehouse']" position="replace">
        <field name="to_location"/>
    </xpath>
    <xpath expr="/form/notebook/page[@id='sale']/notebook/page[@id='line']/label[@name='warehouse']" position="replace">
        <label name="to_location"/>
    </xpath>
    <xpath expr="/form/notebook/page[@id='sale']/notebook/page[@id='line']/label[@name='currency']" position="before">
        <label name="incoterm"/>
        <field name="incoterm"/>
    </xpath>
    <xpath expr="/form/notebook/page[@id='sale']/notebook/page[@id='line']/label[@name='currency']" position="before">
        <label name="incoterm_location"/>
        <field name="incoterm_location"/>
    </xpath>
</data>