From 3b60f632f14668b8b3e031111c08314335b41cb9 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Mon, 5 Oct 2009 19:46:55 +0200 Subject: [PATCH 01/54] [FIX] default context bzr revid: fp@tinyerp.com-20091005174655-cq9b2q92ww4onets --- bin/osv/orm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index cf215adf12e..b4ceeed1342 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -1535,7 +1535,7 @@ class orm_memory(orm_template): # get the default values from the context for key in context or {}: - if key.startswith('default_'): + if key.startswith('default_') and (key[8:] in fieds_list): value[key[8:]] = context[key] return value From 3d08c9c6f049ffce39bd91382cb096e846e90b18 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Fri, 9 Oct 2009 13:48:16 +0200 Subject: [PATCH 02/54] [FIX] Specify the name of the argument for the context, to avoir a critical bug bzr revid: stephane@openerp.com-20091009114816-5n518p74cm1k2pj1 --- bin/addons/base/module/report/ir_module_reference_print.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/addons/base/module/report/ir_module_reference_print.py b/bin/addons/base/module/report/ir_module_reference_print.py index 92029014bac..69de9ab9a09 100644 --- a/bin/addons/base/module/report/ir_module_reference_print.py +++ b/bin/addons/base/module/report/ir_module_reference_print.py @@ -25,7 +25,7 @@ from report import report_sxw class ir_module_reference_print(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(ir_module_reference_print, self).__init__(cr, uid, name, context) + super(ir_module_reference_print, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, 'findobj': self._object_find, From 25f727dd7b2d3e4917a3bc1816fa5e131c88890f Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Fri, 9 Oct 2009 13:49:00 +0200 Subject: [PATCH 03/54] [FIX] Specify the name of the argument for the context, to avoir a critical bug bzr revid: stephane@openerp.com-20091009114900-r4j49l7dmmw5sze5 --- addons/account/project/report/account_journal.py | 2 +- addons/account/project/report/analytic_balance.py | 2 +- addons/account/project/report/analytic_check.py | 2 +- addons/account/project/report/analytic_journal.py | 2 +- addons/account/project/report/cost_ledger.py | 2 +- addons/account/project/report/inverted_analytic_balance.py | 2 +- addons/account/project/report/quantity_cost_ledger.py | 3 +-- addons/account/report/account_balance.py | 2 +- addons/account/report/account_journal.py | 2 +- addons/account/report/account_tax_code.py | 2 +- addons/account/report/aged_trial_balance.py | 2 +- addons/account/report/central_journal.py | 2 +- addons/account/report/general_journal.py | 2 +- addons/account/report/general_ledger.py | 2 +- addons/account/report/general_ledger_landscape.py | 2 +- addons/account/report/invoice.py | 2 +- addons/account/report/partner_balance.py | 2 +- addons/account/report/rml_parse.py | 2 +- addons/account/report/tax_report.py | 2 +- addons/account/report/third_party_ledger.py | 2 +- addons/account_analytic_plans/report/crossovered_analytic.py | 2 +- addons/account_balance/report/account_balance.py | 2 +- addons/account_balance/report/account_balance_landscape.py | 2 +- addons/account_balance/report/rml_parse.py | 2 +- .../account_budget/report/analytic_account_budget_report.py | 2 +- addons/account_budget/report/budget_report.py | 2 +- addons/account_budget/report/crossovered_budget_report.py | 2 +- addons/account_followup/report/report_followup_print.py | 2 +- .../report/report_account_invoice_layout.py | 2 +- .../account_invoice_layout/report/special_message_invoice.py | 2 +- addons/account_payment/report/payment_order.py | 2 +- addons/account_report/report/accounting_report.py | 2 +- addons/account_report/report/print_indicator.py | 2 +- addons/account_reporting/report/account_report_bs.py | 2 +- addons/account_voucher/report/report_voucher.py | 2 +- addons/account_voucher/report/report_voucher_amount.py | 4 ++-- addons/account_voucher/report/rml_parse.py | 2 +- addons/auction/report/auction_artists.py | 2 +- addons/auction/report/auction_bids.py | 2 +- addons/auction/report/auction_buyer_result.py | 2 +- addons/auction/report/auction_catelog.py | 2 +- addons/auction/report/auction_objects.py | 2 +- addons/auction/report/auction_result.py | 2 +- addons/auction/report/auction_total_rml.py | 2 +- addons/auction/report/bids_lots.py | 2 +- addons/auction/report/bids_phones_details.py | 2 +- addons/auction/report/buyer_form_report.py | 2 +- addons/auction/report/buyer_list.py | 2 +- addons/auction/report/catelogwithpictures.py | 2 +- addons/auction/report/deposit_seller.py | 2 +- addons/auction/report/lots_list.py | 2 +- addons/auction/report/lots_list_inventory.py | 2 +- addons/auction/report/lots_list_landscape.py | 2 +- addons/auction/report/report_lot_bar_code.py | 2 +- addons/auction/report/seller_form_report.py | 2 +- addons/hr_attendance/report/attendance_errors.py | 2 +- addons/hr_expense/report/expense.py | 2 +- addons/hr_timesheet_invoice/report/account_analytic_profit.py | 2 +- addons/hr_timesheet_invoice/report/cost_ledger.py | 2 +- addons/l10n_ch/report/bvr.py | 2 +- addons/l10n_fr/report/base_report.py | 2 +- addons/mrp/report/order.py | 2 +- addons/mrp_operations/report/mrp_code_barcode.py | 2 +- addons/mrp_operations/report/mrp_wc_barcode.py | 2 +- addons/mrp_repair/report/order.py | 2 +- addons/point_of_sale/report/pos_details.py | 2 +- addons/point_of_sale/report/pos_details_summary.py | 2 +- addons/point_of_sale/report/pos_invoice.py | 2 +- addons/point_of_sale/report/pos_lines.py | 2 +- addons/point_of_sale/report/pos_receipt.py | 2 +- addons/product/report/product_pricelist.py | 2 +- addons/purchase/report/order.py | 2 +- addons/purchase/report/request_quotation.py | 2 +- addons/report_intrastat/report/invoice.py | 2 +- addons/sale/report/order.py | 2 +- addons/sale/report/sale_prepare_allot.py | 2 +- addons/sale_delivery_report/report/shipping.py | 2 +- addons/stock/report/lot_location.py | 2 +- addons/stock/report/lot_overview.py | 2 +- addons/stock/report/lot_overview_all.py | 2 +- addons/stock/report/picking.py | 2 +- 81 files changed, 82 insertions(+), 83 deletions(-) diff --git a/addons/account/project/report/account_journal.py b/addons/account/project/report/account_journal.py index 2f46abaceda..a732c88a969 100644 --- a/addons/account/project/report/account_journal.py +++ b/addons/account/project/report/account_journal.py @@ -37,7 +37,7 @@ class journal_print(report_sxw.rml_parse): self.cr.execute('select sum(amount) from account_analytic_line where journal_id=%s', (journal_id,)) return self.cr.fetchone()[0] or 0.0 def __init__(self, cr, uid, name, context): - super(journal_print, self).__init__(cr, uid, name, context) + super(journal_print, self).__init__(cr, uid, name, context=context) self.localcontext = { 'time': time, 'lines': self.lines, diff --git a/addons/account/project/report/analytic_balance.py b/addons/account/project/report/analytic_balance.py index 0c7b0cda761..9e96dfdd1bd 100644 --- a/addons/account/project/report/analytic_balance.py +++ b/addons/account/project/report/analytic_balance.py @@ -27,7 +27,7 @@ from report import report_sxw class account_analytic_balance(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(account_analytic_balance, self).__init__(cr, uid, name, context) + super(account_analytic_balance, self).__init__(cr, uid, name, context=context) self.localcontext.update( { 'time': time, 'get_objects': self._get_objects, diff --git a/addons/account/project/report/analytic_check.py b/addons/account/project/report/analytic_check.py index 6e794b35d87..5a300966840 100644 --- a/addons/account/project/report/analytic_check.py +++ b/addons/account/project/report/analytic_check.py @@ -26,7 +26,7 @@ from report import report_sxw class account_analytic_analytic_check(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(account_analytic_analytic_check, self).__init__(cr, uid, name, context) + super(account_analytic_analytic_check, self).__init__(cr, uid, name, context=context) self.sum_gen_deb = 0.0 self.sum_gen_cred = 0.0 self.sum_ana_deb = 0.0 diff --git a/addons/account/project/report/analytic_journal.py b/addons/account/project/report/analytic_journal.py index 30faa18fecc..621d6139ab5 100644 --- a/addons/account/project/report/analytic_journal.py +++ b/addons/account/project/report/analytic_journal.py @@ -28,7 +28,7 @@ from report import report_sxw # class account_analytic_journal(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(account_analytic_journal, self).__init__(cr, uid, name, context) + super(account_analytic_journal, self).__init__(cr, uid, name, context=context) self.localcontext.update( { 'time': time, 'lines': self._lines, diff --git a/addons/account/project/report/cost_ledger.py b/addons/account/project/report/cost_ledger.py index 0641cfe2ba3..5c18b51d113 100644 --- a/addons/account/project/report/cost_ledger.py +++ b/addons/account/project/report/cost_ledger.py @@ -26,7 +26,7 @@ from report import report_sxw class account_analytic_cost_ledger(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(account_analytic_cost_ledger, self).__init__(cr, uid, name, context) + super(account_analytic_cost_ledger, self).__init__(cr, uid, name, context=context) self.localcontext.update( { 'time': time, 'lines_g': self._lines_g, diff --git a/addons/account/project/report/inverted_analytic_balance.py b/addons/account/project/report/inverted_analytic_balance.py index 345f60619d0..ada30ef567e 100644 --- a/addons/account/project/report/inverted_analytic_balance.py +++ b/addons/account/project/report/inverted_analytic_balance.py @@ -26,7 +26,7 @@ from report import report_sxw class account_inverted_analytic_balance(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(account_inverted_analytic_balance, self).__init__(cr, uid, name, context) + super(account_inverted_analytic_balance, self).__init__(cr, uid, name, context=context) self.localcontext.update( { 'time': time, 'lines_g': self._lines_g, diff --git a/addons/account/project/report/quantity_cost_ledger.py b/addons/account/project/report/quantity_cost_ledger.py index 5e79e16c1ed..9942bb96b26 100644 --- a/addons/account/project/report/quantity_cost_ledger.py +++ b/addons/account/project/report/quantity_cost_ledger.py @@ -26,8 +26,7 @@ from report import report_sxw class account_analytic_quantity_cost_ledger(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(account_analytic_quantity_cost_ledger, self).__init__(cr, uid, - name, context) + super(account_analytic_quantity_cost_ledger, self).__init__(cr, uid, name, context=context) self.localcontext.update( { 'time': time, 'lines_g': self._lines_g, diff --git a/addons/account/report/account_balance.py b/addons/account/report/account_balance.py index ebf12dd9b08..49910b086a9 100644 --- a/addons/account/report/account_balance.py +++ b/addons/account/report/account_balance.py @@ -30,7 +30,7 @@ from report import report_sxw class account_balance(report_sxw.rml_parse): _name = 'report.account.account.balance' def __init__(self, cr, uid, name, context): - super(account_balance, self).__init__(cr, uid, name, context) + super(account_balance, self).__init__(cr, uid, name, context=context) self.sum_debit = 0.00 self.sum_credit = 0.00 self.date_lst = [] diff --git a/addons/account/report/account_journal.py b/addons/account/report/account_journal.py index f3c87ca1603..869b04b5dfd 100644 --- a/addons/account/report/account_journal.py +++ b/addons/account/report/account_journal.py @@ -29,7 +29,7 @@ from report import report_sxw # class journal_print(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(journal_print, self).__init__(cr, uid, name, context) + super(journal_print, self).__init__(cr, uid, name, context=context) self.localcontext.update( { 'time': time, 'lines': self.lines, diff --git a/addons/account/report/account_tax_code.py b/addons/account/report/account_tax_code.py index 773e9541d79..f3c3fb75e47 100644 --- a/addons/account/report/account_tax_code.py +++ b/addons/account/report/account_tax_code.py @@ -30,7 +30,7 @@ class account_tax_code_report(rml_parse.rml_parse): #_name = 'report.account.tax.code.entries' def __init__(self, cr, uid, name, context): - super(account_tax_code_report, self).__init__(cr, uid, name, context) + super(account_tax_code_report, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, 'get_line':self.get_line, diff --git a/addons/account/report/aged_trial_balance.py b/addons/account/report/aged_trial_balance.py index 652929e187d..4477e2a1561 100644 --- a/addons/account/report/aged_trial_balance.py +++ b/addons/account/report/aged_trial_balance.py @@ -28,7 +28,7 @@ from report import report_sxw class aged_trial_report(rml_parse.rml_parse): def __init__(self, cr, uid, name, context): - super(aged_trial_report, self).__init__(cr, uid, name, context) + super(aged_trial_report, self).__init__(cr, uid, name, context=context) self.line_query = '' self.total_account = [] diff --git a/addons/account/report/central_journal.py b/addons/account/report/central_journal.py index 2db5c6fe971..762282a3f90 100644 --- a/addons/account/report/central_journal.py +++ b/addons/account/report/central_journal.py @@ -28,7 +28,7 @@ from report import report_sxw # class journal_print(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(journal_print, self).__init__(cr, uid, name, context) + super(journal_print, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, 'lines': self.lines, diff --git a/addons/account/report/general_journal.py b/addons/account/report/general_journal.py index 926c3603e49..eb330134873 100644 --- a/addons/account/report/general_journal.py +++ b/addons/account/report/general_journal.py @@ -29,7 +29,7 @@ from report import report_sxw # class journal_print(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(journal_print, self).__init__(cr, uid, name, context) + super(journal_print, self).__init__(cr, uid, name, context=context) self.localcontext.update( { 'time': time, 'lines': self.lines, diff --git a/addons/account/report/general_ledger.py b/addons/account/report/general_ledger.py index 534b4d52e67..f8712ea4863 100644 --- a/addons/account/report/general_ledger.py +++ b/addons/account/report/general_ledger.py @@ -53,7 +53,7 @@ class general_ledger(rml_parse.rml_parse): super(general_ledger, self).set_context(objects, data, new_ids, report_type) def __init__(self, cr, uid, name, context): - super(general_ledger, self).__init__(cr, uid, name, context) + super(general_ledger, self).__init__(cr, uid, name, context=context) self.date_borne = {} self.query = "" self.child_ids = "" diff --git a/addons/account/report/general_ledger_landscape.py b/addons/account/report/general_ledger_landscape.py index c63c4281173..0879a464f26 100644 --- a/addons/account/report/general_ledger_landscape.py +++ b/addons/account/report/general_ledger_landscape.py @@ -52,7 +52,7 @@ class general_ledger_landscape(rml_parse.rml_parse): super(general_ledger_landscape, self).set_context(objects, data, new_ids,report_type) def __init__(self, cr, uid, name, context): - super(general_ledger_landscape, self).__init__(cr, uid, name, context) + super(general_ledger_landscape, self).__init__(cr, uid, name, context=context) self.date_borne = {} self.query = "" self.child_ids = "" diff --git a/addons/account/report/invoice.py b/addons/account/report/invoice.py index 3ca850a148b..f125ab47b8b 100644 --- a/addons/account/report/invoice.py +++ b/addons/account/report/invoice.py @@ -25,7 +25,7 @@ from report import report_sxw class account_invoice(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(account_invoice, self).__init__(cr, uid, name, context) + super(account_invoice, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, }) diff --git a/addons/account/report/partner_balance.py b/addons/account/report/partner_balance.py index ddd6ad1ecb4..78067a3346a 100755 --- a/addons/account/report/partner_balance.py +++ b/addons/account/report/partner_balance.py @@ -28,7 +28,7 @@ from report import report_sxw class partner_balance(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(partner_balance, self).__init__(cr, uid, name, context) + super(partner_balance, self).__init__(cr, uid, name, context=context) self.date_lst = [] self.date_lst_string = '' self.account_ids = '' diff --git a/addons/account/report/rml_parse.py b/addons/account/report/rml_parse.py index e0c41e8f286..02a5a266236 100644 --- a/addons/account/report/rml_parse.py +++ b/addons/account/report/rml_parse.py @@ -32,7 +32,7 @@ import sys class rml_parse(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(rml_parse, self).__init__(cr, uid, name, context=None) + super(rml_parse, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'comma_me': self.comma_me, 'format_date': self._get_and_change_date_format_for_swiss, diff --git a/addons/account/report/tax_report.py b/addons/account/report/tax_report.py index 1f0332d2906..c4f8fdeb1f3 100644 --- a/addons/account/report/tax_report.py +++ b/addons/account/report/tax_report.py @@ -31,7 +31,7 @@ import re class tax_report(rml_parse.rml_parse): _name = 'report.account.vat.declaration' def __init__(self, cr, uid, name, context): - super(tax_report, self).__init__(cr, uid, name, context) + super(tax_report, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, 'get_period': self._get_period, diff --git a/addons/account/report/third_party_ledger.py b/addons/account/report/third_party_ledger.py index 9828fdfbd63..47407a31392 100644 --- a/addons/account/report/third_party_ledger.py +++ b/addons/account/report/third_party_ledger.py @@ -31,7 +31,7 @@ class third_party_ledger(rml_parse.rml_parse): def __init__(self, cr, uid, name, context): self.date_lst = [] self.date_lst_string = '' - super(third_party_ledger, self).__init__(cr, uid, name, context) + super(third_party_ledger, self).__init__(cr, uid, name, context=context) self.localcontext.update( { 'time': time, 'lines': self.lines, diff --git a/addons/account_analytic_plans/report/crossovered_analytic.py b/addons/account_analytic_plans/report/crossovered_analytic.py index 2fab914fb64..951e147d7a8 100644 --- a/addons/account_analytic_plans/report/crossovered_analytic.py +++ b/addons/account_analytic_plans/report/crossovered_analytic.py @@ -26,7 +26,7 @@ from report import report_sxw class crossovered_analytic(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(crossovered_analytic, self).__init__(cr, uid, name, context) + super(crossovered_analytic, self).__init__(cr, uid, name, context=context) self.localcontext.update( { 'time': time, 'lines': self._lines, diff --git a/addons/account_balance/report/account_balance.py b/addons/account_balance/report/account_balance.py index 4fe498ac147..d67efab75a2 100644 --- a/addons/account_balance/report/account_balance.py +++ b/addons/account_balance/report/account_balance.py @@ -35,7 +35,7 @@ parents = { class account_balance(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(account_balance, self).__init__(cr, uid, name, context) + super(account_balance, self).__init__(cr, uid, name, context=context) self.flag=1 self.dr_total= 0.00 self.cr_total= 0.00 diff --git a/addons/account_balance/report/account_balance_landscape.py b/addons/account_balance/report/account_balance_landscape.py index 372fdf2c441..925494f6021 100644 --- a/addons/account_balance/report/account_balance_landscape.py +++ b/addons/account_balance/report/account_balance_landscape.py @@ -36,7 +36,7 @@ parents = { class account_balance_landscape(rml_parse.rml_parse): def __init__(self, cr, uid, name, context): - super(account_balance_landscape, self).__init__(cr, uid, name, context) + super(account_balance_landscape, self).__init__(cr, uid, name, context=context) self.flag=1 self.dr_total= 0.00 self.cr_total= 0.00 diff --git a/addons/account_balance/report/rml_parse.py b/addons/account_balance/report/rml_parse.py index c5eceb5bcd1..37bb0add89e 100644 --- a/addons/account_balance/report/rml_parse.py +++ b/addons/account_balance/report/rml_parse.py @@ -32,7 +32,7 @@ import sys class rml_parse(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(rml_parse, self).__init__(cr, uid, name, context=None) + super(rml_parse, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'comma_me': self.comma_me, 'format_date': self._get_and_change_date_format_for_swiss, diff --git a/addons/account_budget/report/analytic_account_budget_report.py b/addons/account_budget/report/analytic_account_budget_report.py index a22195cfc76..a35fc3b15f4 100644 --- a/addons/account_budget/report/analytic_account_budget_report.py +++ b/addons/account_budget/report/analytic_account_budget_report.py @@ -26,7 +26,7 @@ import datetime class analytic_account_budget_report(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(analytic_account_budget_report, self).__init__(cr, uid, name, context) + super(analytic_account_budget_report, self).__init__(cr, uid, name, context=context) self.localcontext.update( { 'funct': self.funct, 'funct_total': self.funct_total, diff --git a/addons/account_budget/report/budget_report.py b/addons/account_budget/report/budget_report.py index 102707a14c7..c9c6c0750e4 100644 --- a/addons/account_budget/report/budget_report.py +++ b/addons/account_budget/report/budget_report.py @@ -27,7 +27,7 @@ import operator class budget_report(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(budget_report, self).__init__(cr, uid, name, context) + super(budget_report, self).__init__(cr, uid, name, context=context) self.localcontext.update( { 'lines': self.lines, 'budget_total': self.budget_total, diff --git a/addons/account_budget/report/crossovered_budget_report.py b/addons/account_budget/report/crossovered_budget_report.py index 3e46c1196f5..8b607e98cf1 100644 --- a/addons/account_budget/report/crossovered_budget_report.py +++ b/addons/account_budget/report/crossovered_budget_report.py @@ -29,7 +29,7 @@ import osv class budget_report(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(budget_report, self).__init__(cr, uid, name, context) + super(budget_report, self).__init__(cr, uid, name, context=context) self.localcontext.update( { 'funct': self.funct, 'funct_total': self.funct_total, diff --git a/addons/account_followup/report/report_followup_print.py b/addons/account_followup/report/report_followup_print.py index 53ad5ce2572..0c9768f45de 100644 --- a/addons/account_followup/report/report_followup_print.py +++ b/addons/account_followup/report/report_followup_print.py @@ -28,7 +28,7 @@ from report import report_sxw class report_rappel(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(report_rappel, self).__init__(cr, uid, name, context) + super(report_rappel, self).__init__(cr, uid, name, context=context) self.localcontext.update( { 'time' : time, 'ids_to_objects': self._ids_to_objects, diff --git a/addons/account_invoice_layout/report/report_account_invoice_layout.py b/addons/account_invoice_layout/report/report_account_invoice_layout.py index a577f7d656a..77221a54e81 100644 --- a/addons/account_invoice_layout/report/report_account_invoice_layout.py +++ b/addons/account_invoice_layout/report/report_account_invoice_layout.py @@ -25,7 +25,7 @@ from report import report_sxw class account_invoice_1(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(account_invoice_1, self).__init__(cr, uid, name, context) + super(account_invoice_1, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, 'invoice_lines': self.invoice_lines, diff --git a/addons/account_invoice_layout/report/special_message_invoice.py b/addons/account_invoice_layout/report/special_message_invoice.py index 38fe8739142..94dff32a54e 100644 --- a/addons/account_invoice_layout/report/special_message_invoice.py +++ b/addons/account_invoice_layout/report/special_message_invoice.py @@ -26,7 +26,7 @@ import pooler class account_invoice_with_message(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(account_invoice_with_message, self).__init__(cr, uid, name, context) + super(account_invoice_with_message, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, 'spcl_msg': self.spcl_msg, diff --git a/addons/account_payment/report/payment_order.py b/addons/account_payment/report/payment_order.py index 4767c63ba31..dec5c031f98 100644 --- a/addons/account_payment/report/payment_order.py +++ b/addons/account_payment/report/payment_order.py @@ -26,7 +26,7 @@ from report import report_sxw class payment_order(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(payment_order, self).__init__(cr, uid, name, context) + super(payment_order, self).__init__(cr, uid, name, context=context) self.localcontext.update( { 'time': time, diff --git a/addons/account_report/report/accounting_report.py b/addons/account_report/report/accounting_report.py index c489d99ca62..52f1a02221d 100644 --- a/addons/account_report/report/accounting_report.py +++ b/addons/account_report/report/accounting_report.py @@ -28,7 +28,7 @@ from report import report_sxw class accounting_report(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(accounting_report, self).__init__(cr, uid, name, context) + super(accounting_report, self).__init__(cr, uid, name, context=context) self.ret_list = [] self.localcontext.update({ 'time': time, diff --git a/addons/account_report/report/print_indicator.py b/addons/account_report/report/print_indicator.py index 9d4fa4673f4..53f59919b91 100644 --- a/addons/account_report/report/print_indicator.py +++ b/addons/account_report/report/print_indicator.py @@ -76,7 +76,7 @@ import os class accounting_report_indicator(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(accounting_report_indicator, self).__init__(cr, uid, name, context) + super(accounting_report_indicator, self).__init__(cr, uid, name, context=context) self.ret_list = [] self.localcontext.update({ 'time': time, diff --git a/addons/account_reporting/report/account_report_bs.py b/addons/account_reporting/report/account_report_bs.py index 955e4c12c6f..c741b0d2ff0 100644 --- a/addons/account_reporting/report/account_report_bs.py +++ b/addons/account_reporting/report/account_report_bs.py @@ -36,7 +36,7 @@ parents = { class account_report_bs(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(account_report_bs, self).__init__(cr, uid, name, context) + super(account_report_bs, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, 'lines': self.lines, diff --git a/addons/account_voucher/report/report_voucher.py b/addons/account_voucher/report/report_voucher.py index 27ba2efd488..9f40c6ad920 100755 --- a/addons/account_voucher/report/report_voucher.py +++ b/addons/account_voucher/report/report_voucher.py @@ -32,7 +32,7 @@ from tools import amount_to_text_en class report_voucher(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(report_voucher, self).__init__(cr, uid, name, context) + super(report_voucher, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, 'convert':self.convert, diff --git a/addons/account_voucher/report/report_voucher_amount.py b/addons/account_voucher/report/report_voucher_amount.py index 3b67ff7a9ac..246782e433e 100755 --- a/addons/account_voucher/report/report_voucher_amount.py +++ b/addons/account_voucher/report/report_voucher_amount.py @@ -32,7 +32,7 @@ from tools import amount_to_text_en class report_voucher_amount(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(report_voucher_amount, self).__init__(cr, uid, name, context) + super(report_voucher_amount, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, 'convert':self.convert @@ -48,4 +48,4 @@ report_sxw.report_sxw( 'account.voucher', 'addons/account_voucher/report/report_voucher_amount.rml', parser=report_voucher_amount,header=False -) \ No newline at end of file +) diff --git a/addons/account_voucher/report/rml_parse.py b/addons/account_voucher/report/rml_parse.py index 31bd26617cd..9f4b8e6bfb9 100644 --- a/addons/account_voucher/report/rml_parse.py +++ b/addons/account_voucher/report/rml_parse.py @@ -32,7 +32,7 @@ import sys class rml_parse(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(rml_parse, self).__init__(cr, uid, name, context=None) + super(rml_parse, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'comma_me': self.comma_me, 'format_date': self._get_and_change_date_format_for_swiss, diff --git a/addons/auction/report/auction_artists.py b/addons/auction/report/auction_artists.py index 91843906dff..c66531938f4 100644 --- a/addons/auction/report/auction_artists.py +++ b/addons/auction/report/auction_artists.py @@ -28,7 +28,7 @@ from report import report_sxw class auction_artists(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(auction_artists, self).__init__(cr, uid, name, context) + super(auction_artists, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, diff --git a/addons/auction/report/auction_bids.py b/addons/auction/report/auction_bids.py index 560160ac008..2153d246428 100644 --- a/addons/auction/report/auction_bids.py +++ b/addons/auction/report/auction_bids.py @@ -28,7 +28,7 @@ from report import report_sxw class auction_bids(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(auction_bids, self).__init__(cr, uid, name, context) + super(auction_bids, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, }) diff --git a/addons/auction/report/auction_buyer_result.py b/addons/auction/report/auction_buyer_result.py index 97ab54cc056..017f62eb5d0 100644 --- a/addons/auction/report/auction_buyer_result.py +++ b/addons/auction/report/auction_buyer_result.py @@ -28,7 +28,7 @@ from report import report_sxw class auction_buyer_result(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(auction_buyer_result, self).__init__(cr, uid, name, context) + super(auction_buyer_result, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, diff --git a/addons/auction/report/auction_catelog.py b/addons/auction/report/auction_catelog.py index 70b2b6db917..b9b8dad2dc7 100644 --- a/addons/auction/report/auction_catelog.py +++ b/addons/auction/report/auction_catelog.py @@ -28,7 +28,7 @@ from report import report_sxw class auction_catelog(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(auction_catelog, self).__init__(cr, uid, name, context) + super(auction_catelog, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, diff --git a/addons/auction/report/auction_objects.py b/addons/auction/report/auction_objects.py index 879b407c184..0879c7770e5 100644 --- a/addons/auction/report/auction_objects.py +++ b/addons/auction/report/auction_objects.py @@ -26,7 +26,7 @@ from report import report_sxw class auction_objects(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(auction_objects, self).__init__(cr, uid, name, context) + super(auction_objects, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, #'lines': self.lines diff --git a/addons/auction/report/auction_result.py b/addons/auction/report/auction_result.py index 48f21d73669..77ba88b9486 100644 --- a/addons/auction/report/auction_result.py +++ b/addons/auction/report/auction_result.py @@ -28,7 +28,7 @@ from report import report_sxw class auction_result(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(auction_result, self).__init__(cr, uid, name, context) + super(auction_result, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, diff --git a/addons/auction/report/auction_total_rml.py b/addons/auction/report/auction_total_rml.py index cc103e7c250..82c068bce26 100644 --- a/addons/auction/report/auction_total_rml.py +++ b/addons/auction/report/auction_total_rml.py @@ -29,7 +29,7 @@ from report import report_sxw class auction_total_rml(report_sxw.rml_parse): total_obj=[] def __init__(self, cr, uid, name, context): - super(auction_total_rml, self).__init__(cr, uid, name, context) + super(auction_total_rml, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, 'sum_taxes':self.sum_taxes, diff --git a/addons/auction/report/bids_lots.py b/addons/auction/report/bids_lots.py index 8358e76ea2a..e77d7948c92 100644 --- a/addons/auction/report/bids_lots.py +++ b/addons/auction/report/bids_lots.py @@ -28,7 +28,7 @@ from report import report_sxw class bids_lots(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(bids_lots, self).__init__(cr, uid, name, context) + super(bids_lots, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, }) diff --git a/addons/auction/report/bids_phones_details.py b/addons/auction/report/bids_phones_details.py index bf5e5343074..73899f957cd 100644 --- a/addons/auction/report/bids_phones_details.py +++ b/addons/auction/report/bids_phones_details.py @@ -28,7 +28,7 @@ from report import report_sxw class bids_phones_details(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(bids_phones_details, self).__init__(cr, uid, name, context) + super(bids_phones_details, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, }) diff --git a/addons/auction/report/buyer_form_report.py b/addons/auction/report/buyer_form_report.py index 20d93cef754..291be748930 100644 --- a/addons/auction/report/buyer_form_report.py +++ b/addons/auction/report/buyer_form_report.py @@ -30,7 +30,7 @@ class buyer_form_report(report_sxw.rml_parse): count=0 c=0 def __init__(self, cr, uid, name, context): - super(buyer_form_report, self).__init__(cr, uid, name, context) + super(buyer_form_report, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, 'sum_taxes': self.sum_taxes, diff --git a/addons/auction/report/buyer_list.py b/addons/auction/report/buyer_list.py index eaa44f22c0c..83799ba5169 100644 --- a/addons/auction/report/buyer_list.py +++ b/addons/auction/report/buyer_list.py @@ -34,7 +34,7 @@ class buyer_list(report_sxw.rml_parse): sum_buyer_price_val=0.0 sum_lot_val=0.0 def __init__(self, cr, uid, name, context): - super(buyer_list, self).__init__(cr, uid, name, context) + super(buyer_list, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, 'lines_lots_from_auction' : self.lines_lots_from_auction, diff --git a/addons/auction/report/catelogwithpictures.py b/addons/auction/report/catelogwithpictures.py index f3f954a2908..4063f884ad2 100644 --- a/addons/auction/report/catelogwithpictures.py +++ b/addons/auction/report/catelogwithpictures.py @@ -26,7 +26,7 @@ from report import report_sxw class catelogwithpictures(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(catelogwithpictures, self).__init__(cr, uid, name, context) + super(catelogwithpictures, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, diff --git a/addons/auction/report/deposit_seller.py b/addons/auction/report/deposit_seller.py index 4e0a184ffc7..f39fd6b5596 100644 --- a/addons/auction/report/deposit_seller.py +++ b/addons/auction/report/deposit_seller.py @@ -28,7 +28,7 @@ from report import report_sxw class deposit_seller(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(deposit_seller, self).__init__(cr, uid, name, context) + super(deposit_seller, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, diff --git a/addons/auction/report/lots_list.py b/addons/auction/report/lots_list.py index 32d23accb90..ad5e678c2f3 100644 --- a/addons/auction/report/lots_list.py +++ b/addons/auction/report/lots_list.py @@ -26,7 +26,7 @@ from report import report_sxw class lots_list(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(lots_list, self).__init__(cr, uid, name, context) + super(lots_list, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, 'bid_line' : self.bid_line diff --git a/addons/auction/report/lots_list_inventory.py b/addons/auction/report/lots_list_inventory.py index 42a993ccc7a..329591cf3ac 100644 --- a/addons/auction/report/lots_list_inventory.py +++ b/addons/auction/report/lots_list_inventory.py @@ -26,7 +26,7 @@ from report import report_sxw class lots_list_inventory(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(lots_list_inventory, self).__init__(cr, uid, name, context) + super(lots_list_inventory, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, 'bid_line' : self.bid_line diff --git a/addons/auction/report/lots_list_landscape.py b/addons/auction/report/lots_list_landscape.py index b638c6e54c4..99760d78715 100644 --- a/addons/auction/report/lots_list_landscape.py +++ b/addons/auction/report/lots_list_landscape.py @@ -26,7 +26,7 @@ from report import report_sxw class lots_list_llandscape(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(lots_list_landscape, self).__init__(cr, uid, name, context) + super(lots_list_landscape, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, diff --git a/addons/auction/report/report_lot_bar_code.py b/addons/auction/report/report_lot_bar_code.py index 3d9f8df4330..4767fe68c28 100644 --- a/addons/auction/report/report_lot_bar_code.py +++ b/addons/auction/report/report_lot_bar_code.py @@ -26,7 +26,7 @@ from report import report_sxw class auction_code_produit(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(auction_code_produit, self).__init__(cr, uid, name, context) + super(auction_code_produit, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, }) diff --git a/addons/auction/report/seller_form_report.py b/addons/auction/report/seller_form_report.py index a64759b2547..d0febfde712 100644 --- a/addons/auction/report/seller_form_report.py +++ b/addons/auction/report/seller_form_report.py @@ -28,7 +28,7 @@ from osv import osv class seller_form_report(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(seller_form_report, self).__init__(cr, uid, name, context) + super(seller_form_report, self).__init__(cr, uid, name, context=context) lot=self.pool.get('auction.lots').browse(cr,uid,uid) #address=lot.bord_vnd_id.address_get(self.cr,self.uid,[partner.id]) # partner=lot.bord_vnd_id.partner_id diff --git a/addons/hr_attendance/report/attendance_errors.py b/addons/hr_attendance/report/attendance_errors.py index ef3317e27da..58553cd5e83 100644 --- a/addons/hr_attendance/report/attendance_errors.py +++ b/addons/hr_attendance/report/attendance_errors.py @@ -28,7 +28,7 @@ import datetime class attendance_print(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(attendance_print, self).__init__(cr, uid, name, context) + super(attendance_print, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, 'lst': self._lst, diff --git a/addons/hr_expense/report/expense.py b/addons/hr_expense/report/expense.py index 0c35a035a38..376b5e6c16a 100644 --- a/addons/hr_expense/report/expense.py +++ b/addons/hr_expense/report/expense.py @@ -26,7 +26,7 @@ import datetime class expense(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(expense, self).__init__(cr, uid, name, context) + super(expense, self).__init__(cr, uid, name, context=context) self.localcontext.update( { 'time': time, }) diff --git a/addons/hr_timesheet_invoice/report/account_analytic_profit.py b/addons/hr_timesheet_invoice/report/account_analytic_profit.py index a767eba946a..600535ee027 100644 --- a/addons/hr_timesheet_invoice/report/account_analytic_profit.py +++ b/addons/hr_timesheet_invoice/report/account_analytic_profit.py @@ -25,7 +25,7 @@ import pooler class account_analytic_profit(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(account_analytic_profit, self).__init__(cr, uid, name, context) + super(account_analytic_profit, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'lines': self._lines, 'user_ids': self._user_ids, diff --git a/addons/hr_timesheet_invoice/report/cost_ledger.py b/addons/hr_timesheet_invoice/report/cost_ledger.py index 5e588f11e06..584ea3c6acd 100644 --- a/addons/hr_timesheet_invoice/report/cost_ledger.py +++ b/addons/hr_timesheet_invoice/report/cost_ledger.py @@ -27,7 +27,7 @@ from report import report_sxw class account_analytic_cost_ledger(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(account_analytic_cost_ledger, self).__init__(cr, uid, name, context) + super(account_analytic_cost_ledger, self).__init__(cr, uid, name, context=context) self.sum_revenue={} self.account_sum_revenue={} self.localcontext.update( { diff --git a/addons/l10n_ch/report/bvr.py b/addons/l10n_ch/report/bvr.py index c71c62a0da2..8804f6c876a 100755 --- a/addons/l10n_ch/report/bvr.py +++ b/addons/l10n_ch/report/bvr.py @@ -39,7 +39,7 @@ from mx.DateTime import * class account_invoice_bvr(report_sxw.rml_parse): """Report class that Allows to print BVR payement vector""" def __init__(self, cr, uid, name, context): - super(account_invoice_bvr, self).__init__(cr, uid, name, context) + super(account_invoice_bvr, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, 'user':self.pool.get("res.users").browse(cr,uid,uid), diff --git a/addons/l10n_fr/report/base_report.py b/addons/l10n_fr/report/base_report.py index 488f36304c5..52eb99154a6 100644 --- a/addons/l10n_fr/report/base_report.py +++ b/addons/l10n_fr/report/base_report.py @@ -31,7 +31,7 @@ from report import report_sxw class base_report(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(base_report, self).__init__(cr, uid, name, context) + super(base_report, self).__init__(cr, uid, name, context=context) self.localcontext.update( { 'time': time, '_load': self._load, diff --git a/addons/mrp/report/order.py b/addons/mrp/report/order.py index 5fc82b9f7f0..02526d88a64 100644 --- a/addons/mrp/report/order.py +++ b/addons/mrp/report/order.py @@ -27,7 +27,7 @@ import pooler class order(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(order, self).__init__(cr, uid, name, context) + super(order, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, }) diff --git a/addons/mrp_operations/report/mrp_code_barcode.py b/addons/mrp_operations/report/mrp_code_barcode.py index a4431e55b57..336a46ba546 100755 --- a/addons/mrp_operations/report/mrp_code_barcode.py +++ b/addons/mrp_operations/report/mrp_code_barcode.py @@ -26,7 +26,7 @@ from report import report_sxw class code_barcode(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(code_barcode, self).__init__(cr, uid, name, context) + super(code_barcode, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, }) diff --git a/addons/mrp_operations/report/mrp_wc_barcode.py b/addons/mrp_operations/report/mrp_wc_barcode.py index bc4fe4976ee..6725f95a95d 100755 --- a/addons/mrp_operations/report/mrp_wc_barcode.py +++ b/addons/mrp_operations/report/mrp_wc_barcode.py @@ -26,7 +26,7 @@ from report import report_sxw class workcenter_code(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(workcenter_code, self).__init__(cr, uid, name, context) + super(workcenter_code, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, }) diff --git a/addons/mrp_repair/report/order.py b/addons/mrp_repair/report/order.py index be6897d8c2e..b7f3d0bc19d 100644 --- a/addons/mrp_repair/report/order.py +++ b/addons/mrp_repair/report/order.py @@ -27,7 +27,7 @@ import pooler class order(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(order, self).__init__(cr, uid, name, context) + super(order, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, 'total': self.total, diff --git a/addons/point_of_sale/report/pos_details.py b/addons/point_of_sale/report/pos_details.py index 1e5962c6586..6a6b9420255 100644 --- a/addons/point_of_sale/report/pos_details.py +++ b/addons/point_of_sale/report/pos_details.py @@ -112,7 +112,7 @@ class pos_details(report_sxw.rml_parse): return '%s - %s' % (min_date, max_date) def __init__(self, cr, uid, name, context): - super(pos_details, self).__init__(cr, uid, name, context) + super(pos_details, self).__init__(cr, uid, name, context=context) self.total = 0.0 self.localcontext.update({ 'time': time, diff --git a/addons/point_of_sale/report/pos_details_summary.py b/addons/point_of_sale/report/pos_details_summary.py index 826844effd6..dc625aee62e 100644 --- a/addons/point_of_sale/report/pos_details_summary.py +++ b/addons/point_of_sale/report/pos_details_summary.py @@ -109,7 +109,7 @@ class pos_details_summary(report_sxw.rml_parse): return '%s - %s' % (min_date, max_date) def __init__(self, cr, uid, name, context): - super(pos_details_summary, self).__init__(cr, uid, name, context) + super(pos_details_summary, self).__init__(cr, uid, name, context=context) self.total = 0.0 self.localcontext.update({ 'time': time, diff --git a/addons/point_of_sale/report/pos_invoice.py b/addons/point_of_sale/report/pos_invoice.py index 54423775614..1d2749b46ef 100644 --- a/addons/point_of_sale/report/pos_invoice.py +++ b/addons/point_of_sale/report/pos_invoice.py @@ -29,7 +29,7 @@ from tools.translate import _ class pos_invoice(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(pos_invoice, self).__init__(cr, uid, name, context) + super(pos_invoice, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, }) diff --git a/addons/point_of_sale/report/pos_lines.py b/addons/point_of_sale/report/pos_lines.py index 1abec66dc80..66f9754f412 100644 --- a/addons/point_of_sale/report/pos_lines.py +++ b/addons/point_of_sale/report/pos_lines.py @@ -27,7 +27,7 @@ from report import report_sxw class pos_lines(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(pos_lines, self).__init__(cr, uid, name, context) + super(pos_lines, self).__init__(cr, uid, name, context=context) self.total = 0.0 self.localcontext.update({ 'time': time, diff --git a/addons/point_of_sale/report/pos_receipt.py b/addons/point_of_sale/report/pos_receipt.py index 69f4bd706c2..15d8f177582 100644 --- a/addons/point_of_sale/report/pos_receipt.py +++ b/addons/point_of_sale/report/pos_receipt.py @@ -29,7 +29,7 @@ import pooler class order(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(order, self).__init__(cr, uid, name, context) + super(order, self).__init__(cr, uid, name, context=context) user = pooler.get_pool(cr.dbname).get('res.users').browse(cr, uid, uid) partner = user.company_id.partner_id diff --git a/addons/product/report/product_pricelist.py b/addons/product/report/product_pricelist.py index 3e232f7413c..dc3a1c3512c 100644 --- a/addons/product/report/product_pricelist.py +++ b/addons/product/report/product_pricelist.py @@ -27,7 +27,7 @@ import pooler class product_pricelist(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(product_pricelist, self).__init__(cr, uid, name, context) + super(product_pricelist, self).__init__(cr, uid, name, context=context) self.pricelist=False self.quantity=[] self.localcontext.update({ diff --git a/addons/purchase/report/order.py b/addons/purchase/report/order.py index 52aaa1ae865..66ba383141d 100644 --- a/addons/purchase/report/order.py +++ b/addons/purchase/report/order.py @@ -27,7 +27,7 @@ import pooler class order(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(order, self).__init__(cr, uid, name, context) + super(order, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, 'get_line_tax': self._get_line_tax, diff --git a/addons/purchase/report/request_quotation.py b/addons/purchase/report/request_quotation.py index 9acf4309264..0e920e2039d 100644 --- a/addons/purchase/report/request_quotation.py +++ b/addons/purchase/report/request_quotation.py @@ -27,7 +27,7 @@ import pooler class request_quotation(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(request_quotation, self).__init__(cr, uid, name, context) + super(request_quotation, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, 'user': self.pool.get('res.users').browse(cr, uid, uid, context) diff --git a/addons/report_intrastat/report/invoice.py b/addons/report_intrastat/report/invoice.py index 692b33d0095..7afdd1c180e 100644 --- a/addons/report_intrastat/report/invoice.py +++ b/addons/report_intrastat/report/invoice.py @@ -26,7 +26,7 @@ import pooler class account_invoice_intrastat(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(account_invoice_intrastat, self).__init__(cr, uid, name, context) + super(account_invoice_intrastat, self).__init__(cr, uid, name, context=context) self.total=0 self.localcontext.update({ 'time': time, diff --git a/addons/sale/report/order.py b/addons/sale/report/order.py index cb239b62f2a..ef33a9509f8 100644 --- a/addons/sale/report/order.py +++ b/addons/sale/report/order.py @@ -26,7 +26,7 @@ from osv import osv class order(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(order, self).__init__(cr, uid, name, context) + super(order, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, }) diff --git a/addons/sale/report/sale_prepare_allot.py b/addons/sale/report/sale_prepare_allot.py index ef59da50d7d..30f643d63f3 100644 --- a/addons/sale/report/sale_prepare_allot.py +++ b/addons/sale/report/sale_prepare_allot.py @@ -25,7 +25,7 @@ from report import report_sxw class sale_prepare(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(sale_prepare, self).__init__(cr, uid, name, context) + super(sale_prepare, self).__init__(cr, uid, name, context=context) self.localcontext.update( { 'allotment': self._allotment, }) diff --git a/addons/sale_delivery_report/report/shipping.py b/addons/sale_delivery_report/report/shipping.py index 63aeba6c10c..13ea8e754da 100644 --- a/addons/sale_delivery_report/report/shipping.py +++ b/addons/sale_delivery_report/report/shipping.py @@ -27,7 +27,7 @@ import pooler class shipping(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(shipping, self).__init__(cr, uid, name, context) + super(shipping, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, # 'get_address': self._get_address, diff --git a/addons/stock/report/lot_location.py b/addons/stock/report/lot_location.py index e20f89bb81f..a44ae876a9e 100644 --- a/addons/stock/report/lot_location.py +++ b/addons/stock/report/lot_location.py @@ -25,7 +25,7 @@ from report import report_sxw class lot_location(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(lot_location, self).__init__(cr, uid, name, context) + super(lot_location, self).__init__(cr, uid, name, context=context) self.grand_total = 0.0 self.localcontext.update({ diff --git a/addons/stock/report/lot_overview.py b/addons/stock/report/lot_overview.py index 3ecd26476df..f8442d7f3f6 100644 --- a/addons/stock/report/lot_overview.py +++ b/addons/stock/report/lot_overview.py @@ -25,7 +25,7 @@ from report import report_sxw class lot_overview(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(lot_overview, self).__init__(cr, uid, name, context) + super(lot_overview, self).__init__(cr, uid, name, context=context) self.price_total = 0.0 self.grand_total = 0.0 self.localcontext.update({ diff --git a/addons/stock/report/lot_overview_all.py b/addons/stock/report/lot_overview_all.py index 2f349d9bd93..addd7a9009f 100644 --- a/addons/stock/report/lot_overview_all.py +++ b/addons/stock/report/lot_overview_all.py @@ -25,7 +25,7 @@ from report import report_sxw class lot_overview_all(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(lot_overview_all, self).__init__(cr, uid, name, context) + super(lot_overview_all, self).__init__(cr, uid, name, context=context) self.price_total = 0.0 self.grand_total = 0.0 self.localcontext.update({ diff --git a/addons/stock/report/picking.py b/addons/stock/report/picking.py index 5a0746b80e8..0182ef3ba54 100644 --- a/addons/stock/report/picking.py +++ b/addons/stock/report/picking.py @@ -27,7 +27,7 @@ import pooler class picking(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): - super(picking, self).__init__(cr, uid, name, context) + super(picking, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, }) From 6f68bf76ff2e7c669c0afecb41ec7dc78b70adc3 Mon Sep 17 00:00:00 2001 From: "HDA (OpenERP)" Date: Mon, 12 Oct 2009 15:53:33 +0530 Subject: [PATCH 04/54] Module:account_voucher Removed (tlh_TLH)Klingon translation file bzr revid: hda@tinyerp.com-20091012102333-tcvpvl11p43skegs --- addons/account_voucher/i18n/tlh_TLH.po | 598 ------------------------- 1 file changed, 598 deletions(-) delete mode 100644 addons/account_voucher/i18n/tlh_TLH.po diff --git a/addons/account_voucher/i18n/tlh_TLH.po b/addons/account_voucher/i18n/tlh_TLH.po deleted file mode 100644 index 40cccd6da7f..00000000000 --- a/addons/account_voucher/i18n/tlh_TLH.po +++ /dev/null @@ -1,598 +0,0 @@ -# Translation of OpenERP Server. -# This file contains the translation of the following modules: -# * account_voucher -# -msgid "" -msgstr "" -"Project-Id-Version: OpenERP Server 5.0.0\n" -"Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2009-05-19 14:36+0000\n" -"PO-Revision-Date: 2009-05-19 17:10+0000\n" -"Last-Translator: <>\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2009-08-28 11:00+0000\n" -"X-Generator: Launchpad (build Unknown)\n" - -#. module: account_voucher -#: model:ir.actions.act_window,name:account_voucher.act_account_acount_move_line_open1 -msgid "Opening Balance Entry" -msgstr "" - -#. module: account_voucher -#: model:ir.ui.menu,name:account_voucher.menu_action_receipt_bakreceipt_voucher_list -msgid "Bank Receipts" -msgstr "" - -#. module: account_voucher -#: rml:voucher.cash_amount:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid "Particulars" -msgstr "" - -#. module: account_voucher -#: rml:voucher.cash_amount:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid "State :" -msgstr "" - -#. module: account_voucher -#: constraint:ir.actions.act_window:0 -msgid "Invalid model name in the action definition." -msgstr "" - -#. module: account_voucher -#: rml:voucher.cash_amount:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid "Ref. :" -msgstr "" - -#. module: account_voucher -#: selection:account.move,voucher_type:0 -#: selection:account.voucher,type:0 -#: selection:account.voucher.open,init,type:0 -#: model:ir.actions.act_window,name:account_voucher.action_view_cont_voucher_form -#: model:ir.ui.menu,name:account_voucher.menu_action_view_cont_voucher_form -msgid "Contra Voucher" -msgstr "" - -#. module: account_voucher -#: field:account.voucher,company_id:0 -msgid "Company" -msgstr "" - -#. module: account_voucher -#: selection:account.move,voucher_type:0 -#: selection:account.voucher,type:0 -#: model:ir.actions.act_window,name:account_voucher.action_view_jour_voucher_form -#: model:ir.ui.menu,name:account_voucher.menu_action_view_jour_voucher_form -msgid "Journal Voucher" -msgstr "" - -#. module: account_voucher -#: rml:voucher.cash_receipt.drcr:0 -msgid "," -msgstr "" - -#. module: account_voucher -#: view:account.voucher:0 -msgid "Set to Draft" -msgstr "" - -#. module: account_voucher -#: wizard_button:account.voucher.open,init,open:0 -msgid "Open Voucher Entries" -msgstr "" - -#. module: account_voucher -#: model:ir.model,name:account_voucher.model_account_voucher_line -msgid "Voucher Line" -msgstr "" - -#. module: account_voucher -#: view:account.move:0 -msgid "Total Credit" -msgstr "" - -#. module: account_voucher -#: field:account.voucher,account_id:0 -#: field:account.voucher.line,account_id:0 -msgid "Account" -msgstr "" - -#. module: account_voucher -#: rml:voucher.cash_amount:0 -msgid "D" -msgstr "" - -#. module: account_voucher -#: field:account.account,level:0 -msgid "Level" -msgstr "" - -#. module: account_voucher -#: view:account.move:0 -msgid "Account Entry Line" -msgstr "" - -#. module: account_voucher -#: view:account.move:0 -msgid "Total Debit" -msgstr "" - -#. module: account_voucher -#: field:account.voucher,amount:0 -#: field:account.voucher.line,amount:0 -#: rml:voucher.cash_amount:0 -msgid "Amount" -msgstr "" - -#. module: account_voucher -#: rml:voucher.cash_amount:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid "Receiver's Signature" -msgstr "" - -#. module: account_voucher -#: rml:voucher.cash_amount:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid "No." -msgstr "" - -#. module: account_voucher -#: rml:voucher.cash_amount:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid "Amount (in words) :" -msgstr "" - -#. module: account_voucher -#: field:account.voucher.line,account_analytic_id:0 -msgid "Analytic Account" -msgstr "" - -#. module: account_voucher -#: selection:account.move,voucher_type:0 -#: selection:account.voucher,type:0 -#: selection:account.voucher.open,init,type:0 -#: model:ir.actions.act_window,name:account_voucher.action_view_jour_sale_voucher_form -#: model:ir.ui.menu,name:account_voucher.menu_action_view_jour_sale_voucher_form -msgid "Journal Sale Voucher" -msgstr "" - -#. module: account_voucher -#: model:ir.actions.act_window,name:account_voucher.action_receipt_vou_voucher_list -#: model:ir.ui.menu,name:account_voucher.menu_action_receipt_vou_voucher_list -msgid "Receipt Vouchers" -msgstr "" - -#. module: account_voucher -#: rml:voucher.cash_amount:0 -msgid "Account :" -msgstr "" - -#. module: account_voucher -#: rml:voucher.cash_amount:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid "On Account of :" -msgstr "" - -#. module: account_voucher -#: model:ir.actions.act_window,name:account_voucher.action_payments_bankpay_voucher_list -#: model:ir.actions.act_window,name:account_voucher.action_payments_cashpay_voucher_list -#: model:ir.actions.act_window,name:account_voucher.action_payments_voucher_list -#: model:ir.ui.menu,name:account_voucher.menu_action_payments_voucher_list -msgid "Payment Vouchers" -msgstr "" - -#. module: account_voucher -#: view:account.voucher:0 -msgid "Create" -msgstr "" - -#. module: account_voucher -#: selection:account.account,type1:0 -#: selection:account.account.template,type1:0 -msgid "None" -msgstr "" - -#. module: account_voucher -#: field:account.voucher,number:0 -msgid "Number" -msgstr "" - -#. module: account_voucher -#: view:account.move:0 -#: field:account.voucher,state:0 -#: wizard_field:account.voucher.open,init,state:0 -msgid "State" -msgstr "" - -#. module: account_voucher -#: selection:account.account,type1:0 -#: selection:account.account.template,type1:0 -#: selection:account.voucher.line,type:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid "Debit" -msgstr "" - -#. module: account_voucher -#: field:account.voucher,type:0 -#: field:account.voucher.line,type:0 -msgid "Type" -msgstr "" - -#. module: account_voucher -#: model:ir.ui.menu,name:account_voucher.menu_action_voucher_list -msgid "Voucher Entries" -msgstr "" - -#. module: account_voucher -#: rml:voucher.cash_amount:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid "Authorised Signatory" -msgstr "" - -#. module: account_voucher -#: view:account.voucher:0 -#: model:ir.actions.act_window,name:account_voucher.action_voucher_list -msgid "Vouchers" -msgstr "" - -#. module: account_voucher -#: view:account.voucher:0 -#: field:account.voucher.line,voucher_id:0 -#: model:res.request.link,name:account_voucher.req_link_voucher -msgid "Voucher" -msgstr "" - -#. module: account_voucher -#: wizard_view:account.voucher.open,init:0 -#: model:ir.ui.menu,name:account_voucher.menu_wizard_account_voucher_open -msgid "Open Vouchers" -msgstr "" - -#. module: account_voucher -#: constraint:ir.ui.view:0 -msgid "Invalid XML for View Architecture!" -msgstr "" - -#. module: account_voucher -#: rml:voucher.cash_amount:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid "Dated :" -msgstr "" - -#. module: account_voucher -#: model:ir.ui.menu,name:account_voucher.menu_action_receipt_cashreceipt_voucher_list -msgid "Cash Receipts" -msgstr "" - -#. module: account_voucher -#: field:account.voucher,partner_id:0 -#: field:account.voucher.line,partner_id:0 -msgid "Partner" -msgstr "" - -#. module: account_voucher -#: model:ir.ui.menu,name:account_voucher.menu_action_view_bank_pay_voucher_form -msgid "New Bank Payment" -msgstr "" - -#. module: account_voucher -#: view:account.voucher:0 -#: field:account.voucher,payment_ids:0 -msgid "Voucher Lines" -msgstr "" - -#. module: account_voucher -#: field:account.voucher,currency_id:0 -msgid "Currency" -msgstr "" - -#. module: account_voucher -#: view:account.move:0 -#: field:account.move,narration:0 -#: view:account.voucher:0 -#: field:account.voucher,narration:0 -msgid "Narration" -msgstr "" - -#. module: account_voucher -#: field:account.voucher,reference:0 -msgid "Voucher Reference" -msgstr "" - -#. module: account_voucher -#: model:ir.ui.menu,name:account_voucher.menu_action_view_cash_rec_voucher_form -msgid "New Cash Receipt" -msgstr "" - -#. module: account_voucher -#: model:ir.actions.report.xml,name:account_voucher.report_account_voucher_amt -msgid "Voucher Report" -msgstr "" - -#. module: account_voucher -#: field:account.account,open_bal:0 -msgid "Opening Balance" -msgstr "" - -#. module: account_voucher -#: selection:account.voucher,state:0 -#: selection:account.voucher.open,init,state:0 -#: rml:voucher.cash_amount:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid "Draft" -msgstr "" - -#. module: account_voucher -#: rml:voucher.cash_amount:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid "PRO-FORMA" -msgstr "" - -#. module: account_voucher -#: model:ir.actions.act_window,name:account_voucher.action_receipt_cashreceipt_voucher_list -msgid "Cash Receipt" -msgstr "" - -#. module: account_voucher -#: model:ir.ui.menu,name:account_voucher.menu_action_view_cash_pay_voucher_form -msgid "New Cash Payment" -msgstr "" - -#. module: account_voucher -#: view:account.move:0 -msgid "Optional Information" -msgstr "" - -#. module: account_voucher -#: view:account.voucher:0 -msgid "General Entries" -msgstr "" - -#. module: account_voucher -#: field:account.voucher,date:0 -msgid "Date" -msgstr "" - -#. module: account_voucher -#: rml:voucher.cash_amount:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid ":" -msgstr "" - -#. module: account_voucher -#: field:account.account,type1:0 -#: field:account.account.template,type1:0 -msgid "Dr/Cr" -msgstr "" - -#. module: account_voucher -#: model:ir.actions.report.xml,name:account_voucher.report_account_voucher -msgid "Voucher Report (Cr/Dr)" -msgstr "" - -#. module: account_voucher -#: field:account.move,voucher_type:0 -#: wizard_field:account.voucher.open,init,type:0 -msgid "Voucher Type" -msgstr "" - -#. module: account_voucher -#: selection:account.account,type1:0 -#: selection:account.account.template,type1:0 -#: selection:account.voucher.line,type:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid "Credit" -msgstr "" - -#. module: account_voucher -#: rml:voucher.cash_amount:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid "Through :" -msgstr "" - -#. module: account_voucher -#: field:account.voucher,reference_type:0 -msgid "Reference Type" -msgstr "" - -#. module: account_voucher -#: model:ir.model,name:account_voucher.model_account_voucher -msgid "Accounting Voucher" -msgstr "" - -#. module: account_voucher -#: field:account.voucher,period_id:0 -msgid "Period" -msgstr "" - -#. module: account_voucher -#: model:ir.ui.menu,name:account_voucher.menu_action_payments_bankpay_voucher_list -msgid "Bank Payments" -msgstr "" - -#. module: account_voucher -#: view:account.move:0 -msgid "General Information" -msgstr "" - -#. module: account_voucher -#: wizard_field:account.voucher.open,init,period_ids:0 -msgid "Periods" -msgstr "" - -#. module: account_voucher -#: view:account.voucher:0 -#: selection:account.voucher,state:0 -#: wizard_button:account.voucher.open,init,end:0 -#: selection:account.voucher.open,init,state:0 -msgid "Cancel" -msgstr "" - -#. module: account_voucher -#: view:account.voucher:0 -#: selection:account.voucher,state:0 -#: selection:account.voucher.open,init,state:0 -msgid "Pro-forma" -msgstr "" - -#. module: account_voucher -#: constraint:ir.model:0 -msgid "" -"The Object name must start with x_ and not contain any special character !" -msgstr "" - -#. module: account_voucher -#: view:account.voucher:0 -msgid "Other Info" -msgstr "" - -#. module: account_voucher -#: model:ir.module.module,shortdesc:account_voucher.module_meta_information -msgid "Accounting Voucher Entries" -msgstr "" - -#. module: account_voucher -#: field:res.currency,sub_name:0 -msgid "Sub Currency" -msgstr "" - -#. module: account_voucher -#: model:ir.actions.act_window,name:account_voucher.action_other_voucher_list -#: model:ir.ui.menu,name:account_voucher.menu_action_other_voucher_list -msgid "Other Vouchers" -msgstr "" - -#. module: account_voucher -#: field:account.voucher.line,name:0 -msgid "Description" -msgstr "" - -#. module: account_voucher -#: rml:voucher.cash_amount:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid "Canceled" -msgstr "" - -#. module: account_voucher -#: selection:account.move,voucher_type:0 -#: selection:account.voucher,type:0 -#: selection:account.voucher.open,init,type:0 -#: model:ir.actions.act_window,name:account_voucher.action_view_cash_pay_voucher_form -#: rml:voucher.cash_amount:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid "Cash Payment Voucher" -msgstr "" - -#. module: account_voucher -#: model:ir.actions.act_window,name:account_voucher.action_receipt_bakreceipt_voucher_list -msgid "Bank Receipt" -msgstr "" - -#. module: account_voucher -#: rml:voucher.cash_amount:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid "-" -msgstr "" - -#. module: account_voucher -#: selection:account.move,voucher_type:0 -#: selection:account.voucher,type:0 -#: selection:account.voucher.open,init,type:0 -#: model:ir.actions.act_window,name:account_voucher.action_view_jour_pur_voucher_form -#: model:ir.ui.menu,name:account_voucher.menu_action_view_jour_pur_voucher_form -msgid "Journal Purchase Voucher" -msgstr "" - -#. module: account_voucher -#: view:account.account:0 -msgid "Closing Balance" -msgstr "" - -#. module: account_voucher -#: field:account.voucher.line,ref:0 -msgid "Ref." -msgstr "" - -#. module: account_voucher -#: selection:account.voucher,state:0 -#: selection:account.voucher.open,init,state:0 -#: rml:voucher.cash_amount:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid "Posted" -msgstr "" - -#. module: account_voucher -#: field:account.voucher,name:0 -msgid "Name" -msgstr "" - -#. module: account_voucher -#: field:account.voucher,move_ids:0 -msgid "Real Entry" -msgstr "" - -#. module: account_voucher -#: model:ir.actions.wizard,name:account_voucher.wizard_account_voucher_open -msgid "Open a Voucher Entry" -msgstr "" - -#. module: account_voucher -#: field:account.voucher,move_id:0 -msgid "Account Entry" -msgstr "" - -#. module: account_voucher -#: view:account.voucher:0 -msgid "Entry Lines" -msgstr "" - -#. module: account_voucher -#: model:ir.ui.menu,name:account_voucher.menu_action_view_bank_rec_voucher_form -msgid "New Bank Receipt" -msgstr "" - -#. module: account_voucher -#: model:ir.ui.menu,name:account_voucher.menu_action_payments_cashpay_voucher_list -msgid "Cash Payments" -msgstr "" - -#. module: account_voucher -#: selection:account.move,voucher_type:0 -#: selection:account.voucher,type:0 -#: selection:account.voucher.open,init,type:0 -#: model:ir.actions.act_window,name:account_voucher.action_view_cash_rec_voucher_form -#: rml:voucher.cash_amount:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid "Cash Receipt Voucher" -msgstr "" - -#. module: account_voucher -#: selection:account.move,voucher_type:0 -#: selection:account.voucher,type:0 -#: selection:account.voucher.open,init,type:0 -#: model:ir.actions.act_window,name:account_voucher.action_view_bank_pay_voucher_form -#: rml:voucher.cash_amount:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid "Bank Payment Voucher" -msgstr "" - -#. module: account_voucher -#: selection:account.move,voucher_type:0 -#: selection:account.voucher,type:0 -#: selection:account.voucher.open,init,type:0 -#: model:ir.actions.act_window,name:account_voucher.action_view_bank_rec_voucher_form -#: rml:voucher.cash_amount:0 -#: rml:voucher.cash_receipt.drcr:0 -msgid "Bank Receipt Voucher" -msgstr "" - -#. module: account_voucher -#: field:account.account,journal_id:0 -#: field:account.voucher,journal_id:0 -msgid "Journal" -msgstr "" From 2a2bb45c5e57a950258887422c637e06a6d2e368 Mon Sep 17 00:00:00 2001 From: "GPA(OpenERP)" <> Date: Mon, 12 Oct 2009 18:03:10 +0530 Subject: [PATCH 05/54] [FIX] Project_timesheet : Wrong synchro on analytic line creation fro tasks(for name). lp bug: https://launchpad.net/bugs/447402 fixed bzr revid: jvo@tinyerp.com-20091012123310-gih8iz51zuxmlxs4 --- addons/project_timesheet/project_timesheet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project_timesheet/project_timesheet.py b/addons/project_timesheet/project_timesheet.py index 71c3542c010..f914faec86f 100644 --- a/addons/project_timesheet/project_timesheet.py +++ b/addons/project_timesheet/project_timesheet.py @@ -84,7 +84,7 @@ class project_work(osv.osv): if line_id in list_avail_ids: obj = self.pool.get('hr.analytic.timesheet') if 'name' in vals: - vals_line['name'] = '%s: %s' % (tools.ustr(task.name), tools.ustr(vals['name']) or '/') + vals_line['name'] = '%s: %s' % (tools.ustr(task.task_id.name), tools.ustr(vals['name']) or '/') if 'user_id' in vals: vals_line['user_id'] = vals['user_id'] if 'date' in vals: From cbea7944ca8514adc3f1b1465c4f2769fb4c95d2 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Mon, 12 Oct 2009 23:13:39 +0200 Subject: [PATCH 06/54] [FIX] bugfix residual computation and multi-currencies bzr revid: fp@tinyerp.com-20091012211339-nsgw8uawrjj8qmot --- addons/account/invoice.py | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index 559f0a88156..10a54e8bb37 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -103,15 +103,23 @@ class account_invoice(osv.osv): def _amount_residual(self, cr, uid, ids, name, args, context=None): res = {} data_inv = self.browse(cr, uid, ids) + cur_obj = self.pool.get('res.currency') for inv in data_inv: - paid_amt = 0.0 - to_pay = inv.amount_total + debit = credit = 0.0 for lines in inv.move_lines: - if lines.amount_currency and lines.currency_id: - paid_amt += lines.amount_currency + if lines.account_id.company_currency_id.id <> inv.currency_id.id: + if lines.debit: + debit += cur_obj.compute(cr, uid, lines.account_id.company_currency_id.id, inv.currency_id.id, lines.debit) + if lines.credit: + credit += cur_obj.compute(cr, uid, lines.account_id.company_currency_id.id, inv.currency_id.id, lines.credit) else: - paid_amt += lines.credit + lines.debit - res[inv.id] = round(to_pay - abs(paid_amt),int(config['price_accuracy'])) + debit += lines.debit + credit += lines.credit + if inv.type in ('out_invoice','in_refund'): + result = inv.amount_total * (1.0 - credit / (debit + inv.amount_total)) + else: + result = inv.amount_total * (1.0 - debit / (credit + inv.amount_total)) + res[inv.id] = round(result,int(config['price_accuracy'])) return res def _get_lines(self, cr, uid, ids, name, arg, context=None): From f28d004d3a8afb50c2911088b860e7b504b547aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Valyi?= <> Date: Tue, 13 Oct 2009 13:01:44 +0530 Subject: [PATCH 07/54] added pruchase link in product view bzr revid: hda@tinyerp.com-20091013073144-w5g0xgos6czko872 --- addons/purchase/purchase_view.xml | 8 ++++++++ addons/sale/sale.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index 2d020bd6180..9e3eda61554 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -233,5 +233,13 @@ name="Purchase orders" res_model="purchase.order" src_model="res.partner"/> + + + diff --git a/addons/sale/sale.py b/addons/sale/sale.py index 0f13e8051d9..30c24f7af25 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -225,7 +225,7 @@ class sale_order(osv.osv): 'project_id': fields.many2one('account.analytic.account', 'Analytic Account', readonly=True, states={'draft': [('readonly', False)]}), 'order_line': fields.one2many('sale.order.line', 'order_id', 'Order Lines', readonly=True, states={'draft': [('readonly', False)]}), - 'invoice_ids': fields.many2many('account.invoice', 'sale_order_invoice_rel', 'order_id', 'invoice_id', 'Invoice', help="This is the list of invoices that have been generated for this sale order. The same sale order may have been invoiced in several times (by line for example)."), + 'invoice_ids': fields.many2many('account.invoice', 'sale_order_invoice_rel', 'order_id', 'invoice_id', 'Invoices', help="This is the list of invoices that have been generated for this sale order. The same sale order may have been invoiced in several times (by line for example)."), 'picking_ids': fields.one2many('stock.picking', 'sale_id', 'Related Packing', readonly=True, help="This is the list of picking list that have been generated for this invoice"), 'shipped': fields.boolean('Picked', readonly=True), 'picked_rate': fields.function(_picked_rate, method=True, string='Picked', type='float'), From 6b9040ca8d0be10f1aa65078e0e9da1776c07211 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 13 Oct 2009 16:34:10 +0200 Subject: [PATCH 08/54] [FIX] account: avoid ZeroDivisionError bzr revid: chs@tinyerp.com-20091013143410-sz59hp38dvv1ufor --- addons/account/invoice.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index 10a54e8bb37..10a49230480 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -115,7 +115,10 @@ class account_invoice(osv.osv): else: debit += lines.debit credit += lines.credit - if inv.type in ('out_invoice','in_refund'): + + if not inv.amount_total: + result = 0.0 + elif inv.type in ('out_invoice','in_refund'): result = inv.amount_total * (1.0 - credit / (debit + inv.amount_total)) else: result = inv.amount_total * (1.0 - debit / (credit + inv.amount_total)) From e25cb298e097ee0449accc94d0f3b3956d8d59f6 Mon Sep 17 00:00:00 2001 From: "Jay (Open ERP)" Date: Tue, 13 Oct 2009 20:15:38 +0530 Subject: [PATCH 09/54] [FIX] Sale : Better error message when account is missing from SOL for Invioce lp bug: https://launchpad.net/bugs/449583 fixed bzr revid: jvo@tinyerp.com-20091013144538-2k7w8zug6xvf3nsd --- addons/sale/sale.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/sale/sale.py b/addons/sale/sale.py index 30c24f7af25..6a9572b547c 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -818,6 +818,9 @@ class sale_order_line(osv.osv): int(config['price_accuracy'])) fpos = line.order_id.fiscal_position or False a = self.pool.get('account.fiscal.position').map_account(cr, uid, fpos, a) + if not a: + raise osv.except_osv(_('Error !'), + _('There is no income category account defined in default Properties for Product Category or Fiscal Position is not defined !')) inv_id = self.pool.get('account.invoice.line').create(cr, uid, { 'name': line.name, 'origin': line.order_id.name, From e92ddd29994f8cd915f4604c3e19f4afc69d9179 Mon Sep 17 00:00:00 2001 From: Quentin De Paoli Date: Tue, 13 Oct 2009 16:50:16 +0200 Subject: [PATCH 10/54] [FIX] hr_expense: corrected error message bzr revid: qdp@cyan-20091013145016-xagtk35k93ip97y7 --- addons/hr_expense/hr_expense.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_expense/hr_expense.py b/addons/hr_expense/hr_expense.py index 0523dcb687c..f0fda12c6c5 100644 --- a/addons/hr_expense/hr_expense.py +++ b/addons/hr_expense/hr_expense.py @@ -139,7 +139,7 @@ class hr_expense_expense(osv.osv): 'account_analytic_id': l.analytic_account.id, })) if not exp.employee_id.address_id: - raise osv.except_osv(_('Error !'), _('The employee must have a contact address')) + raise osv.except_osv(_('Error !'), _('The employee must have a working address')) acc = exp.employee_id.address_id.partner_id.property_account_payable.id payment_term_id = exp.employee_id.address_id.partner_id.property_payment_term.id inv = { From 95ec254f709f55e64e50190554fa5004c63aa459 Mon Sep 17 00:00:00 2001 From: "Christophe Chauvet(OpenERP)" <> Date: Tue, 13 Oct 2009 20:42:18 +0530 Subject: [PATCH 11/54] [FIX] Base_report_creator : Allowing to use current userid lp bug: https://launchpad.net/bugs/446391 fixed bzr revid: jvo@tinyerp.com-20091013151218-o1vdbejzd6djq6bt --- addons/base_report_creator/base_report_creator.py | 4 ++-- addons/base_report_creator/base_report_creator_view.xml | 2 ++ addons/base_report_creator/wizard/wiz_set_filter_fields.py | 6 +++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/addons/base_report_creator/base_report_creator.py b/addons/base_report_creator/base_report_creator.py index bcca40a153e..79824d227c6 100644 --- a/addons/base_report_creator/base_report_creator.py +++ b/addons/base_report_creator/base_report_creator.py @@ -259,8 +259,8 @@ class report_creator(osv.osv): ret_str = ret_str[0:len(ret_str)-3] if ret_str.endswith('or'): ret_str = ret_str[0:len(ret_str)-2] - ret_str = ret_str.strip() - return ret_str + ret_str = ret_str.strip() + return ret_str % {'uid' : uid} def _id_get(self, cr, uid, id, context): # return 'min(sale_order_line.id)' diff --git a/addons/base_report_creator/base_report_creator_view.xml b/addons/base_report_creator/base_report_creator_view.xml index 7ae858012ed..6c2df4466d6 100644 --- a/addons/base_report_creator/base_report_creator_view.xml +++ b/addons/base_report_creator/base_report_creator_view.xml @@ -86,6 +86,8 @@ + +