blob: ccaa07278bbcad9873c32f6ee7c49b4cf2f59341 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="customer_commision_tree" model="ir.ui.view">
<field name="name">customer.commision.tree</field>
<field name="model">customer.commision</field>
<field name="arch" type="xml">
<tree>
<field name="number"/>
<field name="date_from"/>
<field name="date_to"/>
<field name="partner_id"/>
<field name="description"/>
<field name="notification" readonly="1"/>
<field name="status" readonly="1"/>
</tree>
</field>
</record>
<record id="customer_commision_line_tree" model="ir.ui.view">
<field name="name">customer.commision.line.tree</field>
<field name="model">customer.commision.line</field>
<field name="arch" type="xml">
<tree editable="top" create="false" delete="false">
<field name="partner_id" readonly="1"/>
<field name="invoice_id" readonly="1"/>
<field name="state" readonly="1"/>
<field name="dpp" readonly="1"/>
<field name="tax" readonly="1"/>
<field name="total" readonly="1"/>
</tree>
</field>
</record>
<record id="customer_commision_form" model="ir.ui.view">
<field name="name">customer_commision_form</field>
<field name="model">customer.commision</field>
<field name="arch" type="xml">
<form>
<header>
<button name="action_confirm_customer_commision"
string="Confirm" type="object"
options="{}"/>
</header>
<sheet string="Customer Commision">
<div class="oe_button_box" name="button_box"/>
<group>
<group>
<field name="number"/>
<field name="date_from"/>
<field name="partner_id"/>
<field name="description"/>
<field name="commision_percent"/>
<field name="commision_amt"/>
</group>
<group>
<div>
<button name="generate_customer_commision"
string="Generate Line"
type="object"
class="mr-2 oe_highlight"
/>
</div>
<field name="date_to"/>
<field name="notification" readonly="1"/>
<field name="status" readonly="1"/>
<field name="total_dpp"/>
</group>
</group>
<notebook>
<page string="Lines">
<field name="commision_lines"/>
</page>
</notebook>
</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_commision_action" model="ir.actions.act_window">
<field name="name">Customer Commision</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">customer.commision</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem id="menu_customer_commision_acct"
name="Customer Commision"
action="customer_commision_action"
parent="account.menu_finance_entries"
sequence="113"
/>
<menuitem id="menu_customer_commision_sales"
name="Customer Commision"
action="customer_commision_action"
parent="sale.product_menu_catalog"
sequence="101"
/>
</odoo>
|