Merge lp:~jfb-tempo-consulting/unifield-server/us-5912 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 5436
Proposed branch: lp:~jfb-tempo-consulting/unifield-server/us-5912
Merge into: lp:unifield-server
Diff against target: 96 lines (+50/-3) (has conflicts)
3 files modified
bin/addons/msf_profile/i18n/fr_MF.po (+14/-0)
bin/addons/msf_supply_doc_export/wizard/po_follow_up.py (+18/-2)
bin/addons/sales_followup/wizard/sale_followup_multi_wizard.py (+18/-1)
Text conflict in bin/addons/msf_profile/i18n/fr_MF.po
To merge this branch: bzr merge lp:~jfb-tempo-consulting/unifield-server/us-5912
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+370755@code.launchpad.net
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
=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
--- bin/addons/msf_profile/i18n/fr_MF.po 2019-07-26 15:23:04 +0000
+++ bin/addons/msf_profile/i18n/fr_MF.po 2019-07-30 10:04:55 +0000
@@ -107371,6 +107371,7 @@
107371msgid "Stop report"107371msgid "Stop report"
107372msgstr "Arrêter le rapport"107372msgstr "Arrêter le rapport"
107373107373
107374<<<<<<< TREE
107374#. module: stock107375#. module: stock
107375#: code:addons/stock/stock.py:1780107376#: code:addons/stock/stock.py:1780
107376#, python-format107377#, python-format
@@ -107481,3 +107482,16 @@
107481#: report:addons/sale/report/sale_loan_stock_moves_report_xls.mako:175107482#: report:addons/sale/report/sale_loan_stock_moves_report_xls.mako:175
107482msgid "Line State"107483msgid "Line State"
107483msgstr "État de la Ligne"107484msgstr "État de la Ligne"
107485=======
107486#. module: sales_followup
107487#: code:sales_followup/wizard/sale_followup_multi_wizard.py:190
107488#, python-format
107489msgid "The requested report is too heavy to generate: requested %d lines, maximum allowed %d. Please apply further filters so that report can be generated."
107490msgstr "Le rapport demandé est trop volumineux pour être généré, %d lignes demandées, %d autorisées. Veuillez utiliser plus de filtres pour que ce rapport puisse être généré"
107491
107492#. module: msf_supply_doc_export
107493#: code:addons/msf_supply_doc_export/wizard/po_follow_up.py:297
107494#, python-format
107495msgid "The requested report is too heavy to generate. Please apply further filters so that report can be generated."
107496msgstr "Le rapport demandé est trop volumineux pour être généré. Veuillez utiliser plus de filtres pour que ce rapport puisse être généré"
107497>>>>>>> MERGE-SOURCE
107484107498
=== modified file 'bin/addons/msf_supply_doc_export/wizard/po_follow_up.py'
--- bin/addons/msf_supply_doc_export/wizard/po_follow_up.py 2019-07-22 12:08:20 +0000
+++ bin/addons/msf_supply_doc_export/wizard/po_follow_up.py 2019-07-30 10:04:55 +0000
@@ -298,8 +298,24 @@
298 po_ids = po_obj.search(cr, uid, domain)298 po_ids = po_obj.search(cr, uid, domain)
299299
300 if not po_ids:300 if not po_ids:
301 raise osv.except_osv(_('Error'), _('No Purchase Orders match the specified criteria.'))301 raise osv.except_osv(_('Warning'), _('No Purchase Orders match the specified criteria.'))
302 return True302
303 cr.execute("""SELECT COUNT(id) FROM purchase_order_line WHERE order_id IN %s""", (tuple(po_ids),))
304 nb_lines = 0
305 for x in cr.fetchall():
306 nb_lines = x[0]
307
308 # Parameter to define the maximum number of lines. For a custom number:
309 # "INSERT INTO ir_config_parameter (key, value) VALUES ('FOLLOWUP_MAX_LINE', 'chosen_number');"
310 # Or update the existing one
311 config_line = self.pool.get('ir.config_parameter').get_param(cr, 1, 'FOLLOWUP_MAX_LINE')
312 if config_line:
313 max_line = int(config_line)
314 else:
315 max_line = 20000
316
317 if nb_lines > max_line:
318 raise osv.except_osv(_('Error'), _('The requested report is too heavy to generate. Please apply further filters so that report can be generated.'))
303319
304 if wiz.pending_only_ok and report_name == 'po.follow.up_rml':320 if wiz.pending_only_ok and report_name == 'po.follow.up_rml':
305 filtered_po_ids = []321 filtered_po_ids = []
306322
=== modified file 'bin/addons/sales_followup/wizard/sale_followup_multi_wizard.py'
--- bin/addons/sales_followup/wizard/sale_followup_multi_wizard.py 2018-04-05 08:43:22 +0000
+++ bin/addons/sales_followup/wizard/sale_followup_multi_wizard.py 2019-07-30 10:04:55 +0000
@@ -178,6 +178,23 @@
178 _('No data found with these parameters'),178 _('No data found with these parameters'),
179 )179 )
180180
181 cr.execute("""SELECT COUNT(id) FROM sale_order_line WHERE order_id IN %s""", (tuple(fo_ids),))
182 nb_lines = 0
183 for x in cr.fetchall():
184 nb_lines = x[0]
185
186 # Parameter to define the maximum number of lines. For a custom number:
187 # "INSERT INTO ir_config_parameter (key, value) VALUES ('FOLLOWUP_MAX_LINE', 'chosen_number');"
188 # Or update the existing one
189 config_line = self.pool.get('ir.config_parameter').get_param(cr, 1, 'FO_FOLLOWUP_MAX_LINE')
190 if config_line:
191 max_line = int(config_line)
192 else:
193 max_line = 5000
194
195 if nb_lines > max_line:
196 raise osv.except_osv(_('Error'), _('The requested report is too heavy to generate: requested %d lines, maximum allowed %d. Please apply further filters so that report can be generated.') % (nb_lines, max_line))
197
181 self.write(cr, uid, [wizard.id], {'order_ids': fo_ids}, context=context)198 self.write(cr, uid, [wizard.id], {'order_ids': fo_ids}, context=context)
182199
183 return True200 return True
@@ -228,7 +245,7 @@
228 'report_name': 'sales.follow.up.multi.report_pdf',245 'report_name': 'sales.follow.up.multi.report_pdf',
229 }, context=context)246 }, context=context)
230 context['background_id'] = background_id247 context['background_id'] = background_id
231 context['background_time'] = 20248 context['background_time'] = 3
232249
233 data = {'ids': ids, 'context': context}250 data = {'ids': ids, 'context': context}
234 return {251 return {

Subscribers

People subscribed via source and target branches