forked from jeffery9/ebay
-
Notifications
You must be signed in to change notification settings - Fork 2
/
ebay_user_view.xml
174 lines (165 loc) · 9.11 KB
/
ebay_user_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
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<menuitem id="menu_ebay_user" name="User" sequence="70" parent="menu_ebay_top" groups="ebay.group_ebay_user,ebay.group_ebay_manager"/>
<record model="ir.ui.view" id="ebay_user_authorize_view">
<field name="name">ebay ebay authentication</field>
<field name="model">ebay.user.authorize</field>
<field name="arch" type="xml">
<form string="ebay user authentication" version="7.0">
<separator string="Sign In to grant application access"/>
<field name="state" invisible="1"/>
<p class="oe_grey" states="confirm">
Do you want to authorize for this user?
</p>
<footer states="confirm">
<button name="get_session_id" string="OK" type="object" class="oe_highlight"/>
or
<button string="Cancel" class="oe_link" special="cancel" />
</footer>
<field name="sign_in_url" widget='url' states="login"/>
<p class="oe_grey" states="login">
Sign in with your eBay user ID and password to link your account to OpenERP.
<br/>
After successful login, click OK to complete the link procedure.
</p>
<footer states="login">
<button name="fetch_token" string="OK" type="object" class="oe_highlight"/>
or
<button string="Cancel" class="oe_link" special="cancel" />
</footer>
</form>
</field>
</record>
<record id="action_ebay_user_authorize" model="ir.actions.act_window">
<field name="type">ir.actions.act_window</field>
<field name="name">eBay User Authentication</field>
<field name="res_model">ebay.user.authorize</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<record model="ir.ui.view" id="ebay_user_form_view">
<field name="name">ebay user form</field>
<field name="model">ebay.user</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="ebay user form" version="7.0">
<header>
<button class="oe_highlight" name="action_get_user" string="Update User Info" type="object" groups="ebay.group_ebay_user,ebay.group_ebay_manager"/>
<button class="oe_highlight" name="action_get_seller_list" confirm="Are you sure you want to update this seller's list?" string="Update Seller List" type="object" groups="ebay.group_ebay_user,ebay.group_ebay_manager"/>
<button name="%(action_ebay_user_authorize)d" string="Authorize" type="action" attrs="{'invisible': [('ownership','=',False)]}" groups="ebay.group_ebay_user,ebay.group_ebay_manager"/>
</header>
<sheet>
<div class="oe_title">
<div class="oe_edit_only">
<label for="name"/>
</div>
<h1>
<field name="name" default_focus="1" placeholder="eBay User ID" />
</h1>
</div>
<div class="oe_right oe_button_box" name="buttons">
<button name="%(action_ebay_seller_listing)d" type="action" string="Seller Lists" groups="ebay.group_ebay_user,ebay.group_ebay_manager"/>
</div>
<group>
<group>
<field name="ownership" invisible="1"/>
<field name="sandbox"/>
<field name="email" attrs="{'invisible': [('ownership','=',False)]}"/>
<field name="site"/>
<field name="registration_date"/>
<field name="store_owner"/>
<field name="store_site" attrs="{'invisible': [('store_owner','=',False)]}"/>
<field name="store_url" widget='url' attrs="{'invisible': [('store_owner','=',False)]}"/>
</group>
<group>
<field name="top_rated_seller"/>
<field name="feedback_rating_star"/>
<field name="feedback_score"/>
<field name="positive_feedback_percent"/>
<field name="unique_positive_feedback_count"/>
<field name="unique_neutral_feedback_count"/>
<field name="unique_negative_feedback_count"/>
<field name="monthly_sales"/>
<field name="monthly_sales_volume"/>
</group>
</group>
<group attrs="{'invisible': [('ownership','=',False)]}" groups="ebay.group_ebay_manager">
<field name="paypal_email_address"/>
<field name="country"/>
<field name="location"/>
<field name="sale_site"/>
<field name="shipping_service"/>
<field name="dev_id"/>
<field name="app_id"/>
<field name="cert"/>
<field name="ru_name"/>
<field name="hard_expiration_time"/>
<field name="after_service_7_template"/>
<field name="after_service_15_template"/>
<field name="after_service_25_template"/>
</group>
</sheet>
</form>
</field>
</record>
<record model="ir.ui.view" id="ebay_user_tree_view">
<field name="name">ebay user tree</field>
<field name="model">ebay.user</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="ebay user tree">
<field name="name"/>
<field name="top_rated_seller"/>
<field name="monthly_sales"/>
<field name="monthly_sales_volume"/>
<field name="feedback_score"/>
<field name="positive_feedback_percent"/>
<field name="registration_date"/>
<field name="site"/>
</tree>
</field>
</record>
<record id="action_ebay_ownership_tree" model="ir.actions.act_window">
<field name="name">Ownership</field>
<field name="res_model">ebay.user</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('ownership','=',1)]</field>
<field name="context">{'default_ownership':1}</field>
</record>
<menuitem id="menu_ebay_ownership" action="action_ebay_ownership_tree" sequence="20" parent="menu_ebay_user" groups="ebay.group_ebay_manager"/>
<record id="action_ebay_seller_tree" model="ir.actions.act_window">
<field name="name">Sellers</field>
<field name="res_model">ebay.user</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('ownership','=',0)]</field>
<field name="context">{'default_ownership':0}</field>
</record>
<menuitem id="menu_ebay_sellers" action="action_ebay_seller_tree" sequence="30" parent="menu_ebay_user" groups="ebay.group_ebay_user,ebay.group_ebay_manager"/>
<record id="action_ebay_customer_form" model="ir.actions.act_window">
<field name="name">Customers</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.partner</field>
<field name="view_type">form</field>
<field name="view_mode">kanban,tree,form</field>
<field name="domain">[('customer','=',1),('from_ebay','=',1)]</field>
<field name="context">{'default_customer':1, 'default_from_ebay':1, 'search_default_customer':1, 'search_default_from_ebay':1}</field>
<field name="filter" eval="True"/>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add a contact in your address book.
</p><p>
OpenERP helps you easily track all activities related to
a customer: discussions, history of business opportunities,
documents, etc.
</p>
</field>
</record>
<menuitem id="menu_ebay_customer" name="Customers"
parent="menu_ebay_user"
action="action_ebay_customer_form" sequence="40" groups="ebay.group_ebay_manager"/>
</data>
</openerp>