Files
tradon/modules/purchase_trade/view/coffee_sample_form.xml
2026-07-19 17:32:54 +02:00

111 lines
5.3 KiB
XML

<?xml version="1.0"?>
<form col="12">
<group id="sample_summary" colspan="12" col="8">
<label name="reference"/>
<field name="reference" width="220" xexpand="0" xfill="0"/>
<label name="state"/>
<field name="state" width="160" xexpand="0" xfill="0"/>
<label name="quality_status"/>
<field name="quality_status" width="140" xexpand="0" xfill="0"/>
<label name="recommended_decision"/>
<field name="recommended_decision" width="140" xexpand="0" xfill="0"/>
</group>
<group id="sample_actions" colspan="12" col="9">
<button name="receive" string="Receive"/>
<button name="send_to_lab" string="Send to lab"/>
<button name="review" string="Review"/>
<button name="evaluate_quality" string="Evaluate quality"/>
<button name="approve" string="Approve"/>
<button name="reject" string="Reject"/>
<button name="expire" string="Expire"/>
<button name="archive" string="Archive"/>
<button name="reset_to_requested" string="Reset"/>
</group>
<group id="sample_left_column" colspan="7" col="1">
<group id="sample_identity" string="Sample identity" colspan="1" col="4">
<label name="direction"/>
<field name="direction" width="160" xexpand="0" xfill="0"/>
<label name="sample_type"/>
<field name="sample_type" width="220" xexpand="0" xfill="0"/>
<label name="purchase_line"/>
<field name="purchase_line" colspan="3"/>
<label name="sale_line"/>
<field name="sale_line" colspan="3"/>
<label name="lot"/>
<field name="lot"/>
<label name="product"/>
<field name="product"/>
<label name="party"/>
<field name="party"/>
<label name="public_origin"/>
<field name="public_origin" width="160" xexpand="0" xfill="0"/>
<label name="public_coffee_type"/>
<field name="public_coffee_type" width="140" xexpand="0" xfill="0"/>
</group>
<group id="sample_storage" string="Sample storage" colspan="1" col="4">
<label name="quantity"/>
<field name="quantity" width="120" xexpand="0" xfill="0"/>
<label name="unit"/>
<field name="unit"/>
<label name="storage_location"/>
<field name="storage_location" colspan="3"/>
</group>
<group id="sample_lab" string="Lab delegation" colspan="1" col="6">
<label name="delegated_to_lab"/>
<field name="delegated_to_lab" xexpand="0" xfill="0"/>
<label name="lab"/>
<field name="lab"/>
<label name="lab_due_date"/>
<field name="lab_due_date" width="120" xexpand="0" xfill="0"/>
</group>
</group>
<group id="sample_right_column" colspan="5" col="1">
<group id="sample_lifecycle" string="Lifecycle" colspan="1" col="4">
<label name="requested_date"/>
<field name="requested_date" width="120" xexpand="0" xfill="0"/>
<label name="received_date"/>
<field name="received_date" width="120" xexpand="0" xfill="0"/>
<label name="sent_date"/>
<field name="sent_date" width="120" xexpand="0" xfill="0"/>
<label name="review_date"/>
<field name="review_date" width="120" xexpand="0" xfill="0"/>
<label name="decision_date"/>
<field name="decision_date" width="120" xexpand="0" xfill="0"/>
<label name="shelf_life_days"/>
<field name="shelf_life_days" width="80" xexpand="0" xfill="0"/>
<label name="expiry_date"/>
<field name="expiry_date" width="120" xexpand="0" xfill="0"/>
<label name="expires_soon"/>
<field name="expires_soon" xexpand="0" xfill="0"/>
</group>
<group id="sample_quality" string="Quality values" colspan="1" col="4">
<label name="moisture"/>
<field name="moisture" width="90" xexpand="0" xfill="0"/>
<label name="screen_size"/>
<field name="screen_size" width="90" xexpand="0" xfill="0"/>
<label name="defect_count"/>
<field name="defect_count" width="90" xexpand="0" xfill="0"/>
<label name="cupping_average_score"/>
<field name="cupping_average_score" width="90" xexpand="0" xfill="0"/>
<label name="lab_analysis_status"/>
<field name="lab_analysis_status" colspan="3" width="180" xexpand="0" xfill="0"/>
</group>
</group>
<notebook colspan="12">
<page string="Lab analyses" id="lab_analyses" col="1">
<field name="lab_analyses" colspan="1" mode="tree,form"
view_ids="purchase_trade.coffee_lab_analysis_view_tree,purchase_trade.coffee_lab_analysis_view_form"
height="180"/>
</page>
<page string="Cupping sessions" id="cupping_sessions" col="1">
<field name="cupping_lines" colspan="1" mode="tree,form"
view_ids="purchase_trade.coffee_cupping_session_sample_view_tree,purchase_trade.coffee_cupping_session_sample_view_form"
height="160"/>
</page>
<page string="Notes" id="notes" col="2">
<field name="notes"/>
<field name="decision_note"/>
</page>
</notebook>
</form>