summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-12-14 11:32:25 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-12-14 11:32:25 +0700
commitbb2a3647ac1f5885bc6481ce10bfcd91813bfe81 (patch)
tree8a4c56c0141611e08e2ad42df00b1106c9569644 /indoteknik_custom/views
parente6770e132602c094197fbd6d9becc2bbc9c2d8e0 (diff)
change suggest to virtual column
Diffstat (limited to 'indoteknik_custom/views')
-rwxr-xr-xindoteknik_custom/views/purchase_order.xml13
1 files changed, 5 insertions, 8 deletions
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml
index b5a9b4ad..4cf83dd4 100755
--- a/indoteknik_custom/views/purchase_order.xml
+++ b/indoteknik_custom/views/purchase_order.xml
@@ -13,12 +13,6 @@
class="oe_highlight oe_edit_only"
attrs="{'invisible': ['|', ('sale_order_id', '=', False), ('state', 'not in', ['draft'])]}"
/>
- <button name="calculate_line_no"
- string="Line No"
- type="object"
- class="oe_highlight oe_edit_only"
- attrs="{'invisible': ['|', ('state', '=', 'purchase'), ('state', '=', 'done')]}"
- />
</div>
<button id="draft_confirm" position="after">
<button name="po_approve"
@@ -57,8 +51,11 @@
<attribute name="options">{'no_create': True}</attribute>
</field>
<field name="product_qty" position="before">
- <field name="qty_available_store" readonly="1" />
- <field name="suggest" readonly="1" />
+ <field name="qty_onhand" readonly="1" optional="hide"/>
+ <field name="qty_incoming" readonly="1" optional="hide"/>
+ <field name="qty_outgoing" readonly="1" optional="hide"/>
+ <field name="qty_available" readonly="1" optional="hide"/>
+ <field name="suggest" readonly="1" optional="hide"/>
</field>
<field name="price_unit" position="after">
<field name="price_vendor" attrs="{'readonly': 1}" optional="hide"/>