Files
tradon/modules/purchase_trade/view/sale_line_form.xml
2026-07-16 21:22:34 +02:00

264 lines
14 KiB
XML
Executable File

<?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/notebook/page[@id='general']" position="replace">
<page string="General" id="general" col="12"
col_widths="1fr,1fr,1fr,1fr,1fr,1fr,1fr,1fr,1fr,1fr,1fr,1fr">
<group id="identity" colspan="12" col="8" panel="summary"
xalign="0" yalign="0"
col_widths="min-content,2fr,min-content,1.2fr,min-content,1fr,min-content,0.8fr">
<label name="product"/>
<field name="product"/>
<label name="del_period"/>
<field name="del_period"/>
<label name="period_at"/>
<field name="period_at"/>
<label name="concentration"/>
<field name="concentration" width="80" xexpand="0" xfill="0"/>
<newline/>
<label name="attributes_name"/>
<field name="attributes_name" colspan="7"/>
</group>
<group id="left_column" colspan="6" col="1"
xalign="0" yalign="0"
col_widths="1fr">
<group id="quantities" string="Quantities &amp; Unit"
colspan="1" col="4" panel="card" icon="tryton-archive"
xalign="0" yalign="0"
col_widths="min-content,1fr,min-content,1fr">
<label name="quantity_theorical"/>
<field name="quantity_theorical"/>
<label name="quantity"/>
<field name="quantity"/>
<label name="targeted_qt"/>
<field name="targeted_qt" width="120" xexpand="0" xfill="0" xalign="0"/>
<label name="unit"/>
<field name="unit"/>
</group>
<group id="coffee_packing" string="Packing"
colspan="1" col="4" panel="card" icon="tryton-archive"
xalign="0" yalign="0"
col_widths="min-content,1fr,min-content,1fr">
<label name="coffee_packing_count"/>
<field name="coffee_packing_count" width="120" xexpand="0" xfill="0"/>
<label name="coffee_packing_unit"/>
<field name="coffee_packing_unit"/>
<label name="coffee_packing_description"/>
<field name="coffee_packing_description"/>
</group>
<group id="tolerances" string="Tolerances &amp; Inheritance"
colspan="1" col="4" panel="card" icon="tryton-switch"
xalign="0" yalign="0"
col_widths="min-content,1fr,min-content,1fr">
<label name="inherit_tol"/>
<field name="inherit_tol"/>
<label name="inherit_cer"/>
<field name="inherit_cer"/>
<newline/>
<label name="tol_min"/>
<field name="tol_min"/>
<label name="tol_max"/>
<field name="tol_max"/>
<newline/>
<label name="tol_min_qt"/>
<field name="tol_min_qt"/>
<label name="tol_max_qt"/>
<field name="tol_max_qt"/>
<newline/>
<label name="tolerance_used"/>
<field name="tolerance_used" widget="tolerance_gauge"
min_field="tolerance_min" max_field="tolerance_max"
width="180" xexpand="0" xfill="0" xalign="0" colspan="3"/>
<newline/>
<label name="tol_min_v"/>
<field name="tol_min_v"/>
<label name="tol_max_v"/>
<field name="tol_max_v"/>
<field name="tolerance_min" invisible="1" colspan="4"/>
<field name="tolerance_max" invisible="1" colspan="4"/>
</group>
</group>
<group id="right_column" colspan="6" col="1"
xalign="0" yalign="0"
col_widths="1fr">
<group id="dates" string="Dates"
colspan="1" col="6" panel="card" icon="tryton-date"
xalign="0" yalign="0"
col_widths="min-content,max-content,min-content,max-content,1fr,min-content">
<label name="from_del"/>
<field name="from_del" width="120" xexpand="0" xfill="0"/>
<label name="to_del"/>
<field name="to_del" width="120" xexpand="0" xfill="0"/>
<newline/>
<label name="finished"/>
<field name="finished" xexpand="0" xfill="0"/>
</group>
<group id="pricing_amounts" string="Pricing &amp; Amounts"
colspan="1" col="4" panel="card" icon="tryton-public"
xalign="0" yalign="0"
col_widths="min-content,1fr,min-content,1fr">
<label name="price_type"/>
<field name="price_type"/>
<label name="unit_price"/>
<field name="unit_price" width="150" xexpand="0" xfill="0"/>
<newline/>
<label name="premium"/>
<field name="premium" width="120" xexpand="0" xfill="0"/>
<label name="amount"/>
<field name="amount" width="160" xexpand="0" xfill="0"/>
<newline/>
<label name="progress"/>
<field name="progress" widget="progressbar" colspan="3"/>
</group>
<group id="currencies_links" string="Currencies &amp; Links"
colspan="1" col="4" panel="card" icon="tryton-link"
xalign="0" yalign="0"
col_widths="min-content,1fr,min-content,1fr">
<label name="enable_linked_currency"/>
<field name="enable_linked_currency" xexpand="0" xfill="0"/>
<label name="linked_currency"/>
<field name="linked_currency"/>
<newline/>
<label name="linked_unit"/>
<field name="linked_unit"/>
<label name="linked_price"/>
<field name="linked_price"/>
<newline/>
<label name="certif"/>
<field name="certif" colspan="3"/>
</group>
<group id="coffee_market_price" string="Market price"
colspan="1" col="4" panel="card" icon="tradon-price"
xalign="0" yalign="0"
col_widths="min-content,1fr,min-content,1fr">
<label name="coffee_market_reference"/>
<field name="coffee_market_reference"/>
<label name="coffee_market_price"/>
<field name="coffee_market_price" width="120" xexpand="0" xfill="0"/>
<label name="coffee_market_delta"/>
<field name="coffee_market_delta" width="120" xexpand="0" xfill="0"/>
</group>
</group>
<group id="description" string="Description"
colspan="12" col="1" panel="card" icon="tryton-note"
xalign="0" yalign="0"
col_widths="1fr">
<field name="description"/>
</group>
</page>
</xpath>
<xpath expr="/form/notebook/page[@id='general']" position="after">
<page string="Coffee Quality" id="coffee_quality" col="12"
col_widths="1fr,1fr,1fr,1fr,1fr,1fr,1fr,1fr,1fr,1fr,1fr,1fr">
<group id="coffee_summary" colspan="12" col="8" panel="summary"
xalign="0" yalign="0"
col_widths="min-content,1fr,min-content,1fr,min-content,1fr,min-content,1fr">
<label name="coffee_quality_status"/>
<field name="coffee_quality_status"/>
<label name="coffee_origin"/>
<field name="coffee_origin"/>
<label name="coffee_type"/>
<field name="coffee_type"/>
<label name="coffee_process"/>
<field name="coffee_process"/>
</group>
<group id="coffee_left_column" colspan="6" col="1"
xalign="0" yalign="0" col_widths="1fr">
<group id="coffee_identity" string="Coffee identity"
colspan="1" col="4" panel="card" icon="tryton-public"
xalign="0" yalign="0"
col_widths="min-content,1fr,min-content,1fr">
<label name="coffee_variety"/>
<field name="coffee_variety"/>
<label name="coffee_crop_year"/>
<field name="coffee_crop_year"/>
<label name="coffee_screen_size"/>
<field name="coffee_screen_size"/>
</group>
</group>
<group id="coffee_right_column" colspan="6" col="1"
xalign="0" yalign="0" col_widths="1fr">
<group id="coffee_quality_targets" string="Quality targets"
colspan="1" col="4" panel="card" icon="tryton-note"
xalign="0" yalign="0"
col_widths="min-content,1fr,min-content,1fr">
<label name="coffee_moisture_max"/>
<field name="coffee_moisture_max" width="120" xexpand="0" xfill="0"/>
<label name="coffee_defect_max"/>
<field name="coffee_defect_max" width="120" xexpand="0" xfill="0"/>
<label name="coffee_cup_score_min"/>
<field name="coffee_cup_score_min" width="120" xexpand="0" xfill="0"/>
</group>
</group>
<group id="coffee_samples_panel" string="Coffee samples"
colspan="12" col="1" panel="card" icon="tryton-list"
xalign="0" yalign="0" col_widths="1fr">
<field name="coffee_samples" colspan="1" mode="tree,form" view_ids="purchase_trade.coffee_sample_view_tree,purchase_trade.coffee_sample_view_form"/>
</group>
</page>
<page string="Fees" col="4" id="fees">
<button name="apply_default_fees" icon="tryton-launch"/>
<field name="fees" colspan="4" view_ids="purchase_trade.fee_view_tree_sequence"/>
</page>
</xpath>
<xpath expr="/form/notebook/page[@id='commissions']" position="after">
<page string="Charter Conditions" id="charter_conditions">
<field name="charter_conditions" colspan="4" mode="tree,form" view_ids="purchase_trade.charter_condition_view_tree,purchase_trade.charter_condition_view_form"/>
</page>
</xpath>
<xpath expr="/form/notebook/page[@id='att']" position="replace"/>
<xpath expr="/form/notebook/page[@id='notes']" position="replace"/>
<xpath expr="/form/notebook/page[@id='taxes']" position="before">
<page string="Estimated dates" col="4" id="estimated">
<field name="estimated_date" />
</page>
<page string="Pricing" col="4" id="pricing">
<notebook colspan="4">
<page string="Components" col="4" id="components">
<field name="price_components" mode="tree,form" view_ids="purchase_trade.component_view_tree_sequence2,purchase_trade.component_view_form2"/>
</page>
<page string="Pricing dates" col="4" id="pricing_date">
<field name="price_pricing" />
</page>
<page string="Summary" col="4" id="summary">
<field name="price_summary" />
</page>
<page string="Report" col="4" id="report">
<label name="pricing_rule" />
<field name="pricing_rule" />
</page>
</notebook>
</page>
<page string="Price composition" col="4" id="pc">
<field name="price_composition" view_ids="purchase_trade.price_composition_view_tree"/>
</page>
<page string="Premium composition" col="4" id="premium_composition">
<field name="premium_decomposition" colspan="4" mode="tree,form" view_ids="purchase_trade.premium_composition_view_tree,purchase_trade.premium_composition_view_form"/>
</page>
<page string="Mtm" col="4" id="mtm">
<field name="mtm" colspan="4"/>
</page>
</xpath>
<xpath expr="/form/notebook/page[@id='taxes']" position="replace"/>
<xpath expr="/form/notebook/page[@id='invoice']" position="after">
<page string="Taxes" id="taxes">
<field name="taxes" colspan="4"/>
</page>
<page string="Lots" col="4" id="lots">
<field name="lots" view_ids="lot.lot_view_tree_sequence"/>
</page>
<page string="Attributes" id="att">
<label name="attributes"/>
<field name="attributes"/>
</page>
<page string="Derivatives" col="4" id="der">
<field name="derivatives" colspan="4"/>
</page>
<page string="Notes" id="notes">
<separator name="note" colspan="4"/>
<field name="note" colspan="4"/>
</page>
</xpath>
</data>