forked from HypnoTherapist/ebay
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ebay_sale_view.xml
212 lines (206 loc) · 12.4 KB
/
ebay_sale_view.xml
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<menuitem id="menu_ebay_sale_management" name="Sales" parent="menu_ebay_top" sequence="50"/>
<record id="view_ebay_sale_form" model="ir.ui.view">
<field name="name">ebay sale order tree form</field>
<field name="model">ebay.sale.order</field>
<field name="priority" eval="1"/>
<field name="arch" type="xml">
<form string="eBay Sales Order" version="7.0">
<header>
<button name="action_confirm" class="oe_highlight" states="draft,pending" string="Confirm" type="object"/>
<button name="action_pending" states="draft" string="Pending" type="object"/>
<button name="action_assign" class="oe_highlight" states="confirmed" string="Check Availability" type="object"/>
<button name="action_send" class="oe_highlight" confirm="Are you sure want to delivery this order?" states="assigned" string="Delivery" type="object"/>
<button name="%(action_ebay_sale_order_print)d" class="oe_highlight" states="assigned,sent,done" string="Print Delivery Slip" type="action"/>
<button name="action_done" confirm="Are you sure want to complete this order?" states="sent" string="Done" type="object"/>
<button name="action_cancel" states="draft" confirm="Are you sure want to cancel this order?" string="Cancel" type="object"/>
<field name="state" widget="statusbar"/>
</header>
<sheet>
<h1 class="oe_title">
<label for="name"/>
<field name="name" class="oe_inline" readonly="1"/>
</h1>
<div class="oe_right">
<label for="ebay_user_id"/>
<field name="ebay_user_id" class="oe_inline" />
</div>
<group>
<group>
<field name="buyer_user_id"/>
<field name="partner_id" domain="[('customer','=',True)]" context="{'search_default_customer':1, 'show_address': 1}" options='{"always_reload": True}'/>
</group>
<group>
<field name="order_status"/>
<field name="created_time"/>
<field name="paid_time"/>
<field name="shipped_time"/>
<field name="shipping_service"/>
<field name="after_service_duration"/>
</group>
</group>
<group>
<field name="order_id"/>
<field name="payment_hold_status"/>
<field name="cancel_reason"/>
<field name="buyer_checkout_message"/>
</group>
<group>
<group string="Sales Price Detail">
<field name="adjustment_amount"/>
<field name="amount_paid"/>
<field name="amount_saved"/>
<field name="subtotal"/>
<field name="total"/>
</group>
<group string="Checkout Status">
<field name="cs_status"/>
<field name="cs_payment_method"/>
<field name="cs_ebay_payment_status"/>
<field name="cs_last_modified_time"/>
</group>
</group>
<label for="transactions"/>
<field name="transactions">
<form string="Order Transactions" version="7.0">
<header>
<field name="state" widget="statusbar"/>
</header>
<group>
<field name="name"/>
<field name="ebay_item_id" on_change="on_change_ebay_item_id(ebay_item_id)"/>
<field name="ebay_item_variation_id" on_change="on_change_ebay_item_variation_id(ebay_item_id, ebay_item_variation_id)" attrs="{'invisible': [('variation','=',False)]}"/>
<field name="variation" invisible="1"/>
<field name="sd_record_number"/>
</group>
<group>
<group>
<field name="view_item_url" widget="url"/>
<field name="quantity_purchased"/>
<field name="transaction_price"/>
<field name="final_value_fee"/>
</group>
<group>
<field name="created_date"/>
<field name="shipped_time"/>
<field name="actual_handling_cost"/>
<field name="actual_shipping_cost"/>
</group>
</group>
</form>
<tree string="Order Transactions" colors="red:state=='exception'">
<field name="sd_record_number"/>
<field name="name"/>
<field name="quantity_purchased"/>
<field name="transaction_price"/>
<field name="state" invisible="1"/>
<button name="action_send_message" string="Send message to buyer" type="object" icon="terp-mail-message-new" groups="ebay.group_ebay_user,ebay.group_ebay_manager"/>
</tree>
</field>
</sheet>
<div class="oe_chatter">
</div>
</form>
</field>
</record>
<record id="view_ebay_sale_order_message_form" model="ir.ui.view">
<field name="name">ebay sale order message form</field>
<field name="model">ebay.sale.order</field>
<field name="priority" eval="99"/>
<field name="arch" type="xml">
<form string="eBay Sales Order Message" version="7.0">
<header>
<field name="state" widget="statusbar"/>
</header>
<sheet>
<h1 class="oe_title">
<label for="name"/>
<field name="name" class="oe_inline" readonly="1"/>
</h1>
<group>
<group>
<field name="buyer_user_id"/>
<field name="partner_id" domain="[('customer','=',True)]" context="{'search_default_customer':1, 'show_address': 1}" options='{"always_reload": True}' readonly="1"/>
</group>
<group>
<field name="order_status"/>
<field name="created_time"/>
<field name="paid_time"/>
<field name="shipped_time"/>
<field name="shipping_service"/>
</group>
</group>
<label for="buyer_checkout_message"/>
<field name="buyer_checkout_message"/>
</sheet>
<footer>
<button string="Close" class="oe_highlight" special="cancel"/>
</footer>
</form>
</field>
</record>
<record id="view_ebay_sale_order_tree" model="ir.ui.view">
<field name="name">ebay sale order tree</field>
<field name="model">ebay.sale.order</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="ebay sale order tree" colors="grey:state=='cancel';blue:state in ('draft');red:state in ('pending');purple:state in ('confirmed', 'assigned')">
<field name="buyer_checkout_message" invisible="1"/>
<button name="action_open_message" attrs="{'invisible': [('buyer_checkout_message','=',False)]}" string="Message" type="object" icon="terp-mail-message-new" help="Message"/>
<field name="name"/>
<field name="buyer_user_id"/>
<field name="state"/>
<field name="cs_ebay_payment_status" invisible="1"/>
<field name="cs_status" invisible="1"/>
<field name="amount_paid"/>
<field name="shipped_time"/>
<field name="cancel_reason" invisible="1"/>
<field name="after_service_duration"/>
<field name="transaction_details"/>
</tree>
</field>
</record>
<record model="ir.ui.view" id="view_ebay_sale_order_graph">
<field name="name">ebay sale order graph</field>
<field name="model">ebay.sale.order</field>
<field name="arch" type="xml">
<graph string="eBay Sales Orders" type="bar">
<field name="created_time"/>
<field name="amount_paid" operator="+"/>
</graph>
</field>
</record>
<record id="view_ebay_sales_order_filter" model="ir.ui.view">
<field name="name">ebay sales order list select</field>
<field name="model">ebay.sale.order</field>
<field name="arch" type="xml">
<search string="Search Sales Order">
<filter icon="terp-document-new" string="Draft" name="draft" domain="[('state','in',('draft',))]" help="Sales Order that haven't yet been confirmed"/>
<filter icon="terp-check" string="Waiting Availability" domain="[('state','in',('confirmed',))]" help="Sales Order has to be check availability"/>
<filter icon="terp-dolar_ok!" string="Ready to Deliver" domain="[('state','in',('assigned',))]" help="Sales Order ready to be sent"/>
<filter icon="terp-dolar_ok!" string="Delivered" domain="[('state','in',('sent',))]" help="Sales Order has to be sent"/>
<filter icon="terp-dolar_ok!" string="Done" domain="[('state','=','done')]" help="Sales Order done"/>
<separator/>
<field name="partner_id" filter_domain="[('partner_id', 'child_of', self)]"/>
<field name="ebay_user_id"/>
<field name="buyer_user_id"/>
<field name="sd_record_number"/>
<field name="state"/>
<group expand="0" string="Group By...">
<filter string="Customer" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
<filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
</group>
</search>
</field>
</record>
<record id="action_ebay_sale_order_tree" model="ir.actions.act_window">
<field name="name">Sale Orders</field>
<field name="res_model">ebay.sale.order</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form,graph</field>
</record>
<menuitem id="menu_ebay_sale_order" action="action_ebay_sale_order_tree" sequence="20" parent="menu_ebay_sale_management"/>
</data>
</openerp>