Merge lp:~unifield-team/unifield-server/us-1668 into lp:unifield-server
- us-1668
- Merge into trunk
Proposed by
jftempo
Status: | Merged |
---|---|
Merged at revision: | 3966 |
Proposed branch: | lp:~unifield-team/unifield-server/us-1668 |
Merge into: | lp:unifield-server |
Diff against target: |
250 lines (+180/-10) (has conflicts) 2 files modified
bin/addons/msf_doc_import/wizard/wizard_import_fo_line.py (+10/-7) bin/addons/msf_profile/i18n/fr_MF.po (+170/-3) Text conflict in bin/addons/msf_profile/i18n/fr_MF.po |
To merge this branch: | bzr merge lp:~unifield-team/unifield-server/us-1668 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
UniField Dev Team | Pending | ||
Review via email: mp+305126@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'bin/addons/msf_doc_import/wizard/wizard_import_fo_line.py' | |||
2 | --- bin/addons/msf_doc_import/wizard/wizard_import_fo_line.py 2016-08-18 14:36:26 +0000 | |||
3 | +++ bin/addons/msf_doc_import/wizard/wizard_import_fo_line.py 2016-09-07 16:39:15 +0000 | |||
4 | @@ -25,6 +25,7 @@ | |||
5 | 25 | import base64 | 25 | import base64 |
6 | 26 | from spreadsheet_xml.spreadsheet_xml import SpreadsheetXML | 26 | from spreadsheet_xml.spreadsheet_xml import SpreadsheetXML |
7 | 27 | import time | 27 | import time |
8 | 28 | import tools | ||
9 | 28 | from msf_doc_import import check_line | 29 | from msf_doc_import import check_line |
10 | 29 | from msf_doc_import.wizard import FO_LINE_COLUMNS_FOR_IMPORT as columns_for_fo_line_import | 30 | from msf_doc_import.wizard import FO_LINE_COLUMNS_FOR_IMPORT as columns_for_fo_line_import |
11 | 30 | 31 | ||
12 | @@ -113,10 +114,12 @@ | |||
13 | 113 | header_error = False | 114 | header_error = False |
14 | 114 | if header_row: | 115 | if header_row: |
15 | 115 | for i, h_name in enumerate(columns_for_fo_line_import): | 116 | for i, h_name in enumerate(columns_for_fo_line_import): |
17 | 116 | if len(header_row) > i and str(header_row[i]) != h_name: | 117 | tr_header_row = _(tools.ustr(header_row[i])) |
18 | 118 | tr_h_name = _(h_name) | ||
19 | 119 | if len(header_row) > i and tr_header_row != tr_h_name: | ||
20 | 117 | header_error = True | 120 | header_error = True |
23 | 118 | if str(header_row[i]).upper() == h_name.upper(): | 121 | if tr_header_row.upper() == tr_h_name.upper(): |
24 | 119 | error_list.append(_("\n\tPlease check spelling on column '%s'.") % header_row[i]) | 122 | error_list.append(_("\n\tPlease check spelling on column '%s'.") % tr_header_row) |
25 | 120 | 123 | ||
26 | 121 | if header_error: | 124 | if header_error: |
27 | 122 | msg = _("\n\tYou can not import this file because the header of columns doesn't match with the expected headers: %s") % ','.join(columns_for_fo_line_import) | 125 | msg = _("\n\tYou can not import this file because the header of columns doesn't match with the expected headers: %s") % ','.join(columns_for_fo_line_import) |
28 | @@ -127,8 +130,8 @@ | |||
29 | 127 | lines_to_correct = check_line.check_lines_currency(rows, | 130 | lines_to_correct = check_line.check_lines_currency(rows, |
30 | 128 | currency_index, order_currency_code) | 131 | currency_index, order_currency_code) |
31 | 129 | if lines_to_correct > 0: | 132 | if lines_to_correct > 0: |
34 | 130 | msg = "You can not import this file because it contains" \ | 133 | msg = _("You can not import this file because it contains" \ |
35 | 131 | " line(s) with currency (Column G) not of the order currency (%s)" % ( | 134 | " line(s) with currency (Column G) not of the order currency (%s)") % ( |
36 | 132 | order_currency_code, ) | 135 | order_currency_code, ) |
37 | 133 | error_list.append(msg) | 136 | error_list.append(msg) |
38 | 134 | 137 | ||
39 | @@ -288,7 +291,7 @@ | |||
40 | 288 | if error_log: | 291 | if error_log: |
41 | 289 | error_log = _("Reported errors for ignored lines : \n") + error_log | 292 | error_log = _("Reported errors for ignored lines : \n") + error_log |
42 | 290 | end_time = time.time() | 293 | end_time = time.time() |
44 | 291 | total_time = str(round(end_time-start_time)) + _(' second(s)') | 294 | total_time = tools.ustr(round(end_time-start_time)) + _(' second(s)') |
45 | 292 | final_message = _(''' | 295 | final_message = _(''' |
46 | 293 | %s | 296 | %s |
47 | 294 | Importation completed in %s! | 297 | Importation completed in %s! |
48 | @@ -307,7 +310,7 @@ | |||
49 | 307 | # we reset the state of the FO to draft (initial state) | 310 | # we reset the state of the FO to draft (initial state) |
50 | 308 | except Exception as e: | 311 | except Exception as e: |
51 | 309 | self.write(cr, uid, ids, { | 312 | self.write(cr, uid, ids, { |
53 | 310 | 'message': _('An unknow error occured, please contact the support team. Error message: %s') % str(e), | 313 | 'message': _('An unknow error occured, please contact the support team. Error message: %s') % tools.ustr(e), |
54 | 311 | 'state': 'done', | 314 | 'state': 'done', |
55 | 312 | }, context=context) | 315 | }, context=context) |
56 | 313 | finally: | 316 | finally: |
57 | 314 | 317 | ||
58 | === modified file 'bin/addons/msf_profile/i18n/fr_MF.po' | |||
59 | --- bin/addons/msf_profile/i18n/fr_MF.po 2016-09-06 14:18:54 +0000 | |||
60 | +++ bin/addons/msf_profile/i18n/fr_MF.po 2016-09-07 16:39:15 +0000 | |||
61 | @@ -60404,9 +60404,9 @@ | |||
62 | 60404 | msgstr "La Commande doit être unique ou plus grande que 1!" | 60404 | msgstr "La Commande doit être unique ou plus grande que 1!" |
63 | 60405 | 60405 | ||
64 | 60406 | #. module: msf_doc_import | 60406 | #. module: msf_doc_import |
68 | 60407 | #: code:addons/msf_doc_import/wizard/wizard_import_fo_line.py:240 | 60407 | #: code:addons/msf_doc_import/wizard/wizard_import_fo_line.py:294 |
69 | 60408 | #: code:addons/msf_doc_import/wizard/wizard_import_ir_line.py:228 | 60408 | #: code:addons/msf_doc_import/wizard/wizard_import_ir_line.py:267 |
70 | 60409 | #: code:addons/msf_doc_import/wizard/wizard_import_po_line.py:246 | 60409 | #: code:addons/msf_doc_import/wizard/wizard_import_po_line.py:326 |
71 | 60410 | #: code:addons/msf_doc_import/wizard/wizard_import_tender_line.py:191 | 60410 | #: code:addons/msf_doc_import/wizard/wizard_import_tender_line.py:191 |
72 | 60411 | #, python-format | 60411 | #, python-format |
73 | 60412 | msgid " second(s)" | 60412 | msgid " second(s)" |
74 | @@ -74416,9 +74416,176 @@ | |||
75 | 74416 | #, python-format | 74416 | #, python-format |
76 | 74417 | msgid "The column '%s' is not present in the file." | 74417 | msgid "The column '%s' is not present in the file." |
77 | 74418 | msgstr "La colonne '%s' n'est pas présente dans le fichier." | 74418 | msgstr "La colonne '%s' n'est pas présente dans le fichier." |
78 | 74419 | <<<<<<< TREE | ||
79 | 74419 | 74420 | ||
80 | 74420 | #. module: msf_doc_import | 74421 | #. module: msf_doc_import |
81 | 74421 | #: code:addons/msf_doc_import/wizard/wizard_import_batch.py:166 | 74422 | #: code:addons/msf_doc_import/wizard/wizard_import_batch.py:166 |
82 | 74422 | #, python-format | 74423 | #, python-format |
83 | 74423 | msgid "Line seemed empty, so this line was ignored" | 74424 | msgid "Line seemed empty, so this line was ignored" |
84 | 74424 | msgstr "La ligne semblait vide, donc cette ligne a été ignorée" | 74425 | msgstr "La ligne semblait vide, donc cette ligne a été ignorée" |
85 | 74426 | ======= | ||
86 | 74427 | |||
87 | 74428 | #. module: msf_doc_import | ||
88 | 74429 | #: code:addons/msf_doc_import/wizard/wizard_import_fo_line.py:90 | ||
89 | 74430 | #: code:addons/msf_doc_import/wizard/wizard_import_ir_line.py:87 | ||
90 | 74431 | #: code:addons/msf_doc_import/wizard/wizard_import_po_line.py:97 | ||
91 | 74432 | #, python-format | ||
92 | 74433 | msgid "Order currency not found!" | ||
93 | 74434 | msgstr "Devise de la commande non trouvée !" | ||
94 | 74435 | |||
95 | 74436 | #. module: msf_doc_import | ||
96 | 74437 | #: code:addons/msf_doc_import/wizard/wizard_import_fo_line.py:122 | ||
97 | 74438 | #, python-format | ||
98 | 74439 | msgid "\n" | ||
99 | 74440 | " Please check spelling on column '%s'." | ||
100 | 74441 | msgstr "\n" | ||
101 | 74442 | " Veuillez vérifier le nom de la colonne '%s'." | ||
102 | 74443 | |||
103 | 74444 | #. module: msf_doc_import | ||
104 | 74445 | #: code:addons/msf_doc_import/wizard/wizard_import_fo_line.py:125 | ||
105 | 74446 | #, python-format | ||
106 | 74447 | msgid "\n" | ||
107 | 74448 | " You can not import this file because the header of columns doesn't match with the expected headers: %s" | ||
108 | 74449 | msgstr "\n" | ||
109 | 74450 | " Vous ne pouvez pas importer ce fichier car les entêtes de colonnes ne correspondent aux entêtes attendues : %s" | ||
110 | 74451 | |||
111 | 74452 | #. module: msf_doc_import | ||
112 | 74453 | #: code:addons/msf_doc_import/wizard/wizard_import_fo_line.py:127 | ||
113 | 74454 | #, python-format | ||
114 | 74455 | msgid "\n" | ||
115 | 74456 | " Please ensure that all these columns are present and in this exact order." | ||
116 | 74457 | msgstr "\n" | ||
117 | 74458 | " Veuillez vous assurer que toutes ces colonnes sont présentes exactement dans cet ordre." | ||
118 | 74459 | |||
119 | 74460 | #. module: msf_doc_import | ||
120 | 74461 | #: code:addons/msf_doc_import/wizard/wizard_import_fo_line.py:133 | ||
121 | 74462 | #, python-format | ||
122 | 74463 | msgid "You can not import this file because it contains line(s) with currency (Column G) not of the order currency (%s)" | ||
123 | 74464 | msgstr "Vous ne pouvez pas importer ce fichier car il contient des lignes avec une devise (colonne G) qui n'est pas la devise de la commande (%s)" | ||
124 | 74465 | |||
125 | 74466 | #. module: msf_doc_import | ||
126 | 74467 | #: code:addons/msf_doc_import/wizard/wizard_import_auto_supply_line.py:119 | ||
127 | 74468 | #: code:addons/msf_doc_import/wizard/wizard_import_order_cycle_line.py:120 | ||
128 | 74469 | #: code:addons/msf_doc_import/wizard/wizard_import_picking_line.py:138 | ||
129 | 74470 | #: code:addons/msf_doc_import/wizard/wizard_import_product_list.py:127 | ||
130 | 74471 | #: code:addons/msf_doc_import/wizard/wizard_import_stock_warehouse_order_point_line.py:141 | ||
131 | 74472 | #: code:addons/msf_doc_import/wizard/wizard_import_threshold_value_line.py:124 | ||
132 | 74473 | #, python-format | ||
133 | 74474 | msgid "Line %s in the Excel file: You should have exactly %s columns in this order: %s \n" | ||
134 | 74475 | "" | ||
135 | 74476 | msgstr "Ligne %s du fichier Excel : Vous devez avoir exactement %s colonnes dans cet order : %s \n" | ||
136 | 74477 | "" | ||
137 | 74478 | |||
138 | 74479 | #. module: msf_doc_import | ||
139 | 74480 | #: code:addons/msf_doc_import/wizard/wizard_import_auto_supply_line.py:175 | ||
140 | 74481 | #: code:addons/msf_doc_import/wizard/wizard_import_fo_line.py:210 | ||
141 | 74482 | #: code:addons/msf_doc_import/wizard/wizard_import_ir_line.py:201 | ||
142 | 74483 | #: code:addons/msf_doc_import/wizard/wizard_import_order_cycle_line.py:172 | ||
143 | 74484 | #: code:addons/msf_doc_import/wizard/wizard_import_po_line.py:214 | ||
144 | 74485 | #: code:addons/msf_doc_import/wizard/wizard_import_stock_warehouse_order_point_line.py:204 | ||
145 | 74486 | #: code:addons/msf_doc_import/wizard/wizard_import_tender_line.py:155 | ||
146 | 74487 | #: code:addons/msf_doc_import/wizard/wizard_import_threshold_value_line.py:183 | ||
147 | 74488 | #: code:addons/msf_doc_import/wizard/wizard_import_threshold_value_line.py:190 | ||
148 | 74489 | #, python-format | ||
149 | 74490 | msgid "Line %s in the Excel file: %s\n" | ||
150 | 74491 | "" | ||
151 | 74492 | msgstr "Ligne %s du fichier Excel : %s\n" | ||
152 | 74493 | |||
153 | 74494 | #. module: msf_doc_import | ||
154 | 74495 | #: code:addons/msf_doc_import/wizard/wizard_import_fo_line.py:244 | ||
155 | 74496 | #: code:addons/msf_doc_import/wizard/wizard_import_ir_line.py:223 | ||
156 | 74497 | #: code:addons/msf_doc_import/wizard/wizard_import_picking_line.py:261 | ||
157 | 74498 | #, python-format | ||
158 | 74499 | msgid "Line %s in the Excel file was ignored. Details: %s" | ||
159 | 74500 | msgstr "Ligne %s du fichier Excel a été ignorée. Détails : %s" | ||
160 | 74501 | |||
161 | 74502 | #. module: msf_doc_import | ||
162 | 74503 | #: code:addons/msf_doc_import/wizard/wizard_import_auto_supply_line.py:178 | ||
163 | 74504 | #: code:addons/msf_doc_import/wizard/wizard_import_stock_warehouse_order_point_line.py:206 | ||
164 | 74505 | #, python-format | ||
165 | 74506 | msgid "Product Qty should be greater than 0.00" | ||
166 | 74507 | msgstr "Quantité de produit doit être supérieure à 0,00" | ||
167 | 74508 | |||
168 | 74509 | #. module: msf_doc_import | ||
169 | 74510 | #: code:addons/msf_doc_import/wizard/wizard_import_auto_supply_line.py:223 | ||
170 | 74511 | #: code:addons/msf_doc_import/wizard/wizard_import_fo_line.py:292 | ||
171 | 74512 | #: code:addons/msf_doc_import/wizard/wizard_import_ir_line.py:265 | ||
172 | 74513 | #: code:addons/msf_doc_import/wizard/wizard_import_order_cycle_line.py:212 | ||
173 | 74514 | #: code:addons/msf_doc_import/wizard/wizard_import_picking_line.py:314 | ||
174 | 74515 | #: code:addons/msf_doc_import/wizard/wizard_import_po_line.py:323 | ||
175 | 74516 | #: code:addons/msf_doc_import/wizard/wizard_import_product_list.py:217 | ||
176 | 74517 | #: code:addons/msf_doc_import/wizard/wizard_import_stock_warehouse_order_point_line.py:268 | ||
177 | 74518 | #: code:addons/msf_doc_import/wizard/wizard_import_supplier_catalogue.py:407 | ||
178 | 74519 | #: code:addons/msf_doc_import/wizard/wizard_import_tender_line.py:213 | ||
179 | 74520 | #: code:addons/msf_doc_import/wizard/wizard_import_threshold_value_line.py:233 | ||
180 | 74521 | #, python-format | ||
181 | 74522 | msgid "Reported errors for ignored lines : \n" | ||
182 | 74523 | "" | ||
183 | 74524 | msgstr "Erreurs reportées pour les lignes ignorées : \n" | ||
184 | 74525 | "" | ||
185 | 74526 | |||
186 | 74527 | #. module: msf_doc_import | ||
187 | 74528 | #: code:addons/msf_doc_import/wizard/wizard_import_auto_supply_line.py:225 | ||
188 | 74529 | #: code:addons/msf_doc_import/wizard/wizard_import_order_cycle_line.py:214 | ||
189 | 74530 | #: code:addons/msf_doc_import/wizard/wizard_import_picking_line.py:316 | ||
190 | 74531 | #: code:addons/msf_doc_import/wizard/wizard_import_product_list.py:219 | ||
191 | 74532 | #: code:addons/msf_doc_import/wizard/wizard_import_stock_warehouse_order_point_line.py:270 | ||
192 | 74533 | #: code:addons/msf_doc_import/wizard/wizard_import_supplier_catalogue.py:408 | ||
193 | 74534 | #: code:addons/msf_doc_import/wizard/wizard_import_threshold_value_line.py:235 | ||
194 | 74535 | #, python-format | ||
195 | 74536 | msgid " second(s)" | ||
196 | 74537 | msgstr " seconde(s)" | ||
197 | 74538 | |||
198 | 74539 | #. module: msf_doc_import | ||
199 | 74540 | #: code:addons/msf_doc_import/wizard/wizard_import_fo_line.py:295 | ||
200 | 74541 | #, python-format | ||
201 | 74542 | msgid "\n" | ||
202 | 74543 | " %s\n" | ||
203 | 74544 | " Importation completed in %s!\n" | ||
204 | 74545 | "# of imported lines : %s on %s lines\n" | ||
205 | 74546 | "# of ignored lines: %s\n" | ||
206 | 74547 | "# of lines to correct: %s\n" | ||
207 | 74548 | " %s\n" | ||
208 | 74549 | "\n" | ||
209 | 74550 | " %s\n" | ||
210 | 74551 | " " | ||
211 | 74552 | msgstr "\n" | ||
212 | 74553 | " %s\n" | ||
213 | 74554 | " Importation terminée en %s!\n" | ||
214 | 74555 | "# de lignes importées : %s sur %s lignes\n" | ||
215 | 74556 | "# de lignes ignorées : %s\n" | ||
216 | 74557 | "# de lignes à corriger : %s\n" | ||
217 | 74558 | " %s\n" | ||
218 | 74559 | "\n" | ||
219 | 74560 | " %s\n" | ||
220 | 74561 | " " | ||
221 | 74562 | |||
222 | 74563 | #. module: msf_doc_import | ||
223 | 74564 | #: code:addons/msf_doc_import/wizard/wizard_import_picking_line.py:317 | ||
224 | 74565 | #, python-format | ||
225 | 74566 | msgid " \n" | ||
226 | 74567 | " Importation completed in %s!\n" | ||
227 | 74568 | " # of imported lines : %s on %s lines\n" | ||
228 | 74569 | " # of ignored lines: %s\n" | ||
229 | 74570 | " # of lines to correct: %s\n" | ||
230 | 74571 | " %s\n" | ||
231 | 74572 | "\n" | ||
232 | 74573 | " %s\n" | ||
233 | 74574 | " " | ||
234 | 74575 | msgstr " \n" | ||
235 | 74576 | " Importation terminée en %s!\n" | ||
236 | 74577 | " # de lignes importées : %s sur %s lignes\n" | ||
237 | 74578 | " # de lignes ignorées : %s\n" | ||
238 | 74579 | " # de lignes à corriger : %s\n" | ||
239 | 74580 | " %s\n" | ||
240 | 74581 | "\n" | ||
241 | 74582 | " %s\n" | ||
242 | 74583 | " " | ||
243 | 74584 | "" | ||
244 | 74585 | |||
245 | 74586 | #. module: msf_doc_import | ||
246 | 74587 | #: code:addons/msf_doc_import/wizard/wizard_import_fo_line.py:313 | ||
247 | 74588 | #, python-format | ||
248 | 74589 | msgid "An unknow error occured, please contact the support team. Error message: %s" | ||
249 | 74590 | msgstr "Une erreur inconnue est survenue, veuillez contacter votre équipe support. Message d'erreur : %s" | ||
250 | 74591 | >>>>>>> MERGE-SOURCE |