summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-02-10 11:04:07 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-02-10 11:04:07 +0700
commit337e769c7eab63275b4114f48e789bdcf808bdf1 (patch)
tree24f09636ecd83abcc22f53295c905d637801b437 /indoteknik_custom/views
parentbbf176b0ce51ade22b74d0df2023025a4cef3efa (diff)
add line no in so / po and stock picking
Diffstat (limited to 'indoteknik_custom/views')
-rwxr-xr-xindoteknik_custom/views/sale_order.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index 9dfd9805..1b6f31aa 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -7,6 +7,10 @@
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<button id="action_confirm" position="after">
+ <button name="calculate_line_no"
+ string="Create No"
+ type="object"
+ />
<button name="sale_order_approve"
string="Ask Approval"
type="object"
@@ -50,6 +54,9 @@
<field name="purchase_tax_id" attrs="{'readonly': [('parent.state', 'not in', ['draft', 'sent', 'sale'])]}" domain="[('type_tax_use','=','purchase')]"/>
<field name="item_percent_margin"/>
</xpath>
+ <xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='product_id']" position="before">
+ <field name="line_no" readonly="1"/>
+ </xpath>
<field name="amount_total" position="after">
<field name="total_margin"/>
<field name="total_percent_margin"/>