Purchase form

This commit is contained in:
2026-07-25 10:39:50 +02:00
parent 64390eaecb
commit 264ff534cf
3 changed files with 102 additions and 25 deletions

View File

@@ -3,11 +3,12 @@
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/form/group[@id='hd'][2]" position="replace"/>
<xpath expr="/form/group[@id='buttons']" position="replace"/>
<xpath expr="/form/field[@name='party_lang']" position="before">
<field name="allow_modification_after_validation" invisible="1"/>
</xpath>
<xpath expr="/form/group[@id='hd'][1]" position="replace">
<group id="purchase_header_summary" colspan="6" col="10"
<group id="purchase_header_summary" colspan="5" col="10"
panel="summary" xalign="0" yalign="0"
col_widths="min-content,2fr,min-content,130px,min-content,1.2fr,min-content,130px,min-content,1fr">
<label name="party"/>
@@ -21,6 +22,18 @@ this repository contains the full copyright notices and license terms. -->
<label name="currency"/>
<field name="currency"/>
</group>
<group id="purchase_header_buttons" col="-1" colspan="1"
xalign="1" yalign="0">
<button name="cancel" icon="tryton-cancel"/>
<button name="draft"/>
<button name="modify_header" icon="tryton-launch"/>
<button name="quote" icon="tryton-forward"/>
<button name="handle_invoice_exception" icon="tryton-forward"/>
<button name="handle_shipment_exception" icon="tryton-forward"/>
<button name="confirm" icon="tryton-ok"/>
<button name="process" invisible="1"/>
<button name="manual_invoice" icon="tryton-forward"/>
</group>
<group id="purchase_header_visuals" colspan="6" col="4"
string="Purchase summary" icon="tryton-dashboard"

View File

@@ -56,9 +56,9 @@ this repository contains the full copyright notices and license terms. -->
<field name="unit"/>
</group>
<group id="coffee_packing" string="Packing &amp; Tolerance"
colspan="1" col="4" panel="card" icon="tryton-archive"
colspan="1" col="6" panel="card" icon="tryton-archive"
xalign="0" yalign="0"
col_widths="min-content,1fr,min-content,1fr">
col_widths="min-content,1fr,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"/>
@@ -68,20 +68,18 @@ this repository contains the full copyright notices and license terms. -->
<field name="inherit_tol"/>
<label name="inherit_cer"/>
<field name="inherit_cer"/>
<newline/>
<label name="certif"/>
<field name="certif" colspan="3"/>
<field name="certif"/>
<newline/>
<label name="tol_min"/>
<field name="tol_min"/>
<label name="tol_max"/>
<field name="tol_max"/>
<newline/>
<label name="tolerance_used"/>
<label name="tolerance_used" string="Tol. 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/>
width="180" xexpand="0" xfill="0" xalign="0"/>
<label name="tol_min_v"/>
<field name="tol_min_v"/>
<label name="tol_max_v"/>
@@ -107,13 +105,15 @@ this repository contains the full copyright notices and license terms. -->
<field name="delivery_date_edit" xexpand="0" xfill="0" xalign="0"/>
</group>
<group id="pricing_amounts" string="Pricing &amp; Amounts"
colspan="1" col="4" panel="card" icon="tryton-public"
colspan="1" col="6" panel="card" icon="tryton-public"
xalign="0" yalign="0"
col_widths="min-content,1fr,min-content,1fr">
col_widths="min-content,1fr,min-content,1fr,min-content,min-content">
<label name="price_type"/>
<field name="price_type"/>
<label name="unit_price"/>
<field name="unit_price" width="150" xexpand="0" xfill="0"/>
<label name="enable_linked_currency"/>
<field name="enable_linked_currency" xexpand="0" xfill="0"/>
<newline/>
<label name="premium"/>
<field name="premium" width="120" xexpand="0" xfill="0"/>
@@ -121,10 +121,8 @@ this repository contains the full copyright notices and license terms. -->
<field name="amount" width="160" xexpand="0" xfill="0"/>
<newline/>
<label name="progress"/>
<field name="progress" widget="progressbar" colspan="3"/>
<field name="progress" widget="progressbar" colspan="5"/>
<newline/>
<label name="enable_linked_currency"/>
<field name="enable_linked_currency" xexpand="0" xfill="0"/>
<label name="linked_currency"/>
<field name="linked_currency"/>
<newline/>
@@ -146,9 +144,9 @@ this repository contains the full copyright notices and license terms. -->
colspan="12" col="1" panel="card" icon="tryton-list"
xalign="0" yalign="0"
col_widths="1fr">
<button name="apply_default_fees" icon="tryton-launch"/>
<field name="fees" colspan="1" mode="tree,form"
<field name="fees" colspan="1" mode="tree,form" height="180"
view_ids="purchase_trade.fee_view_tree_sequence,purchase_trade.fee_view_form"/>
<button name="apply_default_fees" icon="tryton-launch"/>
</group>
<group id="attributes_description" string="Description"
colspan="12" col="1" panel="card" icon="tryton-note"