diff options
Diffstat (limited to 'indoteknik_custom/views/approval_date_doc.xml')
| -rw-r--r-- | indoteknik_custom/views/approval_date_doc.xml | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/indoteknik_custom/views/approval_date_doc.xml b/indoteknik_custom/views/approval_date_doc.xml new file mode 100644 index 00000000..d6a70763 --- /dev/null +++ b/indoteknik_custom/views/approval_date_doc.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<odoo> + <record id="approval_date_doc_tree" model="ir.ui.view"> + <field name="name">approval.date.doc.tree</field> + <field name="model">approval.date.doc</field> + <field name="arch" type="xml"> + <tree> + <field name="number"/> + <field name="picking_id"/> + <field name="sale_id"/> + <field name="driver_departure_date"/> + <field name="state"/> + <field name="approve_date"/> + <field name="approve_by"/> + </tree> + </field> + </record> + + <record id="approval_date_doc_form" model="ir.ui.view"> + <field name="name">approval.date.doc.form</field> + <field name="model">approval.date.doc</field> + <field name="arch" type="xml"> + <form> + <header> + <button name="button_approve" + string="Approve" + type="object" + attrs="{'invisible': [('state', '=', 'done')]}" + /> + </header> + <sheet string="Approval Date Doc"> + <group> + <group> + <field name="number"/> + <field name="picking_id"/> + <field name="sale_id"/> + <field name="driver_departure_date"/> + <field name="approve_date"/> + <field name="approve_by"/> + <field name="state" readonly="1"/> + </group> + </group> + </sheet> + </form> + </field> + </record> + + <record id="approval_date_doc_action" model="ir.actions.act_window"> + <field name="name">Approval Date Doc</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">approval.date.doc</field> + <field name="view_mode">tree,form</field> + </record> + + <menuitem id="menu_approval_date_doc" name="Approval Date Doc" + parent="account.menu_finance_receivables" + action="approval_date_doc_action" + sequence="100" + /> + +</odoo>
\ No newline at end of file |
