~arthru/prestashoperpconnect/import-refunds

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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>

<!--
    Copyright (C) 2013 Akretion (http://www.akretion.com/)
    @author Alexis de Lattre <alexis.delattre@akretion.com>
    The licence is in the file __openerp__.py
-->

<record id="view_prestashop_backend_form" model="ir.ui.view">
    <field name="name">prestashop.backend.form</field>
    <field name="model">prestashop.backend</field>
    <field name="arch" type="xml">
        <form string="PrestaShop Backend" version="7.0">
            <header>
                <button name="synchronize_metadata"
                        type="object"
                        class="oe_highlight"
                        help="Synchonize shop and shop groups"
                        string="Synchronize Metadata"/>
                <button name="synchronize_basedata"
                        type="object"
                        class="oe_highlight"
                        help="Synchonize datas like language, country, currency, tax"
                        string="Synchronize Base Data"/>
            </header>
            <sheet>
                <h1>
                    <field name="name" class="oe_inline"/>
                </h1>
                <group>
                    <field name="company_id" />
                </group>
                <group>
                    <field name="version"/>
                </group>
                <group col="4">
                    <field name="location" colspan="4"/>
                    <field name="webservice_key" colspan="4"/>
                </group>
                <group name="main_configuration" string="Main Configuration">
                    <field name="warehouse_id"/>
                    <field name="taxes_included"/>
                    <field name="discount_product_id" />
                </group>
                <notebook>
                    <page name="import" string="Imports">
                                <p class="oe_grey oe_inline">
                                    By clicking on the buttons,
                                    you will initiate the synchronizations
                                    with Prestashop.
                                    Note that the import or exports
                                    won't be done directly,
                                    they will create 'Jobs'
                                    executed as soon as possible.
                                </p>
                                <p class="oe_grey oe_inline">
                                    Once imported,
                                    some types of records,
                                    like the products or categories,
                                    need a manual review.
                                    You will find the list
                                    of the new records to review
                                    in the menu 'Connectors > Checkpoint'.
                                </p>
                        <group>
                            <div>
                                <label string="Import payment methods" class="oe_inline"/>
                            </div>
                            <button name="import_payment_methods"
                                    type="object"
                                    class="oe_highlight"
                                    string="Import in background"/>
                        </group>
                        <group>
                            <div>
                                <label string="Import customer groups and customers since" class="oe_inline"/>
                                <field name="import_partners_since"
                                       class="oe_inline"
                                       nolabel="1"/>
                            </div>
                            <button name="import_customers_since"
                                    type="object"
                                    class="oe_highlight"
                                    string="Import in background"/>
                        </group>
                        <group>
                            <label string="Import product categories and products" class="oe_inline"/>
                            <div>
                                <button name="import_products"
                                        type="object"
                                        class="oe_highlight"
                                        string="Import in background"/>
                            </div>
                        </group>
                        <group>
                            <label string="Import carriers" class="oe_inline"/>
                            <div>
                                <button name="import_carriers"
                                        type="object"
                                        class="oe_highlight"
                                        string="Import in background"/>
                            </div>
                        </group>
                        <group>
                            <div>
                               <label string="Import sale orders since" class="oe_inline"/>
                               <field name="import_orders_since"
                                    class="oe_inline"
                                    nolabel="1"/>
                            </div>
                            <button name="import_sale_orders"
                                type="object"
                                class="oe_highlight"
                                string="Import in background"/>
                        </group>
                        <group>
                            <div>
                               <label string="Import refunds" class="oe_inline"/>
                            </div>
                            <button name="import_refunds"
                                type="object"
                                class="oe_highlight"
                                string="Import in background"/>
                        </group>
                        <group>
                            <label string="Update all the products stock quantities" class="oe_inline"/>
                            <button name="update_product_stock_qty"
                                type="object"
                                class="oe_highlight"
                                string="Update in background"/>
                        </group>
                    </page>
                    <page string="Languages">
                        <field name="language_ids" nolabel="1">
                            <tree>
                                <field name="active"/>
                                <field name="code"/>
                                <field name="name"/>
                            </tree>
                        </field>
                    </page>
                </notebook>
            </sheet>
        </form>
    </field>
</record>

<record id="view_prestashop_backend_tree" model="ir.ui.view">
    <field name="name">prestashop.backend.tree</field>
    <field name="model">prestashop.backend</field>
    <field name="arch" type="xml">
        <tree string="PrestaShop Backend" version="7.0">
            <field name="name"/>
            <field name="location"/>
        </tree>
    </field>
</record>

<record id="action_prestashop_backend" model="ir.actions.act_window">
    <field name="name">PrestaShop Backends</field>
    <field name="res_model">prestashop.backend</field>
    <field name="view_type">form</field>
    <field name="view_mode">tree,form</field>
</record>


<record id="view_prestashop_shop_group_form" model="ir.ui.view">
    <field name="name">prestashop.shop.group.form</field>
    <field name="model">prestashop.shop.group</field>
    <field name="arch" type="xml">
        <form string="PrestaShop Shop Group" version="7.0">
            <h1>
                <field name="name" class="oe_inline"/>
            </h1>
            <group>
                <field name="backend_id"/>
            </group>
        </form>
    </field>
</record>

<record id="view_prestashop_shop_group_tree" model="ir.ui.view">
    <field name="name">prestashop.shop.group.tree</field>
    <field name="model">prestashop.shop.group</field>
    <field name="arch" type="xml">
        <tree string="PrestaShop Shop Group" version="7.0">
            <field name="name"/>
            <field name="backend_id"/>
        </tree>
    </field>
</record>

<record id="action_prestashop_shop_group" model="ir.actions.act_window">
    <field name="name">PrestaShop Shop Groups</field>
    <field name="res_model">prestashop.shop.group</field>
    <field name="view_type">form</field>
    <field name="view_mode">tree,form</field>
</record>


<record id="view_prestashop_shop_form" model="ir.ui.view">
    <field name="name">prestashop.shop.form</field>
    <field name="model">prestashop.shop</field>
    <field name="arch" type="xml">
        <form string="PrestaShop Shop" version="7.0">
            <h1>
                <field name="name" class="oe_inline"/>
            </h1>
            <group>
                <field name="shop_group_id"/>
                <field name="openerp_id"/>
            </group>
            <group>
                <field name="default_category_id"/>
            </group>
        </form>
    </field>
</record>

<record id="view_prestashop_shop_tree" model="ir.ui.view">
    <field name="name">prestashop.shop.tree</field>
    <field name="model">prestashop.shop</field>
    <field name="arch" type="xml">
        <tree string="PrestaShop Shop" version="7.0">
            <field name="name"/>
            <field name="shop_group_id"/>
            <field name="openerp_id"/>
        </tree>
    </field>
</record>

<record id="action_prestashop_shop" model="ir.actions.act_window">
    <field name="name">PrestaShop Shops</field>
    <field name="res_model">prestashop.shop</field>
    <field name="view_type">form</field>
    <field name="view_mode">tree,form</field>
</record>


</data>
</openerp>