diff options
| -rwxr-xr-x | indoteknik_custom/views/purchase_order.xml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index 31524d65..128f2413 100755 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -13,6 +13,12 @@ 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" @@ -34,6 +40,9 @@ <field name="total_percent_margin"/> <field name="total_so_percent_margin"/> </field> + <field name="product_id" position="before"> + <field name="line_no" attrs="{'readonly': 1}"/> + </field> </field> </record> </data> |
