odoo-addon-rma 17.0.2.2.1__py3-none-any.whl → 18.0.1.0.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. odoo/addons/rma/README.rst +6 -6
  2. odoo/addons/rma/__manifest__.py +1 -1
  3. odoo/addons/rma/controllers/main.py +4 -7
  4. odoo/addons/rma/data/mail_data.xml +12 -13
  5. odoo/addons/rma/i18n/de.po +32 -316
  6. odoo/addons/rma/i18n/de_AT.po +32 -75
  7. odoo/addons/rma/i18n/es.po +32 -336
  8. odoo/addons/rma/i18n/fr.po +32 -118
  9. odoo/addons/rma/i18n/it.po +35 -380
  10. odoo/addons/rma/i18n/nl.po +32 -75
  11. odoo/addons/rma/i18n/pt.po +32 -234
  12. odoo/addons/rma/i18n/pt_BR.po +32 -232
  13. odoo/addons/rma/i18n/rma.pot +65 -96
  14. odoo/addons/rma/i18n/ro.po +32 -209
  15. odoo/addons/rma/i18n/zh_CN.po +32 -75
  16. odoo/addons/rma/models/account_move.py +2 -2
  17. odoo/addons/rma/models/res_company.py +2 -2
  18. odoo/addons/rma/models/res_config_settings.py +3 -0
  19. odoo/addons/rma/models/rma.py +40 -39
  20. odoo/addons/rma/models/rma_team.py +12 -13
  21. odoo/addons/rma/models/stock_move.py +2 -2
  22. odoo/addons/rma/models/stock_picking.py +0 -12
  23. odoo/addons/rma/models/stock_warehouse.py +20 -14
  24. odoo/addons/rma/security/rma_security.xml +3 -9
  25. odoo/addons/rma/static/description/index.html +4 -4
  26. odoo/addons/rma/tests/test_rma.py +58 -16
  27. odoo/addons/rma/views/report_rma.xml +9 -3
  28. odoo/addons/rma/views/res_config_settings_views.xml +8 -11
  29. odoo/addons/rma/views/rma_finalization_views.xml +2 -2
  30. odoo/addons/rma/views/rma_portal_templates.xml +303 -361
  31. odoo/addons/rma/views/rma_tag_views.xml +2 -2
  32. odoo/addons/rma/views/rma_team_views.xml +35 -36
  33. odoo/addons/rma/views/rma_views.xml +7 -29
  34. odoo/addons/rma/wizard/rma_delivery.py +2 -2
  35. odoo/addons/rma/wizard/rma_delivery_views.xml +0 -3
  36. odoo/addons/rma/wizard/rma_split.py +2 -2
  37. odoo/addons/rma/wizard/rma_split_views.xml +0 -1
  38. odoo/addons/rma/wizard/stock_picking_return.py +12 -42
  39. odoo/addons/rma/wizard/stock_picking_return_views.xml +1 -5
  40. {odoo_addon_rma-17.0.2.2.1.dist-info → odoo_addon_rma-18.0.1.0.0.2.dist-info}/METADATA +9 -9
  41. odoo_addon_rma-18.0.1.0.0.2.dist-info/RECORD +70 -0
  42. odoo/addons/rma/migrations/17.0.1.2.0/post-migration.py +0 -17
  43. odoo_addon_rma-17.0.2.2.1.dist-info/RECORD +0 -71
  44. {odoo_addon_rma-17.0.2.2.1.dist-info → odoo_addon_rma-18.0.1.0.0.2.dist-info}/WHEEL +0 -0
  45. {odoo_addon_rma-17.0.2.2.1.dist-info → odoo_addon_rma-18.0.1.0.0.2.dist-info}/top_level.txt +0 -0
@@ -73,7 +73,7 @@
73
73
  <span t-field="rma.product_uom_qty" />
74
74
  </td>
75
75
  <td class="d-none d-md-table-cell tx_status">
76
- <span class="badge badge-pill badge-secondary">
76
+ <span class="badge rounded-pill text-bg-info">
77
77
  <span t-field="rma.state" />
78
78
  </span>
79
79
  </td>
@@ -93,251 +93,313 @@
93
93
  />
94
94
  </t>
95
95
  </t>
96
- <t t-call="portal.portal_record_layout">
97
- <t t-set="card_header">
98
- <h5 class="mb-0">
99
- <span>
100
- RMA Order -
101
- <span t-field="rma.name" />
102
- </span>
96
+ <h5 class="mb-0">
97
+ <span>
98
+ RMA Order -
99
+ <span t-field="rma.name" />
100
+ </span>
101
+ <span style="position: absolute; left: 50%;" class="d-none d-sm-inline">
102
+ <a
103
+ t-att-href="rma.get_portal_url(report_type='pdf', download=True)"
104
+ >
105
+ <i
106
+ class="fa fa-download"
107
+ role="img"
108
+ aria-label="Download"
109
+ title="Download"
110
+ />
111
+ </a>
112
+ </span>
113
+ <span class="float-right">
114
+ <!-- Tags -->
115
+ <t t-set="tags" t-value="rma.tag_ids.filtered('is_public')" />
116
+ <!-- We don't have the color o_tag_color_# classes available in the frontend -->
117
+ <t t-foreach="tags" t-as="tag">
103
118
  <span
104
- style="position: absolute; left: 50%;"
105
- class="d-none d-sm-inline"
106
- >
107
- <a
108
- t-att-href="rma.get_portal_url(report_type='pdf', download=True)"
109
- >
110
- <i
111
- class="fa fa-download"
112
- role="img"
113
- aria-label="Download"
114
- title="Download"
115
- />
116
- </a>
119
+ class="badge badge-pill badge-info label-text-align"
120
+ t-esc="tag.name"
121
+ />
122
+ </t>
123
+ <t t-if="rma.state in ['refunded', 'returned', 'replaced']">
124
+ <span class="small text-success orders_label_text_align">
125
+ <i class="fa fa-fw fa-check" />
126
+ <b>
127
+ <span t-field="rma.state" />
128
+ </b>
117
129
  </span>
118
- <span class="float-right">
119
- <!-- Tags -->
120
- <t
121
- t-set="tags"
122
- t-value="rma.tag_ids.filtered('is_public')"
123
- />
124
- <!-- We don't have the color o_tag_color_# classes available in the frontend -->
125
- <t t-foreach="tags" t-as="tag">
126
- <span
127
- class="badge badge-pill badge-info label-text-align"
128
- t-esc="tag.name"
130
+ </t>
131
+ <t t-elif="rma.state in ['cancelled', 'locked']">
132
+ <span class="small text-danger orders_label_text_align">
133
+ <i class="fa fa-fw fa-times" />
134
+ <b>
135
+ <span t-field="rma.state" />
136
+ </b>
137
+ </span>
138
+ </t>
139
+ <t t-else="">
140
+ <span class="small text-info orders_label_text_align">
141
+ <i class="fa fa-fw fa-clock-o" />
142
+ <b>
143
+ <span t-field="rma.state" />
144
+ </b>
145
+ </span>
146
+ </t>
147
+ </span>
148
+ </h5>
149
+ <div id="general_information">
150
+ <div class="row mt4">
151
+ <!-- Customer -->
152
+ <div t-if="rma.partner_id" class="col-12 col-md-6 mb-4 mb-md-0">
153
+ <h6>
154
+ <strong>Customer:</strong>
155
+ </h6>
156
+ <div class="row">
157
+ <div class="col flex-grow-0 pr-3">
158
+ <img
159
+ t-if="rma.partner_id.avatar_1024"
160
+ class="o_avatar o_portal_contact_img rounded"
161
+ t-att-src="image_data_uri(rma.partner_id.avatar_512)"
162
+ alt="Contact"
129
163
  />
130
- </t>
131
- <t t-if="rma.state in ['refunded', 'returned', 'replaced']">
164
+ </div>
165
+ <div class="col pl-sm-0">
166
+ <address
167
+ t-field="rma.partner_id"
168
+ t-options='{"widget": "contact", "fields": ["name", "email", "phone"]}'
169
+ />
170
+ </div>
171
+ </div>
172
+ </div>
173
+ <!-- Shipping Address -->
174
+ <div
175
+ t-if="rma.partner_shipping_id"
176
+ class="col-12 col-md-6 mb-4 mb-md-0"
177
+ >
178
+ <h6>
179
+ <strong>Shipping address:</strong>
180
+ </h6>
181
+ <div class="row">
182
+ <div class="col flex-grow-0 pr-3">
183
+ <img
184
+ t-if="rma.partner_shipping_id.avatar_1024"
185
+ class="o_avatar o_portal_contact_img rounded"
186
+ t-att-src="image_data_uri(rma.partner_shipping_id.avatar_512)"
187
+ alt="Contact"
188
+ />
189
+ </div>
190
+ <div class="col pl-sm-0">
191
+ <address
192
+ t-field="rma.partner_shipping_id"
193
+ t-options='{"widget": "contact", "fields": ["name", "email", "phone", "address"]}'
194
+ />
195
+ </div>
196
+ </div>
197
+ </div>
198
+ <!-- RMA Info -->
199
+ <div t-if="rma.user_id" class="col-12 col-md-6">
200
+ <h6>
201
+ <strong>Responsible:</strong>
202
+ </h6>
203
+ <div class="row">
204
+ <div class="col flex-grow-0 pr-3">
205
+ <img
206
+ t-if="rma.user_id.avatar_1024"
207
+ class="o_avatar o_portal_contact_img rounded"
208
+ t-att-src="image_data_uri(rma.user_id.avatar_512)"
209
+ alt="Contact"
210
+ />
211
+ </div>
212
+ <div class="col pl-sm-0">
213
+ <address
214
+ t-field="rma.user_id"
215
+ t-options='{"widget": "contact", "fields": ["name", "email", "phone"]}'
216
+ />
217
+ </div>
218
+ </div>
219
+ </div>
220
+ </div>
221
+ <div class="row mt32" id="product_information">
222
+ <div class="col-12 col-md-6 mb-4 mb-md-0">
223
+ <div t-if="rma.picking_id" class="row mb-2 mb-sm-1">
224
+ <div class="col-12 col-sm-4">
225
+ <strong>Origin delivery</strong>
226
+ </div>
227
+ <div class="col-12 col-sm-8">
228
+ <span t-field="rma.picking_id" />
229
+ </div>
230
+ </div>
231
+ <!-- We need to prevent access errors if the product is
232
+ unpublished-->
233
+ <div t-if="rma.sudo().product_id" class="row mb-2 mb-sm-1">
234
+ <div class="col-12 col-sm-4">
235
+ <strong>Product</strong>
236
+ </div>
237
+ <div class="col-12 col-sm-8">
238
+ <span t-esc="rma.sudo().product_id.display_name" />
239
+ </div>
240
+ </div>
241
+ <div t-if="rma.product_uom_qty" class="row mb-2 mb-sm-1">
242
+ <div class="col-12 col-sm-4">
243
+ <strong>Quantity</strong>
244
+ </div>
245
+ <div class="col-12 col-sm-8">
246
+ <span t-field="rma.product_uom_qty" />
247
+ </div>
248
+ </div>
249
+ <div t-if="rma.delivered_qty" class="row">
250
+ <div class="col-12 col-sm-4">
251
+ <strong>Delivered quantity</strong>
252
+ </div>
253
+ <div class="col-12 col-sm-8">
254
+ <span t-field="rma.delivered_qty" />
255
+ </div>
256
+ </div>
257
+ </div>
258
+ <div class="col-12 col-md-6">
259
+ <div t-if="rma.date" class="row mb-2 mb-sm-1">
260
+ <div class="col-12 col-sm-4">
261
+ <strong>RMA Date</strong>
262
+ </div>
263
+ <div class="col-12 col-sm-8">
132
264
  <span
133
- class="small text-success orders_label_text_align"
134
- >
135
- <i class="fa fa-fw fa-check" />
136
- <b>
137
- <span t-field="rma.state" />
138
- </b>
139
- </span>
140
- </t>
141
- <t t-elif="rma.state in ['cancelled', 'locked']">
142
- <span class="small text-danger orders_label_text_align">
143
- <i class="fa fa-fw fa-times" />
144
- <b>
145
- <span t-field="rma.state" />
146
- </b>
147
- </span>
148
- </t>
149
- <t t-else="">
150
- <span class="small text-info orders_label_text_align">
151
- <i class="fa fa-fw fa-clock-o" />
152
- <b>
153
- <span t-field="rma.state" />
154
- </b>
155
- </span>
156
- </t>
157
- </span>
158
- </h5>
159
- </t>
160
- <t t-set="card_body">
161
- <div id="general_information">
162
- <div class="row mt4">
163
- <!-- Customer -->
164
- <div
165
- t-if="rma.partner_id"
166
- class="col-12 col-md-6 mb-4 mb-md-0"
167
- >
168
- <h6>
169
- <strong>Customer:</strong>
170
- </h6>
171
- <div class="row">
172
- <div class="col flex-grow-0 pr-3">
173
- <img
174
- t-if="rma.partner_id.image_1024"
175
- class="rounded-circle mt-1 o_portal_contact_img"
176
- t-att-src="image_data_uri(rma.partner_id.image_1024)"
177
- alt="Contact"
178
- />
179
- <img
180
- t-else=""
181
- class="rounded-circle mt-1 o_portal_contact_img"
182
- src="/web/static/src/img/user_menu_avatar.png"
183
- alt="Contact"
184
- />
185
- </div>
186
- <div class="col pl-sm-0">
187
- <address
188
- t-field="rma.partner_id"
189
- t-options='{"widget": "contact", "fields": ["name", "email", "phone"]}'
190
- />
191
- </div>
192
- </div>
265
+ t-field="rma.date"
266
+ t-options='{"widget": "date"}'
267
+ />
193
268
  </div>
194
- <!-- Shipping Address -->
195
- <div
196
- t-if="rma.partner_shipping_id"
197
- class="col-12 col-md-6 mb-4 mb-md-0"
198
- >
199
- <h6>
200
- <strong>Shipping address:</strong>
201
- </h6>
202
- <div class="row">
203
- <div class="col flex-grow-0 pr-3">
204
- <img
205
- t-if="rma.partner_shipping_id.image_1024"
206
- class="rounded-circle mt-1 o_portal_contact_img"
207
- t-att-src="image_data_uri(rma.partner_shipping_id.image_1024)"
208
- alt="Contact"
209
- />
210
- <img
211
- t-else=""
212
- class="rounded-circle mt-1 o_portal_contact_img"
213
- src="/web/static/src/img/user_menu_avatar.png"
214
- alt="Contact"
215
- />
216
- </div>
217
- <div class="col pl-sm-0">
218
- <address
219
- t-field="rma.partner_shipping_id"
220
- t-options='{"widget": "contact", "fields": ["name", "email", "phone", "address"]}'
221
- />
222
- </div>
223
- </div>
269
+ </div>
270
+ <div t-if="rma.deadline" class="row mb-2 mb-sm-1">
271
+ <div class="col-12 col-sm-4">
272
+ <strong>Deadline</strong>
224
273
  </div>
225
- <!-- RMA Info -->
226
- <div t-if="rma.user_id" class="col-12 col-md-6">
227
- <h6>
228
- <strong>Responsible:</strong>
229
- </h6>
230
- <div class="row">
231
- <div class="col flex-grow-0 pr-3">
232
- <img
233
- t-if="rma.user_id.image_1024"
234
- class="rounded-circle mt-1 o_portal_contact_img"
235
- t-att-src="image_data_uri(rma.user_id.image_1024)"
236
- alt="Contact"
237
- />
238
- <img
239
- t-else=""
240
- class="rounded-circle mt-1 o_portal_contact_img"
241
- src="/web/static/src/img/user_menu_avatar.png"
242
- alt="Contact"
243
- />
244
- </div>
245
- <div class="col pl-sm-0">
246
- <address
247
- t-field="rma.user_id"
248
- t-options='{"widget": "contact", "fields": ["name", "email", "phone"]}'
249
- />
250
- </div>
251
- </div>
274
+ <div class="col-12 col-sm-8">
275
+ <span
276
+ t-field="rma.deadline"
277
+ t-options='{"widget": "date"}'
278
+ />
252
279
  </div>
253
280
  </div>
254
- <div class="row mt32" id="product_information">
255
- <div class="col-12 col-md-6 mb-4 mb-md-0">
256
- <div t-if="rma.picking_id" class="row mb-2 mb-sm-1">
257
- <div class="col-12 col-sm-4">
258
- <strong>Origin delivery</strong>
259
- </div>
260
- <div class="col-12 col-sm-8">
261
- <span t-field="rma.picking_id" />
262
- </div>
263
- </div>
264
- <!-- We need to prevent access errors if the product is
265
- unpublished-->
266
- <div
267
- t-if="rma.sudo().product_id"
268
- class="row mb-2 mb-sm-1"
269
- >
270
- <div class="col-12 col-sm-4">
271
- <strong>Product</strong>
272
- </div>
273
- <div class="col-12 col-sm-8">
274
- <span
275
- t-esc="rma.sudo().product_id.display_name"
276
- />
277
- </div>
278
- </div>
279
- <div
280
- t-if="rma.product_uom_qty"
281
- class="row mb-2 mb-sm-1"
282
- >
283
- <div class="col-12 col-sm-4">
284
- <strong>Quantity</strong>
285
- </div>
286
- <div class="col-12 col-sm-8">
287
- <span t-field="rma.product_uom_qty" />
288
- </div>
289
- </div>
290
- <div t-if="rma.delivered_qty" class="row">
291
- <div class="col-12 col-sm-4">
292
- <strong>Delivered quantity</strong>
293
- </div>
294
- <div class="col-12 col-sm-8">
295
- <span t-field="rma.delivered_qty" />
296
- </div>
297
- </div>
281
+ <div t-if="rma.origin" class="row">
282
+ <div class="col-12 col-sm-4">
283
+ <strong>Origin</strong>
298
284
  </div>
299
- <div class="col-12 col-md-6">
300
- <div t-if="rma.date" class="row mb-2 mb-sm-1">
301
- <div class="col-12 col-sm-4">
302
- <strong>RMA Date</strong>
303
- </div>
304
- <div class="col-12 col-sm-8">
305
- <span
306
- t-field="rma.date"
307
- t-options='{"widget": "date"}'
308
- />
309
- </div>
310
- </div>
311
- <div t-if="rma.deadline" class="row mb-2 mb-sm-1">
312
- <div class="col-12 col-sm-4">
313
- <strong>Deadline</strong>
314
- </div>
315
- <div class="col-12 col-sm-8">
316
- <span
317
- t-field="rma.deadline"
318
- t-options='{"widget": "date"}'
319
- />
320
- </div>
321
- </div>
322
- <div t-if="rma.origin" class="row">
323
- <div class="col-12 col-sm-4">
324
- <strong>Origin</strong>
325
- </div>
326
- <div class="col-12 col-sm-8">
327
- <span t-field="rma.origin" />
328
- </div>
329
- </div>
285
+ <div class="col-12 col-sm-8">
286
+ <span t-field="rma.origin" />
330
287
  </div>
331
288
  </div>
332
289
  </div>
333
- <section
334
- t-if="rma.reception_move_id"
335
- id="reception_section"
336
- style="page-break-inside: auto;"
337
- class="mt32"
290
+ </div>
291
+ </div>
292
+ <section
293
+ t-if="rma.reception_move_id"
294
+ id="reception_section"
295
+ style="page-break-inside: auto;"
296
+ class="mt32"
297
+ >
298
+ <strong class="d-block mb-1">Reception</strong>
299
+ <t t-set="picking" t-value="rma.reception_move_id.picking_id" />
300
+ <t
301
+ t-set="report_url"
302
+ t-value="'/my/rma/picking/pdf/%s/%s?%s' % (rma.id, picking.id, keep_query())"
303
+ />
304
+ <a
305
+ class="list-group-item list-group-item-action d-flex flex-wrap align-items-center justify-content-between py-2 px-3"
306
+ t-att-href="report_url"
307
+ >
308
+ <div>
309
+ <i
310
+ class="fa fa-truck mr-1"
311
+ role="img"
312
+ aria-label="Download"
313
+ title="Download"
314
+ />
315
+ <span t-esc="picking.name" class="mr-lg-3" />
316
+ <div class="d-lg-inline-block">
317
+ Date:
318
+ <span class="text-muted" t-field="picking.date" />
319
+ </div>
320
+ </div>
321
+ <t t-if="picking.state == 'done'">
322
+ <span class="badge badge-success label-text-align">
323
+ <i class="fa fa-fw fa-truck" />
324
+ Shipped
325
+ </span>
326
+ </t>
327
+ <t t-if="picking.state == 'partially_available'">
328
+ <span class="badge badge-warning label-text-align">
329
+ <i class="fa fa-fw fa-clock-o" />
330
+ Partially Available
331
+ </span>
332
+ </t>
333
+ <t t-if="picking.state == 'cancel'">
334
+ <span class="badge badge-danger label-text-align">
335
+ <i class="fa fa-fw fa-times" />
336
+ Cancelled
337
+ </span>
338
+ </t>
339
+ <t
340
+ t-if="picking.state in ['draft', 'waiting', 'confirmed', 'assigned']"
341
+ >
342
+ <span class="badge badge-info label-text-align">
343
+ <i class="fa fa-fw fa-clock-o" />
344
+ Preparation
345
+ </span>
346
+ </t>
347
+ </a>
348
+ </section>
349
+ <section
350
+ t-if="rma.refund_id"
351
+ id="refund_section"
352
+ style="page-break-inside: auto;"
353
+ class="mt32"
354
+ >
355
+ <strong class="d-block mb-1">Refund</strong>
356
+ <t t-set="refund" t-value="rma.refund_id" />
357
+ <t
358
+ t-set="report_url"
359
+ t-value="refund.get_portal_url(report_type='pdf')"
360
+ />
361
+ <a
362
+ class="list-group-item list-group-item-action d-flex flex-wrap align-items-center justify-content-between py-2 px-3"
363
+ t-att-href="report_url"
364
+ >
365
+ <div>
366
+ <i
367
+ class="fa fa-pencil-square-o mr-1"
368
+ role="img"
369
+ aria-label="Download"
370
+ title="Download"
371
+ />
372
+ <span t-esc="refund.name" class="mr-lg-3" />
373
+ <div class="d-lg-inline-block">
374
+ Date:
375
+ <span class="text-muted" t-field="refund.invoice_date" />
376
+ </div>
377
+ </div>
378
+ <span
379
+ t-if="refund.state == 'paid'"
380
+ class="small text-success orders_label_text_align"
381
+ >
382
+ <i class="fa fa-fw fa-check" />
383
+ <b>Paid</b>
384
+ </span>
385
+ <span t-else="" class="small text-info orders_label_text_align">
386
+ <i class="fa fa-fw fa-clock-o" />
387
+ <b>Waiting Payment</b>
388
+ </span>
389
+ </a>
390
+ </section>
391
+ <section
392
+ t-if="rma.delivery_move_ids"
393
+ id="reception_section"
394
+ style="page-break-inside: auto;"
395
+ class="mt32"
396
+ >
397
+ <strong class="d-block mb-1">Delivery</strong>
398
+ <ul class="list-group mb-4">
399
+ <t
400
+ t-foreach="rma.delivery_move_ids.mapped('picking_id')"
401
+ t-as="picking"
338
402
  >
339
- <strong class="d-block mb-1">Reception</strong>
340
- <t t-set="picking" t-value="rma.reception_move_id.picking_id" />
341
403
  <t
342
404
  t-set="report_url"
343
405
  t-value="'/my/rma/picking/pdf/%s/%s?%s' % (rma.id, picking.id, keep_query())"
@@ -386,134 +448,14 @@
386
448
  </span>
387
449
  </t>
388
450
  </a>
389
- </section>
390
- <section
391
- t-if="rma.refund_id"
392
- id="refund_section"
393
- style="page-break-inside: auto;"
394
- class="mt32"
395
- >
396
- <strong class="d-block mb-1">Refund</strong>
397
- <t t-set="refund" t-value="rma.refund_id" />
398
- <t
399
- t-set="report_url"
400
- t-value="refund.get_portal_url(report_type='pdf')"
401
- />
402
- <a
403
- class="list-group-item list-group-item-action d-flex flex-wrap align-items-center justify-content-between py-2 px-3"
404
- t-att-href="report_url"
405
- >
406
- <div>
407
- <i
408
- class="fa fa-pencil-square-o mr-1"
409
- role="img"
410
- aria-label="Download"
411
- title="Download"
412
- />
413
- <span t-esc="refund.name" class="mr-lg-3" />
414
- <div class="d-lg-inline-block">
415
- Date:
416
- <span
417
- class="text-muted"
418
- t-field="refund.invoice_date"
419
- />
420
- </div>
421
- </div>
422
- <span
423
- t-if="refund.state == 'paid'"
424
- class="small text-success orders_label_text_align"
425
- >
426
- <i class="fa fa-fw fa-check" />
427
- <b>Paid</b>
428
- </span>
429
- <span
430
- t-else=""
431
- class="small text-info orders_label_text_align"
432
- >
433
- <i class="fa fa-fw fa-clock-o" />
434
- <b>Waiting Payment</b>
435
- </span>
436
- </a>
437
- </section>
438
- <section
439
- t-if="rma.delivery_move_ids"
440
- id="reception_section"
441
- style="page-break-inside: auto;"
442
- class="mt32"
443
- >
444
- <strong class="d-block mb-1">Delivery</strong>
445
- <ul class="list-group mb-4">
446
- <t
447
- t-foreach="rma.delivery_move_ids.mapped('picking_id')"
448
- t-as="picking"
449
- >
450
- <t
451
- t-set="report_url"
452
- t-value="'/my/rma/picking/pdf/%s/%s?%s' % (rma.id, picking.id, keep_query())"
453
- />
454
- <a
455
- class="list-group-item list-group-item-action d-flex flex-wrap align-items-center justify-content-between py-2 px-3"
456
- t-att-href="report_url"
457
- >
458
- <div>
459
- <i
460
- class="fa fa-truck mr-1"
461
- role="img"
462
- aria-label="Download"
463
- title="Download"
464
- />
465
- <span t-esc="picking.name" class="mr-lg-3" />
466
- <div class="d-lg-inline-block">
467
- Date:
468
- <span
469
- class="text-muted"
470
- t-field="picking.date"
471
- />
472
- </div>
473
- </div>
474
- <t t-if="picking.state == 'done'">
475
- <span
476
- class="badge badge-success label-text-align"
477
- >
478
- <i class="fa fa-fw fa-truck" />
479
- Shipped
480
- </span>
481
- </t>
482
- <t t-if="picking.state == 'partially_available'">
483
- <span
484
- class="badge badge-warning label-text-align"
485
- >
486
- <i class="fa fa-fw fa-clock-o" />
487
- Partially Available
488
- </span>
489
- </t>
490
- <t t-if="picking.state == 'cancel'">
491
- <span
492
- class="badge badge-danger label-text-align"
493
- >
494
- <i class="fa fa-fw fa-times" />
495
- Cancelled
496
- </span>
497
- </t>
498
- <t
499
- t-if="picking.state in ['draft', 'waiting', 'confirmed', 'assigned']"
500
- >
501
- <span class="badge badge-info label-text-align">
502
- <i class="fa fa-fw fa-clock-o" />
503
- Preparation
504
- </span>
505
- </t>
506
- </a>
507
- </t>
508
- </ul>
509
- </section>
510
- <section id="description" class="mt-5" t-if="rma.description">
511
- <h3 class="">Description</h3>
512
- <hr class="mt-0 mb-1" />
513
- <t t-out="rma.description" />
514
- </section>
515
- </t>
516
- </t>
451
+ </t>
452
+ </ul>
453
+ </section>
454
+ <section id="description" class="mt-5" t-if="rma.description">
455
+ <h3 class="">Description</h3>
456
+ <hr class="mt-0 mb-1" />
457
+ <t t-out="rma.description" />
458
+ </section>
517
459
  <!-- chatter -->
518
460
  <div id="rma_communication" class="mt-4">
519
461
  <h2>Communication</h2>