diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-03-20 11:43:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-03-20 11:43:50 +0700 |
| commit | d8750844beed392c0dd3e588ea242be3c86f2be9 (patch) | |
| tree | 6371a9dc15db3caf2dfe147f859e6c251cd3fb9a /indoteknik_custom/views | |
| parent | 4c5ded71ae3562a1efe2584bad3b4e03ad06af16 (diff) | |
process semi automatic for generate uang muka pembelian
Diffstat (limited to 'indoteknik_custom/views')
| -rwxr-xr-x | indoteknik_custom/views/purchase_order.xml | 2 | ||||
| -rw-r--r-- | indoteknik_custom/views/uangmuka_pembelian.xml | 30 |
2 files changed, 32 insertions, 0 deletions
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index 3220c1da..fb85f4c1 100755 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -25,6 +25,8 @@ string="Ask Approval" type="object" /> + <button name="indoteknik_custom.action_view_uangmuka_pembelian" string="UangMuka" + type="action" attrs="{'invisible': [('approval_status', '!=', 'approved')]}"/> </button> <field name="date_order" position="before"> <field name="sale_order_id" attrs="{'readonly': [('state', 'not in', ['draft'])]}"/> diff --git a/indoteknik_custom/views/uangmuka_pembelian.xml b/indoteknik_custom/views/uangmuka_pembelian.xml new file mode 100644 index 00000000..6cd0bec5 --- /dev/null +++ b/indoteknik_custom/views/uangmuka_pembelian.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <record id="view_uangmuka_pembelian" model="ir.ui.view"> + <field name="name">Uangmuka Pembelian</field> + <field name="model">uangmuka.pembelian</field> + <field name="arch" type="xml"> + <form string="Invoice Sales Order"> + <p class="oe_grey"> + Pembuatan semi otomatis Uang Muka Pembelian, mohon dicek kembali + </p> + <group> + <field name="pay_amt"/> + <field name="account_id" domain="[('name', 'ilike', 'intransit')]"/> + </group> + <footer> + <button name="create_uangmukapembelian" id="create_uangmukapembelian" string="Create" type="object" required="1"/> + </footer> + </form> + </field> + </record> + + <record id="action_view_uangmuka_pembelian" model="ir.actions.act_window"> + <field name="name">Create Uang Muka Pembelian</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">uangmuka.pembelian</field> + <field name="view_mode">form</field> + <field name="target">new</field> + </record> + +</odoo> |
