From 14b82482893aae6b7c37298c962ecdab13a84487 Mon Sep 17 00:00:00 2001 From: "uco (Open ERP)" Date: Tue, 28 Sep 2010 17:27:44 +0530 Subject: [PATCH 1/3] [IMP] point_of_sale: Improved according to changes in account. bzr revid: uco@tinyerp.com-20100928115744-j0ljddt1lt480x7z --- addons/point_of_sale/account_bank_statement.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/point_of_sale/account_bank_statement.py b/addons/point_of_sale/account_bank_statement.py index 395319eeb64..c2d7577491c 100644 --- a/addons/point_of_sale/account_bank_statement.py +++ b/addons/point_of_sale/account_bank_statement.py @@ -46,8 +46,8 @@ class account_cash_statement(osv.osv): _inherit = 'account.bank.statement' - def _equal_balance(self, cr, uid, ids, statement, context={}): - + def _equal_balance(self, cr, uid, cash_id, context={}): + statement = self.browse(cr, uid, cash_id, context=context) if not statement.journal_id.check_dtls: return True From f548ef17747eb0d2221afc5f086402923f00718a Mon Sep 17 00:00:00 2001 From: "uco (Open ERP)" Date: Tue, 28 Sep 2010 17:53:28 +0530 Subject: [PATCH 2/3] [REM] point_of_sale: Removed unused import statements suggested by buildbot. bzr revid: uco@tinyerp.com-20100928122328-dxatkro1ygk85a6x --- addons/point_of_sale/account_bank_statement.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/addons/point_of_sale/account_bank_statement.py b/addons/point_of_sale/account_bank_statement.py index c2d7577491c..c24dc221596 100644 --- a/addons/point_of_sale/account_bank_statement.py +++ b/addons/point_of_sale/account_bank_statement.py @@ -20,12 +20,8 @@ # ############################################################################## -import time from osv import osv from osv import fields -from mx import DateTime -from decimal import Decimal -from tools.translate import _ class account_journal(osv.osv): From 18412c566a8172ec3b8ebe3236a61743114840e6 Mon Sep 17 00:00:00 2001 From: "uco (Open ERP)" Date: Wed, 29 Sep 2010 11:21:28 +0530 Subject: [PATCH 3/3] [FIX] point_of_sale: Removed demo data resulting into error and kept it in yaml instead. bzr revid: uco@tinyerp.com-20100929055128-8ft419k4sos1w766 --- addons/point_of_sale/pos_demo.xml | 9 --------- addons/point_of_sale/test/pos_report.yml | 10 ++++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/addons/point_of_sale/pos_demo.xml b/addons/point_of_sale/pos_demo.xml index 18029826008..80ba3d24397 100644 --- a/addons/point_of_sale/pos_demo.xml +++ b/addons/point_of_sale/pos_demo.xml @@ -61,14 +61,5 @@ Discount Applied - - St. 05/19 - 0.0 - 2010-05-19 - - - draft - - diff --git a/addons/point_of_sale/test/pos_report.yml b/addons/point_of_sale/test/pos_report.yml index 1747fb60305..c524ab13087 100644 --- a/addons/point_of_sale/test/pos_report.yml +++ b/addons/point_of_sale/test/pos_report.yml @@ -67,6 +67,16 @@ (data, format) = netsvc.LocalService('report.pos.details').create(cr, uid, [], {'model':'ir.ui.menu', 'form':{'date_start': time.strftime('%Y-%m-%d'), 'date_end': time.strftime('%Y-%m-%d') }}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'point_of_sale- pos details report'+format), 'wb+').write(data) +- + I create a record for Bank Statement. +- + !record {model: account.bank.statement, id: account_bank_statement_st0}: + name: St.05/19 + balance_end_real: 0.0 + date: '2010-05-19' + journal_id: account.bank_journal + period_id: account.period_5 + state: 'draft' - In order to test the PDF reports defined on a Point Of Sale, we will print a Account Statement Report -