diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-02-22 14:48:01 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-02-22 14:48:01 +0700 |
| commit | 6850fd6f86a0fbba3156e59f9ac5836052f019ce (patch) | |
| tree | 2263d3ae64518ed8ae4cb2b2f802772cde1db458 /indoteknik_custom/views | |
| parent | ff33c441cd031b47bcc381f1163633cf6e8586d0 (diff) | |
master data commision % and reserved from by forcasted
Diffstat (limited to 'indoteknik_custom/views')
| -rw-r--r-- | indoteknik_custom/views/cust_commision.xml | 44 | ||||
| -rwxr-xr-x | indoteknik_custom/views/purchase_order.xml | 2 | ||||
| -rwxr-xr-x | indoteknik_custom/views/sale_order.xml | 3 |
3 files changed, 47 insertions, 2 deletions
diff --git a/indoteknik_custom/views/cust_commision.xml b/indoteknik_custom/views/cust_commision.xml new file mode 100644 index 00000000..dfa4adfb --- /dev/null +++ b/indoteknik_custom/views/cust_commision.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<odoo> + <record id="cust_commision_tree" model="ir.ui.view"> + <field name="name">cust.commision.tree</field> + <field name="model">cust.commision</field> + <field name="arch" type="xml"> + <tree editable="bottom"> + <field name="partner_id"/> + <field name="commision_percent"/> + </tree> + </field> + </record> + + <record id="cust_commision_form" model="ir.ui.view"> + <field name="name">cust.commision.form</field> + <field name="model">cust.commision</field> + <field name="arch" type="xml"> + <form> + <sheet string="Commision"> + <group> + <group> + <field name="partner_id"/> + <field name="commision_percent"/> + </group> + </group> + </sheet> + </form> + </field> + </record> + + <record id="cust_commision_action" model="ir.actions.act_window"> + <field name="name">Commision</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">cust.commision</field> + <field name="view_mode">tree,form</field> + </record> + + <menuitem id="menu_cust_commision_sales" + name="Commision" + action="cust_commision_action" + parent="sale.product_menu_catalog" + sequence="101" + /> +</odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index a6f28ffa..c7fdfcc3 100755 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -102,7 +102,7 @@ </xpath> <xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='product_qty']" position="attributes"> - <attribute name="attrs">{'readonly': [('is_edit_product_qty', '=', False)], 'required': True}</attribute> + <attribute name="attrs">{'required': True}</attribute> </xpath> <xpath expr="//form/sheet/notebook/page[@name='purchase_delivery_invoice']" position="before"> diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml index 4c4ac281..bff2fe33 100755 --- a/indoteknik_custom/views/sale_order.xml +++ b/indoteknik_custom/views/sale_order.xml @@ -109,7 +109,8 @@ <field name="line_no" readonly="1" optional="hide"/> </xpath> <xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='qty_delivered']" position="before"> - <field name="qty_reserved" readonly="1"/> + <field name="qty_reserved" invisible="1"/> + <field name="reserved_from" readonly="1" optional="hide"/> </xpath> <xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='product_id']" position="attributes"> <attribute name="options">{'no_create': True}</attribute> |
