summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-11-08 08:59:13 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-11-08 08:59:13 +0700
commit12492662cac198463233dec43952e43038611ada (patch)
treeb378add34bcc626adac46ac31738b0b87524da68 /indoteknik_custom/views
parentaab2132ec791085ec02c57a9bba20d46ea48e7f7 (diff)
add list customer rebate
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/customer_commision.xml84
1 files changed, 84 insertions, 0 deletions
diff --git a/indoteknik_custom/views/customer_commision.xml b/indoteknik_custom/views/customer_commision.xml
index ccaa0727..f067093b 100644
--- a/indoteknik_custom/views/customer_commision.xml
+++ b/indoteknik_custom/views/customer_commision.xml
@@ -100,4 +100,88 @@
parent="sale.product_menu_catalog"
sequence="101"
/>
+
+ <record id="customer_rebate_tree" model="ir.ui.view">
+ <field name="name">customer.rebate.tree</field>
+ <field name="model">customer.rebate</field>
+ <field name="arch" type="xml">
+ <tree>
+ <field name="partner_id"/>
+ <field name="date_from"/>
+ <field name="date_to"/>
+ <field name="description"/>
+ <field name="target_1st"/>
+ <field name="target_2nd"/>
+ <field name="achieve_1"/>
+ <field name="achieve_2"/>
+ <field name="dpp_q1" optional="hide"/>
+ <field name="dpp_q2" optional="hide"/>
+ <field name="dpp_q3" optional="hide"/>
+ <field name="dpp_q4" optional="hide"/>
+ <field name="status_q1" optional="hide"/>
+ <field name="status_q2" optional="hide"/>
+ <field name="status_q3" optional="hide"/>
+ <field name="status_q4" optional="hide"/>
+ </tree>
+ </field>
+ </record>
+
+ <record id="customer_rebate_form" model="ir.ui.view">
+ <field name="name">customer_rebate_form</field>
+ <field name="model">customer.rebate</field>
+ <field name="arch" type="xml">
+ <form>
+ <sheet string="Customer Rebate">
+ <div class="oe_button_box" name="button_box"/>
+ <group>
+ <group>
+ <field name="date_from"/>
+ <field name="partner_id"/>
+ <field name="target_1st"/>
+ <field name="target_2nd"/>
+ <field name="dpp_q1"/>
+ <field name="dpp_q2"/>
+ <field name="dpp_q3"/>
+ <field name="dpp_q4"/>
+ </group>
+ <group>
+ <field name="date_to"/>
+ <field name="description"/>
+ <field name="achieve_1"/>
+ <field name="achieve_2"/>
+ <field name="status_q1"/>
+ <field name="status_q2"/>
+ <field name="status_q3"/>
+ <field name="status_q4"/>
+ </group>
+ </group>
+ </sheet>
+ <div class="oe_chatter">
+ <field name="message_follower_ids" widget="mail_followers"/>
+ <field name="message_ids" widget="mail_thread"/>
+ </div>
+ </form>
+ </field>
+ </record>
+
+ <record id="customer_rebate_action" model="ir.actions.act_window">
+ <field name="name">Customer Rebate</field>
+ <field name="type">ir.actions.act_window</field>
+ <field name="res_model">customer.rebate</field>
+ <field name="view_mode">tree,form</field>
+ </record>
+
+ <menuitem id="menu_customer_rebate_acct"
+ name="Customer Rebate"
+ action="customer_rebate_action"
+ parent="account.menu_finance_entries"
+ sequence="114"
+ />
+
+ <menuitem id="menu_customer_rebate_sales"
+ name="Customer Rebate"
+ action="customer_rebate_action"
+ parent="sale.product_menu_catalog"
+ sequence="102"
+ />
</odoo> \ No newline at end of file