diff options
| author | Olivier Dony <odo@openerp.com> | 2014-05-22 16:44:33 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2014-05-22 16:44:33 +0200 |
| commit | 2af03e1b6eb203cfa52082d49ef1ff1a8fec2b49 (patch) | |
| tree | 24993bde74980ff5cf304a49340bde0892b9c938 | |
| parent | 35a07975deb0187e3480c4866e244dee147b3344 (diff) | |
| parent | f8671cb48abfb5728a116a183e13e5cb1af6b45e (diff) | |
[MERGE] Forward-port latest 7.0 bugfixes, up to f8671cb
72 files changed, 38 insertions, 33 deletions
diff --git a/addons/account/project/report/analytic_balance.sxw b/addons/account/project/report/analytic_balance.sxw Binary files differnew file mode 100644 index 00000000000..cea80fa1105 --- /dev/null +++ b/addons/account/project/report/analytic_balance.sxw diff --git a/addons/account/project/report/analytic_journal.sxw b/addons/account/project/report/analytic_journal.sxw Binary files differnew file mode 100644 index 00000000000..de3fa533a2b --- /dev/null +++ b/addons/account/project/report/analytic_journal.sxw diff --git a/addons/account/project/report/cost_ledger.sxw b/addons/account/project/report/cost_ledger.sxw Binary files differnew file mode 100644 index 00000000000..dc1c18d39e1 --- /dev/null +++ b/addons/account/project/report/cost_ledger.sxw diff --git a/addons/account/project/report/inverted_analytic_balance.sxw b/addons/account/project/report/inverted_analytic_balance.sxw Binary files differnew file mode 100644 index 00000000000..99c4987b193 --- /dev/null +++ b/addons/account/project/report/inverted_analytic_balance.sxw diff --git a/addons/account/project/report/quantity_cost_ledger.sxw b/addons/account/project/report/quantity_cost_ledger.sxw Binary files differnew file mode 100644 index 00000000000..18bf9af328c --- /dev/null +++ b/addons/account/project/report/quantity_cost_ledger.sxw diff --git a/addons/account/report/account_aged_partner_balance.py b/addons/account/report/account_aged_partner_balance.py index 3b000e40592..b7c26120b48 100644 --- a/addons/account/report/account_aged_partner_balance.py +++ b/addons/account/report/account_aged_partner_balance.py @@ -159,7 +159,7 @@ class aged_trial_report(report_sxw.rml_parse, common_report_header): dates_query += ' < %s)' args_list += (form[str(i)]['stop'],) args_list += (self.date_from,) - self.cr.execute('''SELECT l.partner_id, SUM(l.debit-l.credit) + self.cr.execute('''SELECT l.partner_id, SUM(l.debit-l.credit), l.reconcile_partial_id FROM account_move_line AS l, account_account, account_move am WHERE (l.account_id = account_account.id) AND (l.move_id=am.id) AND (am.state IN %s) @@ -171,12 +171,24 @@ class aged_trial_report(report_sxw.rml_parse, common_report_header): AND account_account.active AND ''' + dates_query + ''' AND (l.date <= %s) - GROUP BY l.partner_id''', args_list) - t = self.cr.fetchall() - d = {} - for i in t: - d[i[0]] = i[1] - history.append(d) + GROUP BY l.partner_id, l.reconcile_partial_id''', args_list) + partners_partial = self.cr.fetchall() + partners_amount = dict((i[0],0) for i in partners_partial) + for partner_info in partners_partial: + if partner_info[2]: + # in case of partial reconciliation, we want to keep the left amount in the oldest period + self.cr.execute('''SELECT MIN(COALESCE(date_maturity,date)) FROM account_move_line WHERE reconcile_partial_id = %s''', (partner_info[2],)) + date = self.cr.fetchall() + if date and args_list[-3] <= date[0][0] <= args_list[-2]: + # partial reconcilation + self.cr.execute('''SELECT SUM(l.debit-l.credit) + FROM account_move_line AS l + WHERE l.reconcile_partial_id = %s''', (partner_info[2],)) + unreconciled_amount = self.cr.fetchall() + partners_amount[partner_info[0]] += unreconciled_amount[0][0] + else: + partners_amount[partner_info[0]] += partner_info[1] + history.append(partners_amount) for partner in partners: values = {} diff --git a/addons/account/report/account_aged_partner_balance.sxw b/addons/account/report/account_aged_partner_balance.sxw Binary files differnew file mode 100644 index 00000000000..bce27e551ce --- /dev/null +++ b/addons/account/report/account_aged_partner_balance.sxw diff --git a/addons/account/report/account_balance.sxw b/addons/account/report/account_balance.sxw Binary files differnew file mode 100644 index 00000000000..117c0bc386b --- /dev/null +++ b/addons/account/report/account_balance.sxw diff --git a/addons/account/report/account_central_journal.sxw b/addons/account/report/account_central_journal.sxw Binary files differnew file mode 100644 index 00000000000..8fd2b46e348 --- /dev/null +++ b/addons/account/report/account_central_journal.sxw diff --git a/addons/account/report/account_general_journal.sxw b/addons/account/report/account_general_journal.sxw Binary files differnew file mode 100644 index 00000000000..631b2e87151 --- /dev/null +++ b/addons/account/report/account_general_journal.sxw diff --git a/addons/account/report/account_general_ledger.sxw b/addons/account/report/account_general_ledger.sxw Binary files differnew file mode 100644 index 00000000000..35c1d0bc5cc --- /dev/null +++ b/addons/account/report/account_general_ledger.sxw diff --git a/addons/account/report/account_general_ledger_landscape.sxw b/addons/account/report/account_general_ledger_landscape.sxw Binary files differnew file mode 100644 index 00000000000..815a5adf88a --- /dev/null +++ b/addons/account/report/account_general_ledger_landscape.sxw diff --git a/addons/account/report/account_journal.sxw b/addons/account/report/account_journal.sxw Binary files differnew file mode 100644 index 00000000000..5010574eac7 --- /dev/null +++ b/addons/account/report/account_journal.sxw diff --git a/addons/account/report/account_journal_sale_purchase.sxw b/addons/account/report/account_journal_sale_purchase.sxw Binary files differnew file mode 100644 index 00000000000..19a77dec18b --- /dev/null +++ b/addons/account/report/account_journal_sale_purchase.sxw diff --git a/addons/account/report/account_partner_balance.sxw b/addons/account/report/account_partner_balance.sxw Binary files differnew file mode 100644 index 00000000000..d721a9df080 --- /dev/null +++ b/addons/account/report/account_partner_balance.sxw diff --git a/addons/account/report/account_partner_ledger.sxw b/addons/account/report/account_partner_ledger.sxw Binary files differnew file mode 100644 index 00000000000..f08b997f240 --- /dev/null +++ b/addons/account/report/account_partner_ledger.sxw diff --git a/addons/account/report/account_partner_ledger_other.sxw b/addons/account/report/account_partner_ledger_other.sxw Binary files differnew file mode 100644 index 00000000000..811bffc4767 --- /dev/null +++ b/addons/account/report/account_partner_ledger_other.sxw diff --git a/addons/account/report/account_print_invoice.sxw b/addons/account/report/account_print_invoice.sxw Binary files differnew file mode 100644 index 00000000000..ad2f7591304 --- /dev/null +++ b/addons/account/report/account_print_invoice.sxw diff --git a/addons/account/report/account_print_overdue.sxw b/addons/account/report/account_print_overdue.sxw Binary files differnew file mode 100644 index 00000000000..2faddc7606c --- /dev/null +++ b/addons/account/report/account_print_overdue.sxw diff --git a/addons/account/report/account_tax_report.sxw b/addons/account/report/account_tax_report.sxw Binary files differnew file mode 100644 index 00000000000..2153eec7ef1 --- /dev/null +++ b/addons/account/report/account_tax_report.sxw diff --git a/addons/account_analytic_plans/report/crossovered_analytic.sxw b/addons/account_analytic_plans/report/crossovered_analytic.sxw Binary files differnew file mode 100644 index 00000000000..e1c1cc9c6f3 --- /dev/null +++ b/addons/account_analytic_plans/report/crossovered_analytic.sxw diff --git a/addons/account_budget/account_budget.py b/addons/account_budget/account_budget.py index 753a5df79f4..78e85716bbd 100644 --- a/addons/account_budget/account_budget.py +++ b/addons/account_budget/account_budget.py @@ -22,6 +22,7 @@ import datetime from openerp.osv import fields, osv +from openerp.tools import ustr from openerp.tools.translate import _ import openerp.addons.decimal_precision as dp @@ -114,7 +115,7 @@ class crossovered_budget_lines(osv.osv): for line in self.browse(cr, uid, ids, context=context): acc_ids = [x.id for x in line.general_budget_id.account_ids] if not acc_ids: - raise osv.except_osv(_('Error!'),_("The Budget '%s' has no accounts!") % str(line.general_budget_id.name)) + raise osv.except_osv(_('Error!'),_("The Budget '%s' has no accounts!") % ustr(line.general_budget_id.name)) date_to = line.date_to date_from = line.date_from if context.has_key('wizard_date_from'): diff --git a/addons/account_budget/report/analytic_account_budget_report.sxw b/addons/account_budget/report/analytic_account_budget_report.sxw Binary files differnew file mode 100644 index 00000000000..f248e6e33dc --- /dev/null +++ b/addons/account_budget/report/analytic_account_budget_report.sxw diff --git a/addons/account_budget/report/budget_report.sxw b/addons/account_budget/report/budget_report.sxw Binary files differnew file mode 100644 index 00000000000..84ecf3c39d1 --- /dev/null +++ b/addons/account_budget/report/budget_report.sxw diff --git a/addons/account_budget/report/crossovered_budget_report.sxw b/addons/account_budget/report/crossovered_budget_report.sxw Binary files differnew file mode 100644 index 00000000000..8922113b2a0 --- /dev/null +++ b/addons/account_budget/report/crossovered_budget_report.sxw diff --git a/addons/account_check_writing/report/check_print.sxw b/addons/account_check_writing/report/check_print.sxw Binary files differnew file mode 100644 index 00000000000..98dae7b4fc9 --- /dev/null +++ b/addons/account_check_writing/report/check_print.sxw diff --git a/addons/account_check_writing/report/check_print_bottom.sxw b/addons/account_check_writing/report/check_print_bottom.sxw Binary files differnew file mode 100644 index 00000000000..baf56526dc9 --- /dev/null +++ b/addons/account_check_writing/report/check_print_bottom.sxw diff --git a/addons/account_check_writing/report/check_print_middle.sxw b/addons/account_check_writing/report/check_print_middle.sxw Binary files differnew file mode 100644 index 00000000000..86e4f280fee --- /dev/null +++ b/addons/account_check_writing/report/check_print_middle.sxw diff --git a/addons/account_check_writing/report/check_print_top.sxw b/addons/account_check_writing/report/check_print_top.sxw Binary files differnew file mode 100644 index 00000000000..f55159d57ee --- /dev/null +++ b/addons/account_check_writing/report/check_print_top.sxw diff --git a/addons/account_followup/report/account_followup_print.sxw b/addons/account_followup/report/account_followup_print.sxw Binary files differnew file mode 100644 index 00000000000..4379aa5abce --- /dev/null +++ b/addons/account_followup/report/account_followup_print.sxw diff --git a/addons/account_payment/report/order.sxw b/addons/account_payment/report/order.sxw Binary files differnew file mode 100644 index 00000000000..ac3d65c6586 --- /dev/null +++ b/addons/account_payment/report/order.sxw diff --git a/addons/account_test/report/account_test.sxw b/addons/account_test/report/account_test.sxw Binary files differnew file mode 100644 index 00000000000..a4047e151e6 --- /dev/null +++ b/addons/account_test/report/account_test.sxw diff --git a/addons/account_voucher/report/account_voucher.sxw b/addons/account_voucher/report/account_voucher.sxw Binary files differnew file mode 100644 index 00000000000..9db5937944e --- /dev/null +++ b/addons/account_voucher/report/account_voucher.sxw diff --git a/addons/account_voucher/report/account_voucher_print.sxw b/addons/account_voucher/report/account_voucher_print.sxw Binary files differnew file mode 100644 index 00000000000..452605b57ca --- /dev/null +++ b/addons/account_voucher/report/account_voucher_print.sxw diff --git a/addons/delivery/report/shipping.sxw b/addons/delivery/report/shipping.sxw Binary files differnew file mode 100644 index 00000000000..b169a2d7039 --- /dev/null +++ b/addons/delivery/report/shipping.sxw diff --git a/addons/hr_attendance/report/attendance_errors.sxw b/addons/hr_attendance/report/attendance_errors.sxw Binary files differnew file mode 100644 index 00000000000..1faeca38251 --- /dev/null +++ b/addons/hr_attendance/report/attendance_errors.sxw diff --git a/addons/hr_expense/report/expense.sxw b/addons/hr_expense/report/expense.sxw Binary files differnew file mode 100644 index 00000000000..ac31b2d7f2e --- /dev/null +++ b/addons/hr_expense/report/expense.sxw diff --git a/addons/hr_payroll/report/report_contribution_register.sxw b/addons/hr_payroll/report/report_contribution_register.sxw Binary files differnew file mode 100644 index 00000000000..01cef632cbb --- /dev/null +++ b/addons/hr_payroll/report/report_contribution_register.sxw diff --git a/addons/hr_payroll/report/report_payslip.sxw b/addons/hr_payroll/report/report_payslip.sxw Binary files differnew file mode 100644 index 00000000000..1c5b7fce54f --- /dev/null +++ b/addons/hr_payroll/report/report_payslip.sxw diff --git a/addons/hr_payroll/report/report_payslip_details.sxw b/addons/hr_payroll/report/report_payslip_details.sxw Binary files differnew file mode 100644 index 00000000000..ad84d765292 --- /dev/null +++ b/addons/hr_payroll/report/report_payslip_details.sxw diff --git a/addons/hr_timesheet_invoice/report/account_analytic_profit.sxw b/addons/hr_timesheet_invoice/report/account_analytic_profit.sxw Binary files differnew file mode 100644 index 00000000000..dbd77e8496a --- /dev/null +++ b/addons/hr_timesheet_invoice/report/account_analytic_profit.sxw diff --git a/addons/l10n_fr/report/bilan_report.sxw b/addons/l10n_fr/report/bilan_report.sxw Binary files differnew file mode 100644 index 00000000000..45b8476b0ba --- /dev/null +++ b/addons/l10n_fr/report/bilan_report.sxw diff --git a/addons/l10n_fr/report/compute_resultant_report.sxw b/addons/l10n_fr/report/compute_resultant_report.sxw Binary files differnew file mode 100644 index 00000000000..69ec3882180 --- /dev/null +++ b/addons/l10n_fr/report/compute_resultant_report.sxw diff --git a/addons/l10n_in_hr_payroll/report/report_hr_salary_employee_bymonth.sxw b/addons/l10n_in_hr_payroll/report/report_hr_salary_employee_bymonth.sxw Binary files differnew file mode 100644 index 00000000000..4eb40f3edc9 --- /dev/null +++ b/addons/l10n_in_hr_payroll/report/report_hr_salary_employee_bymonth.sxw diff --git a/addons/l10n_in_hr_payroll/report/report_hr_yearly_salary_detail.sxw b/addons/l10n_in_hr_payroll/report/report_hr_yearly_salary_detail.sxw Binary files differnew file mode 100644 index 00000000000..e1a6f012fbd --- /dev/null +++ b/addons/l10n_in_hr_payroll/report/report_hr_yearly_salary_detail.sxw diff --git a/addons/l10n_in_hr_payroll/report/report_payroll_advice.sxw b/addons/l10n_in_hr_payroll/report/report_payroll_advice.sxw Binary files differnew file mode 100644 index 00000000000..46b3596ae54 --- /dev/null +++ b/addons/l10n_in_hr_payroll/report/report_payroll_advice.sxw diff --git a/addons/l10n_in_hr_payroll/report/report_payslip_details.sxw b/addons/l10n_in_hr_payroll/report/report_payslip_details.sxw Binary files differnew file mode 100644 index 00000000000..782297d9324 --- /dev/null +++ b/addons/l10n_in_hr_payroll/report/report_payslip_details.sxw diff --git a/addons/lunch/report/order.sxw b/addons/lunch/report/order.sxw Binary files differnew file mode 100644 index 00000000000..c8ec7ac3d47 --- /dev/null +++ b/addons/lunch/report/order.sxw diff --git a/addons/mrp/report/bom_structure.sxw b/addons/mrp/report/bom_structure.sxw Binary files differnew file mode 100644 index 00000000000..3cf1cf10086 --- /dev/null +++ b/addons/mrp/report/bom_structure.sxw diff --git a/addons/mrp/report/order.sxw b/addons/mrp/report/order.sxw Binary files differnew file mode 100644 index 00000000000..2786a2e50d3 --- /dev/null +++ b/addons/mrp/report/order.sxw diff --git a/addons/point_of_sale/report/account_statement.sxw b/addons/point_of_sale/report/account_statement.sxw Binary files differnew file mode 100644 index 00000000000..bc251a62bbf --- /dev/null +++ b/addons/point_of_sale/report/account_statement.sxw diff --git a/addons/point_of_sale/report/all_closed_cashbox_of_the_day.sxw b/addons/point_of_sale/report/all_closed_cashbox_of_the_day.sxw Binary files differnew file mode 100644 index 00000000000..957700631d6 --- /dev/null +++ b/addons/point_of_sale/report/all_closed_cashbox_of_the_day.sxw diff --git a/addons/point_of_sale/report/pos_details.sxw b/addons/point_of_sale/report/pos_details.sxw Binary files differnew file mode 100644 index 00000000000..5f5bb4c412f --- /dev/null +++ b/addons/point_of_sale/report/pos_details.sxw diff --git a/addons/point_of_sale/report/pos_details_summary.sxw b/addons/point_of_sale/report/pos_details_summary.sxw Binary files differnew file mode 100644 index 00000000000..5ce7a41895a --- /dev/null +++ b/addons/point_of_sale/report/pos_details_summary.sxw diff --git a/addons/point_of_sale/report/pos_lines.sxw b/addons/point_of_sale/report/pos_lines.sxw Binary files differnew file mode 100644 index 00000000000..01df6238300 --- /dev/null +++ b/addons/point_of_sale/report/pos_lines.sxw diff --git a/addons/point_of_sale/report/pos_payment_report_user.sxw b/addons/point_of_sale/report/pos_payment_report_user.sxw Binary files differnew file mode 100644 index 00000000000..fbe04ed9d5e --- /dev/null +++ b/addons/point_of_sale/report/pos_payment_report_user.sxw diff --git a/addons/point_of_sale/report/pos_receipt.sxw b/addons/point_of_sale/report/pos_receipt.sxw Binary files differnew file mode 100644 index 00000000000..7baf80e1603 --- /dev/null +++ b/addons/point_of_sale/report/pos_receipt.sxw diff --git a/addons/point_of_sale/report/pos_sales_user.sxw b/addons/point_of_sale/report/pos_sales_user.sxw Binary files differnew file mode 100644 index 00000000000..cab80ff4f55 --- /dev/null +++ b/addons/point_of_sale/report/pos_sales_user.sxw diff --git a/addons/point_of_sale/report/pos_sales_user_today.sxw b/addons/point_of_sale/report/pos_sales_user_today.sxw Binary files differnew file mode 100644 index 00000000000..81554e65d89 --- /dev/null +++ b/addons/point_of_sale/report/pos_sales_user_today.sxw diff --git a/addons/point_of_sale/report/pos_users_product.sxw b/addons/point_of_sale/report/pos_users_product.sxw Binary files differnew file mode 100644 index 00000000000..ec934d807ee --- /dev/null +++ b/addons/point_of_sale/report/pos_users_product.sxw diff --git a/addons/product/report/product_pricelist.sxw b/addons/product/report/product_pricelist.sxw Binary files differnew file mode 100644 index 00000000000..40d7a0d9642 --- /dev/null +++ b/addons/product/report/product_pricelist.sxw diff --git a/addons/purchase/report/order.sxw b/addons/purchase/report/order.sxw Binary files differnew file mode 100644 index 00000000000..827bcb1efe5 --- /dev/null +++ b/addons/purchase/report/order.sxw diff --git a/addons/purchase/report/request_quotation.sxw b/addons/purchase/report/request_quotation.sxw Binary files differnew file mode 100644 index 00000000000..8c242cb1284 --- /dev/null +++ b/addons/purchase/report/request_quotation.sxw diff --git a/addons/purchase_requisition/report/purchase_requisition.sxw b/addons/purchase_requisition/report/purchase_requisition.sxw Binary files differnew file mode 100644 index 00000000000..1d6c2c69c70 --- /dev/null +++ b/addons/purchase_requisition/report/purchase_requisition.sxw diff --git a/addons/report_intrastat/report/invoice.sxw b/addons/report_intrastat/report/invoice.sxw Binary files differnew file mode 100644 index 00000000000..11ed9cd7db1 --- /dev/null +++ b/addons/report_intrastat/report/invoice.sxw diff --git a/addons/report_webkit/webkit_report.py b/addons/report_webkit/webkit_report.py index 60fb536ca96..c442ea32549 100644 --- a/addons/report_webkit/webkit_report.py +++ b/addons/report_webkit/webkit_report.py @@ -156,8 +156,8 @@ class WebKitParser(report_sxw): """Call webkit in order to generate pdf""" if not webkit_header: webkit_header = report_xml.webkit_header - tmp_dir = tempfile.gettempdir() - out_filename = tempfile.mktemp(suffix=".pdf", prefix="webkit.tmp.") + fd, out_filename = tempfile.mkstemp(suffix=".pdf", + prefix="webkit.tmp.") file_to_del = [out_filename] if comm_path: command = [comm_path] @@ -168,25 +168,15 @@ class WebKitParser(report_sxw): # default to UTF-8 encoding. Use <meta charset="latin-1"> to override. command.extend(['--encoding', 'utf-8']) if header : - head_file = file( os.path.join( - tmp_dir, - str(time.time()) + '.head.html' - ), - 'w' - ) - head_file.write(self._sanitize_html(header.encode('utf-8'))) - head_file.close() + with tempfile.NamedTemporaryFile(suffix=".head.html", + delete=False) as head_file: + head_file.write(self._sanitize_html(header.encode('utf-8'))) file_to_del.append(head_file.name) command.extend(['--header-html', head_file.name]) if footer : - foot_file = file( os.path.join( - tmp_dir, - str(time.time()) + '.foot.html' - ), - 'w' - ) - foot_file.write(self._sanitize_html(footer.encode('utf-8'))) - foot_file.close() + with tempfile.NamedTemporaryFile(suffix=".foot.html", + delete=False) as foot_file: + foot_file.write(self._sanitize_html(footer.encode('utf-8'))) file_to_del.append(foot_file.name) command.extend(['--footer-html', foot_file.name]) @@ -204,10 +194,10 @@ class WebKitParser(report_sxw): command.extend(['--page-size', str(webkit_header.format).replace(',', '.')]) count = 0 for html in html_list : - html_file = file(os.path.join(tmp_dir, str(time.time()) + str(count) +'.body.html'), 'w') - count += 1 - html_file.write(self._sanitize_html(html.encode('utf-8'))) - html_file.close() + with tempfile.NamedTemporaryFile(suffix="%d.body.html" %count, + delete=False) as html_file: + count += 1 + html_file.write(self._sanitize_html(html.encode('utf-8'))) file_to_del.append(html_file.name) command.append(html_file.name) command.append(out_filename) @@ -227,9 +217,9 @@ class WebKitParser(report_sxw): if status : raise except_osv(_('Webkit error' ), _("The command 'wkhtmltopdf' failed with error code = %s. Message: %s") % (status, error_message)) - pdf_file = open(out_filename, 'rb') - pdf = pdf_file.read() - pdf_file.close() + with open(out_filename, 'rb') as pdf_file: + pdf = pdf_file.read() + os.close(fd) finally: if stderr_fd is not None: os.close(stderr_fd) diff --git a/addons/sale/report/sale_order.sxw b/addons/sale/report/sale_order.sxw Binary files differnew file mode 100644 index 00000000000..4ae68b6060b --- /dev/null +++ b/addons/sale/report/sale_order.sxw diff --git a/addons/stock/report/lot_overview.sxw b/addons/stock/report/lot_overview.sxw Binary files differnew file mode 100644 index 00000000000..25f42603e5d --- /dev/null +++ b/addons/stock/report/lot_overview.sxw diff --git a/addons/stock/report/lot_overview_all.sxw b/addons/stock/report/lot_overview_all.sxw Binary files differnew file mode 100644 index 00000000000..c774f1bae9f --- /dev/null +++ b/addons/stock/report/lot_overview_all.sxw diff --git a/addons/stock/report/picking.sxw b/addons/stock/report/picking.sxw Binary files differnew file mode 100644 index 00000000000..b397c285146 --- /dev/null +++ b/addons/stock/report/picking.sxw diff --git a/addons/stock/report/stock_inventory_move.sxw b/addons/stock/report/stock_inventory_move.sxw Binary files differnew file mode 100644 index 00000000000..bb6084a9ca0 --- /dev/null +++ b/addons/stock/report/stock_inventory_move.sxw diff --git a/openerp/report/render/rml2pdf/trml2pdf.py b/openerp/report/render/rml2pdf/trml2pdf.py index 6061c78e813..38308209999 100644 --- a/openerp/report/render/rml2pdf/trml2pdf.py +++ b/openerp/report/render/rml2pdf/trml2pdf.py @@ -1007,6 +1007,8 @@ class _rml_template(object): if story_cnt > 0: fis.append(platypus.PageBreak()) fis += r.render(node_story) + # Reset Page Number with new story tag + fis.append(PageReset()) story_cnt += 1 try: if self.localcontext and self.localcontext.get('internal_header',False): |
