diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-07-01 11:30:17 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-07-01 11:30:17 +0700 |
| commit | fde265040065d233a0b7eee277defb3c472575a2 (patch) | |
| tree | 1ff4c348f2bbfc9de0ede5376215227222bf296c /indoteknik_custom/views | |
| parent | 577fe5a01f3b782a2a441ad55f3cc721ba2e212c (diff) | |
api sla website
Diffstat (limited to 'indoteknik_custom/views')
| -rw-r--r-- | indoteknik_custom/views/product_sla.xml | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/indoteknik_custom/views/product_sla.xml b/indoteknik_custom/views/product_sla.xml new file mode 100644 index 00000000..378a977b --- /dev/null +++ b/indoteknik_custom/views/product_sla.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<odoo> + <record id="product_sla_tree" model="ir.ui.view"> + <field name="name">product.sla.tree</field> + <field name="model">product.sla</field> + <field name="arch" type="xml"> + <tree create="false"> + <field name="product_variant_id"/> + <field name="avg_leadtime"/> + <field name="sla"/> + </tree> + </field> + </record> + + <record id="product_sla_form" model="ir.ui.view"> + <field name="name">product.sla.form</field> + <field name="model">product.sla</field> + <field name="arch" type="xml"> + <form> + <header> + <button name="generate_product_variant_id_sla" + string="Generate Product Sla" + type="object" + class="mr-2 oe_highlight"> + </button> + </header> + <sheet string="Product Sla"> + <group> + <group> + <field name="number"/> + <field name="product_variant_id"/> + <field name="avg_leadtime"/> + <field name="sla"/> + </group> + </group> + </sheet> + </form> + </field> + </record> + + <record id="product_sla_action" model="ir.actions.act_window"> + <field name="name">Product Sla</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">product.sla</field> + <field name="view_mode">tree,form</field> + </record> + + <menuitem id="menu_product_sla" + name="Product Sla" + action="product_sla_action" + parent="sale.product_menu_catalog" + sequence="7"/> +</odoo>
\ No newline at end of file |
