diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2024-08-14 13:31:36 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2024-08-14 13:31:36 +0700 |
| commit | ed089761d43b20ecc4190ca9d88a0bdb769d81f2 (patch) | |
| tree | 6f5ed6967a4aa20e5773561f7a6b129d91b23311 /indoteknik_custom/views/approval_date_doc.xml | |
| parent | 513d2b473f4fbf7245c35289e2a3215c5da556a6 (diff) | |
| parent | c091a99de4e3c3bb4f85a8b0c91d75735ebefbd4 (diff) | |
Merge branch 'production' into feature/calculate_selling_price
# Conflicts:
# indoteknik_custom/views/website_user_cart.xml
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 |
