diff options
Diffstat (limited to 'indoteknik_custom/views/purchase_order.xml')
| -rwxr-xr-x | indoteknik_custom/views/purchase_order.xml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index f209d18a..a8b71d5a 100755 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -14,8 +14,45 @@ attrs="{'invisible': ['|', ('sale_order_id', '=', False), ('state', 'not in', ['draft'])]}" /> </div> + <button id="draft_confirm" position="after"> + <button name="po_approve" + string="Ask Approval" + type="object" + /> + </button> <field name="date_order" position="before"> <field name="sale_order_id" attrs="{'readonly': [('state', 'not in', ['draft'])]}"/> + <field name="approval_status"/> + </field> + <field name="amount_total" position="after"> + <field name="total_margin"/> + <field name="total_so_margin"/> + <field name="total_percent_margin"/> + <field name="total_so_percent_margin"/> + </field> + </field> + </record> + </data> + <data> + <record id="rfq_order_tree_view_inherit" model="ir.ui.view"> + <field name="name">Purchase</field> + <field name="model">purchase.order</field> + <field name="inherit_id" ref="purchase.purchase_order_kpis_tree"/> + <field name="arch" type="xml"> + <field name="create_date" position="after"> + <field name="approval_status" /> + </field> + </field> + </record> + </data> + <data> + <record id="purchase_order_tree_view_inherit" model="ir.ui.view"> + <field name="name">Purchase</field> + <field name="model">purchase.order</field> + <field name="inherit_id" ref="purchase.purchase_order_view_tree"/> + <field name="arch" type="xml"> + <field name="invoice_status" position="after"> + <field name="procurement_status" /> </field> </field> </record> |
