diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-07-12 10:40:06 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-07-12 10:40:06 +0700 |
| commit | ad1f21b27dff6eca4eb90d2a4496cd9ff80701c4 (patch) | |
| tree | d3335e6a6d1be85a903ef5699b07cc303619c954 /fixco_custom/views/automatic_purchase.xml | |
| parent | f12beff2f1e4da1244e7a8e014e73e5e5023aa9d (diff) | |
purchasing job, requisition, reordering v2
Diffstat (limited to 'fixco_custom/views/automatic_purchase.xml')
| -rw-r--r-- | fixco_custom/views/automatic_purchase.xml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/fixco_custom/views/automatic_purchase.xml b/fixco_custom/views/automatic_purchase.xml index 704a5e3..d303b24 100644 --- a/fixco_custom/views/automatic_purchase.xml +++ b/fixco_custom/views/automatic_purchase.xml @@ -25,7 +25,10 @@ <field name="qty_purchase"/> <field name="qty_min"/> <field name="qty_buffer"/> - <field name="qty_available"/> + <field name="qty_available" optional="hide"/> + <field name="qty_onhand" optional="hide"/> + <field name="qty_incoming" optional="hide"/> + <field name="qty_outgoing" optional="hide"/> <field name="price"/> <field name="subtotal"/> <field name="last_order_id" readonly="1" optional="hide"/> @@ -44,12 +47,18 @@ string="Generate Lines" type="object" class="mr-2 oe_highlight" + attrs="{'invisible': [('apo_type', '!=', 'reordering')]}" /> <button name="create_purchase_orders" string="Create PO" type="object" class="mr-2 oe_highlight" /> + <button name="action_generate_lines_from_so" + string="Generate Lines from Sales Order" + type="object" + class="btn-primary" + attrs="{'invisible': [('sale_order_id', '=', False)]}" /> </header> <sheet string="Purchase"> <div class="oe_button_box" name="button_box"> @@ -63,6 +72,7 @@ <group> <field name="number"/> <field name="apo_type" required="1"/> + <field name="sale_order_id" attrs="{'invisible': [('apo_type', '!=', 'requisition')]}"/> </group> <group> <field name="date_doc"/> |
