From ade18f9376a21291462fce6feb0658d8910e0ecf Mon Sep 17 00:00:00 2001 From: Tejas Tank Date: Wed, 6 Mar 2013 14:38:32 +0530 Subject: [PATCH 01/57] [FIX] Account: Cash register money in/out context issue fixed. bzr revid: tta@openerp.com-20130306090832-w4y78ml131osbru0 --- addons/account/wizard/pos_box.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/wizard/pos_box.py b/addons/account/wizard/pos_box.py index 49178dfd3ea..65766c888d6 100644 --- a/addons/account/wizard/pos_box.py +++ b/addons/account/wizard/pos_box.py @@ -23,7 +23,7 @@ class CashBox(osv.osv_memory): records = self.pool.get(active_model).browse(cr, uid, active_ids, context=context) - return self._run(cr, uid, ids, records, context=None) + return self._run(cr, uid, ids, records, context=context) def _run(self, cr, uid, ids, records, context=None): for box in self.browse(cr, uid, ids, context=context): From 1e48c245167c4d887b2c3c2aa36aa4be23ddefa6 Mon Sep 17 00:00:00 2001 From: Tejas Tank Date: Wed, 6 Mar 2013 15:08:28 +0530 Subject: [PATCH 02/57] [FIX] Point Of Sale: Added Closing Subtotal in Cashbox lines. bzr revid: tta@openerp.com-20130306093828-ult0l5tnxdsvm8eb --- addons/point_of_sale/point_of_sale_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/point_of_sale_view.xml b/addons/point_of_sale/point_of_sale_view.xml index 8a53015b7d7..216d811be98 100644 --- a/addons/point_of_sale/point_of_sale_view.xml +++ b/addons/point_of_sale/point_of_sale_view.xml @@ -915,7 +915,7 @@ - + From cba3ed3da4715cbf850847ddab6d469cf56238bc Mon Sep 17 00:00:00 2001 From: "Ajay Chauhan (OpenERP)" Date: Fri, 8 Mar 2013 11:56:22 +0530 Subject: [PATCH 03/57] [IMP] Improve cash register's cash control tab view & made it like pos bzr revid: cha@tinyerp.com-20130308062622-4aln2cagaj1pyzvt --- addons/account/account_view.xml | 46 +++++++++++++++++++++------------ 1 file changed, 29 insertions(+), 17 deletions(-) diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 3ce60902d94..28483d1a194 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -2311,23 +2311,35 @@ - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 02237190ccfebdf5e9654f2cc85875e228c833fd Mon Sep 17 00:00:00 2001 From: "Ajay Chauhan (OpenERP)" Date: Fri, 8 Mar 2013 12:28:37 +0530 Subject: [PATCH 04/57] added difference field in cash control tab bzr revid: cha@tinyerp.com-20130308065837-ag6jp60q27mjrqwf --- addons/account/account_view.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 28483d1a194..20ac1d30653 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -2353,8 +2353,9 @@ - + + From 3a554a94867160bf2d7455ff9abd170257dfe21d Mon Sep 17 00:00:00 2001 From: "Ajay Chauhan (OpenERP)" Date: Fri, 8 Mar 2013 12:50:42 +0530 Subject: [PATCH 05/57] [IMP] added sum attribute to subtotal_closing bzr revid: cha@tinyerp.com-20130308072042-e088oo32vyzpf2f4 --- addons/account/account_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 20ac1d30653..c52f8bc9779 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -2335,7 +2335,7 @@ - + From 771792555decfea12ef9457bd8e487f14b4b1ada Mon Sep 17 00:00:00 2001 From: "Ajay Chauhan (OpenERP)" Date: Fri, 8 Mar 2013 16:03:25 +0530 Subject: [PATCH 06/57] [IMP] made total fields in cash register like pos bzr revid: cha@tinyerp.com-20130308103325-w9po1yqhuz84um1y --- addons/account/account_view.xml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index c52f8bc9779..384553701ee 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -2322,7 +2322,7 @@ - + @@ -2346,16 +2346,17 @@ - - - - - - + + + + + - - - + + + + + From c216e9521c4493c431bcd1262d62119b959c40b9 Mon Sep 17 00:00:00 2001 From: "Ajay Chauhan (OpenERP)" Date: Wed, 13 Mar 2013 17:22:18 +0530 Subject: [PATCH 07/57] [IMP] account: remove added string from the fields bzr revid: cha@tinyerp.com-20130313115218-uf1eqfynqo55jf8t --- addons/account/account_view.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 384553701ee..09152646b63 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -2315,7 +2315,7 @@ - + @@ -2325,7 +2325,7 @@ - + @@ -2334,7 +2334,7 @@ - + From 4b58ca9fb760762fe8a585ad243bbe1b8286a6f4 Mon Sep 17 00:00:00 2001 From: "Ajay Chauhan (OpenERP)" Date: Wed, 13 Mar 2013 17:37:03 +0530 Subject: [PATCH 08/57] [IMP] account, pos: change help of fields bzr revid: cha@tinyerp.com-20130313120703-cfcmasmjuwbqgzug --- addons/account/account_cash_statement.py | 2 +- addons/point_of_sale/point_of_sale.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/account_cash_statement.py b/addons/account/account_cash_statement.py index 86d3b0d24de..93deb96c7c4 100644 --- a/addons/account/account_cash_statement.py +++ b/addons/account/account_cash_statement.py @@ -179,7 +179,7 @@ class account_cash_statement(osv.osv): 'opening_details_ids' : fields.one2many('account.cashbox.line', 'bank_statement_id', string='Opening Cashbox Lines'), 'closing_details_ids' : fields.one2many('account.cashbox.line', 'bank_statement_id', string='Closing Cashbox Lines'), 'user_id': fields.many2one('res.users', 'Responsible', required=False), - 'difference' : fields.function(_compute_difference, method=True, string="Difference", type="float"), + 'difference' : fields.function(_compute_difference, method=True, string="Difference", type="float", help="Difference between the counted cash control at the closing and the ending balance."), 'last_closing_balance' : fields.function(_compute_last_closing_balance, method=True, string='Last Closing Balance', type='float'), } _defaults = { diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index ea7460dae21..a7df9a60173 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -242,7 +242,7 @@ class pos_session(osv.osv): 'cash_register_difference' : fields.related('cash_register_id', 'difference', type='float', string='Difference', - help="Difference between the counted cash control at the closing and the computed balance.", + help="Difference between the counted cash control at the closing and the ending balance.", readonly=True), 'journal_ids' : fields.related('config_id', 'journal_ids', From c121461ea863c5ddb9c78a4c9780d29688d63b19 Mon Sep 17 00:00:00 2001 From: "Ajay Chauhan (OpenERP)" Date: Thu, 14 Mar 2013 10:52:59 +0530 Subject: [PATCH 09/57] [IMP] account, pos: change string Theoretical Balance to 'Computed Balance' bzr revid: cha@tinyerp.com-20130314052259-9zp8hwepvoey29mv --- addons/account/account_view.xml | 2 +- addons/point_of_sale/point_of_sale_view.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 71f500f4371..b3d75bf42d4 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -2350,7 +2350,7 @@ - + diff --git a/addons/point_of_sale/point_of_sale_view.xml b/addons/point_of_sale/point_of_sale_view.xml index 216d811be98..8b2232ed472 100644 --- a/addons/point_of_sale/point_of_sale_view.xml +++ b/addons/point_of_sale/point_of_sale_view.xml @@ -924,7 +924,7 @@ - +
From ade85dfa03c69d46aae441e3743e7525f78d2f0e Mon Sep 17 00:00:00 2001 From: "Ajay Chauhan (OpenERP)" Date: Thu, 14 Mar 2013 11:07:27 +0530 Subject: [PATCH 10/57] [IMP] account: change help string of field 'balance end' bzr revid: cha@tinyerp.com-20130314053727-jsjsznfmi9y1vp9a --- addons/account/account_bank_statement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account_bank_statement.py b/addons/account/account_bank_statement.py index 8e1a5dd26c6..7a620c5065e 100644 --- a/addons/account/account_bank_statement.py +++ b/addons/account/account_bank_statement.py @@ -112,7 +112,7 @@ class account_bank_statement(osv.osv): 'account.bank.statement': (lambda self, cr, uid, ids, c={}: ids, ['line_ids','move_line_ids','balance_start'], 10), 'account.bank.statement.line': (_get_statement, ['amount'], 10), }, - string="Computed Balance", help='Balance as calculated based on Starting Balance and transaction lines'), + string="Computed Balance", help='Balance as calculated based on Opening Balance and transaction lines'), 'company_id': fields.related('journal_id', 'company_id', type='many2one', relation='res.company', string='Company', store=True, readonly=True), 'line_ids': fields.one2many('account.bank.statement.line', 'statement_id', 'Statement lines', From c8c72c150b4d721ce8bacf79c8cd9f5b38360dcb Mon Sep 17 00:00:00 2001 From: "Ajay Chauhan (OpenERP)" Date: Thu, 14 Mar 2013 12:09:11 +0530 Subject: [PATCH 11/57] [IMP] account: solve vertical alignment problem at cash register total bzr revid: cha@tinyerp.com-20130314063911-rg1bjy80h99r4yb3 --- addons/account/account_view.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index b3d75bf42d4..931e4c017b1 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -2352,12 +2352,12 @@ - +
- +
From 1fc093586544a73602d76bc6fde06bc7f3abe29b Mon Sep 17 00:00:00 2001 From: "Ajay Chauhan (OpenERP)" Date: Thu, 14 Mar 2013 12:51:56 +0530 Subject: [PATCH 12/57] [IMP] account: solve missing currency symbol issue at cash register total bzr revid: cha@tinyerp.com-20130314072156-2fjxrvqex1jtbwoo --- addons/account/account_view.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 931e4c017b1..00edfcb0a0c 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -2348,14 +2348,14 @@ - - - + + +
- - + +
From dbc91ddf993b3f2d3443b9d4982cac190db4475b Mon Sep 17 00:00:00 2001 From: "Ajay Chauhan (OpenERP)" Date: Thu, 14 Mar 2013 17:35:04 +0530 Subject: [PATCH 13/57] [IMP] account: made 'difference' small & 'computed balance' bold bzr revid: cha@tinyerp.com-20130314120504-30st2jl9mo5ylxqc --- addons/account/account_view.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 00edfcb0a0c..ee74915ac9a 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -2349,13 +2349,16 @@ - - +
- +
From d0933e93b55bc4be9ec19bc3272554d8fe2938da Mon Sep 17 00:00:00 2001 From: "Ajay Chauhan (OpenERP)" Date: Fri, 15 Mar 2013 12:43:39 +0530 Subject: [PATCH 14/57] [IMP] account: added classes to set marginn & get label bold bzr revid: cha@tinyerp.com-20130315071339-wu5yz4t8pax9ijlk --- addons/account/account_view.xml | 8 ++++---- .../static/src/css/account_move_reconciliation.css | 9 +++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index ee74915ac9a..9df17305287 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -2349,16 +2349,16 @@ -
-
diff --git a/addons/account/static/src/css/account_move_reconciliation.css b/addons/account/static/src/css/account_move_reconciliation.css index 2b407226905..43241461a16 100644 --- a/addons/account/static/src/css/account_move_reconciliation.css +++ b/addons/account/static/src/css/account_move_reconciliation.css @@ -16,4 +16,13 @@ .openerp .oe_account_reconciliation>div>div { display: table-cell; width: 50%: +} +.openerp .oe_force_bold { + font-weight: bold !important; +} +.openerp .oe_account_opening_total { + margin-right: -14px; +} +.openerp .oe_account_ening_total { + margin-right: -2px; } \ No newline at end of file From bcd4ee5cd2f6050ed776d06b8b14372aedfa4ceb Mon Sep 17 00:00:00 2001 From: "Ajay Chauhan (OpenERP)" Date: Fri, 15 Mar 2013 13:01:31 +0530 Subject: [PATCH 15/57] [IMP] account: added class 'oe_account_total' to get total in align bzr revid: cha@tinyerp.com-20130315073131-eltl1141mtxspokd --- addons/account/account_view.xml | 6 +++--- .../account/static/src/css/account_move_reconciliation.css | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 9df17305287..017db65f79c 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -2350,15 +2350,15 @@
diff --git a/addons/account/static/src/css/account_move_reconciliation.css b/addons/account/static/src/css/account_move_reconciliation.css index 43241461a16..cff77c0a2ee 100644 --- a/addons/account/static/src/css/account_move_reconciliation.css +++ b/addons/account/static/src/css/account_move_reconciliation.css @@ -25,4 +25,7 @@ } .openerp .oe_account_ening_total { margin-right: -2px; +} +.openerp .oe_account_total { + margin-left: -2px; } \ No newline at end of file From 0a7683d39f07bd3c7204b2b53417ca736adbc94e Mon Sep 17 00:00:00 2001 From: "Ajay Chauhan (OpenERP)" Date: Fri, 15 Mar 2013 15:24:54 +0530 Subject: [PATCH 16/57] [IMP] account, pos: added string 'Closing Balance' to fields 'balance_end_real' & 'cash_register_balance_end_real' bzr revid: cha@tinyerp.com-20130315095454-ljh2bjd1brds80m5 --- addons/account/account_view.xml | 2 +- addons/point_of_sale/point_of_sale_view.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 017db65f79c..eed0ad0865d 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -2356,7 +2356,7 @@
- + diff --git a/addons/point_of_sale/point_of_sale_view.xml b/addons/point_of_sale/point_of_sale_view.xml index 8b2232ed472..e6e96f1aa14 100644 --- a/addons/point_of_sale/point_of_sale_view.xml +++ b/addons/point_of_sale/point_of_sale_view.xml @@ -938,7 +938,7 @@ - + From 9bcf832d71b03c85fe08376e107969ab2a6dd4ea Mon Sep 17 00:00:00 2001 From: "Ajay Chauhan (OpenERP)" Date: Fri, 15 Mar 2013 15:38:04 +0530 Subject: [PATCH 17/57] [IMP] account, pos: added tooltip to field 'balance_end_real' & made other little change bzr revid: cha@tinyerp.com-20130315100804-9jzt9fgz430gwof9 --- addons/account/account_bank_statement.py | 2 +- addons/account/account_cash_statement.py | 2 +- addons/point_of_sale/point_of_sale.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account/account_bank_statement.py b/addons/account/account_bank_statement.py index 7a620c5065e..4968fa939c7 100644 --- a/addons/account/account_bank_statement.py +++ b/addons/account/account_bank_statement.py @@ -106,7 +106,7 @@ class account_bank_statement(osv.osv): 'balance_start': fields.float('Starting Balance', digits_compute=dp.get_precision('Account'), states={'confirm':[('readonly',True)]}), 'balance_end_real': fields.float('Ending Balance', digits_compute=dp.get_precision('Account'), - states={'confirm': [('readonly', True)]}), + states={'confirm': [('readonly', True)]}, help="Computed using the cash control lines"), 'balance_end': fields.function(_end_balance, store = { 'account.bank.statement': (lambda self, cr, uid, ids, c={}: ids, ['line_ids','move_line_ids','balance_start'], 10), diff --git a/addons/account/account_cash_statement.py b/addons/account/account_cash_statement.py index 93deb96c7c4..c3d2748f1a3 100644 --- a/addons/account/account_cash_statement.py +++ b/addons/account/account_cash_statement.py @@ -179,7 +179,7 @@ class account_cash_statement(osv.osv): 'opening_details_ids' : fields.one2many('account.cashbox.line', 'bank_statement_id', string='Opening Cashbox Lines'), 'closing_details_ids' : fields.one2many('account.cashbox.line', 'bank_statement_id', string='Closing Cashbox Lines'), 'user_id': fields.many2one('res.users', 'Responsible', required=False), - 'difference' : fields.function(_compute_difference, method=True, string="Difference", type="float", help="Difference between the counted cash control at the closing and the ending balance."), + 'difference' : fields.function(_compute_difference, method=True, string="Difference", type="float", help="Difference between the counted cash control at the closing and the closing balance."), 'last_closing_balance' : fields.function(_compute_last_closing_balance, method=True, string='Last Closing Balance', type='float'), } _defaults = { diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index a7df9a60173..8627ff4bb99 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -242,7 +242,7 @@ class pos_session(osv.osv): 'cash_register_difference' : fields.related('cash_register_id', 'difference', type='float', string='Difference', - help="Difference between the counted cash control at the closing and the ending balance.", + help="Difference between the counted cash control at the closing and the closing balance.", readonly=True), 'journal_ids' : fields.related('config_id', 'journal_ids', From b9cd6db6bcb65efce4f1a40012c9f599a657df2b Mon Sep 17 00:00:00 2001 From: "Ajay Chauhan (OpenERP)" Date: Fri, 15 Mar 2013 16:38:51 +0530 Subject: [PATCH 18/57] [IMP] account: once again change css to match alignment of difference bzr revid: cha@tinyerp.com-20130315110851-1i8uufaj9avti7iq --- addons/account/static/src/css/account_move_reconciliation.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/static/src/css/account_move_reconciliation.css b/addons/account/static/src/css/account_move_reconciliation.css index cff77c0a2ee..12edf8f3060 100644 --- a/addons/account/static/src/css/account_move_reconciliation.css +++ b/addons/account/static/src/css/account_move_reconciliation.css @@ -24,7 +24,7 @@ margin-right: -14px; } .openerp .oe_account_ening_total { - margin-right: -2px; + margin-right: -7px; } .openerp .oe_account_total { margin-left: -2px; From d3b14e953abd86593d201bf6d21f0fa95c11bb78 Mon Sep 17 00:00:00 2001 From: "Ajay Chauhan (OpenERP)" Date: Mon, 18 Mar 2013 14:15:47 +0530 Subject: [PATCH 19/57] [IMP] POS: added field currency_id to have currency symbol at pos total bzr revid: cha@tinyerp.com-20130318084547-42fwyv84jqqfi03h --- addons/point_of_sale/point_of_sale.py | 16 +++++++++++++++- addons/point_of_sale/point_of_sale_view.xml | 12 +++++++----- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index 8627ff4bb99..c0043eaf496 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -45,6 +45,18 @@ class pos_config(osv.osv): ('deprecated', 'Deprecated') ] + def _get_currency(self, cr, uid, ids, fieldnames, args, context=None): + result = {} + currency_id = False + user = self.pool.get('res.users') + for pos_config in self.browse(cr, uid, ids, context=context): + if pos_config.journal_id: + currency_id = pos_config.journal_id.currency.id or pos_config.journal_id.company_id.currency_id.id + else: + currency_id = user.browse(cr, uid, pos_config.id, context=context).company_id.currency_id.id + result[pos_config.id] = currency_id + return result + _columns = { 'name' : fields.char('Point of Sale Name', size=32, select=1, required=True, help="An internal identification of the point of sale"), @@ -56,6 +68,7 @@ class pos_config(osv.osv): 'journal_id' : fields.many2one('account.journal', 'Sale Journal', domain=[('type', '=', 'sale')], help="Accounting journal used to post sales entries."), + 'currency_id' : fields.function(_get_currency, type="many2one", string="Currency", relation="res.currency"), 'iface_self_checkout' : fields.boolean('Self Checkout Mode', help="Check this if this point of sale should open by default in a self checkout mode. If unchecked, OpenERP uses the normal cashier mode by default."), 'iface_cashdrawer' : fields.boolean('Cashdrawer Interface'), @@ -198,7 +211,8 @@ class pos_session(osv.osv): 'state' : fields.selection(POS_SESSION_STATE, 'Status', required=True, readonly=True, select=1), - + + 'currency_id' : fields.related('config_id', 'currency_id', type="many2one", relation='res.currency', string="Currnecy"), 'cash_control' : fields.function(_compute_cash_all, multi='cash', type='boolean', string='Has Cash Control'), diff --git a/addons/point_of_sale/point_of_sale_view.xml b/addons/point_of_sale/point_of_sale_view.xml index e6e96f1aa14..c970f8b5870 100644 --- a/addons/point_of_sale/point_of_sale_view.xml +++ b/addons/point_of_sale/point_of_sale_view.xml @@ -772,6 +772,7 @@ + @@ -894,6 +895,7 @@ + @@ -922,9 +924,9 @@
- - - + + +
@@ -938,8 +940,8 @@ - - + + From 3c9a40ff84ef5b80bd8dd7fc4d1111ef0246d2b5 Mon Sep 17 00:00:00 2001 From: "Ajay Chauhan (OpenERP)" Date: Mon, 18 Mar 2013 14:37:47 +0530 Subject: [PATCH 20/57] [IMP] POS: made currency_id field invisible bzr revid: cha@tinyerp.com-20130318090747-4413l0il1pk7slww --- addons/point_of_sale/point_of_sale.py | 2 +- addons/point_of_sale/point_of_sale_view.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index c0043eaf496..19cace48d4d 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -205,6 +205,7 @@ class pos_session(osv.osv): readonly=True, states={'opening_control' : [('readonly', False)]} ), + 'currency_id' : fields.related('config_id', 'currency_id', type="many2one", relation='res.currency', string="Currnecy"), 'start_at' : fields.datetime('Opening Date', readonly=True), 'stop_at' : fields.datetime('Closing Date', readonly=True), @@ -212,7 +213,6 @@ class pos_session(osv.osv): required=True, readonly=True, select=1), - 'currency_id' : fields.related('config_id', 'currency_id', type="many2one", relation='res.currency', string="Currnecy"), 'cash_control' : fields.function(_compute_cash_all, multi='cash', type='boolean', string='Has Cash Control'), diff --git a/addons/point_of_sale/point_of_sale_view.xml b/addons/point_of_sale/point_of_sale_view.xml index c970f8b5870..22ee6abf5a3 100644 --- a/addons/point_of_sale/point_of_sale_view.xml +++ b/addons/point_of_sale/point_of_sale_view.xml @@ -772,7 +772,7 @@ - + @@ -895,7 +895,7 @@ - + From cbc2fc05c8ce64eb5e14cbf8f3058af478034073 Mon Sep 17 00:00:00 2001 From: "Ajay Chauhan (OpenERP)" Date: Mon, 18 Mar 2013 15:29:52 +0530 Subject: [PATCH 21/57] [IMP] POS: made changes to have POS total well aligned bzr revid: cha@tinyerp.com-20130318095952-wynm8qf0nmuq7uc5 --- addons/point_of_sale/point_of_sale_view.xml | 9 ++++++--- addons/point_of_sale/static/src/css/pos.css | 12 ++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/addons/point_of_sale/point_of_sale_view.xml b/addons/point_of_sale/point_of_sale_view.xml index 22ee6abf5a3..db113738620 100644 --- a/addons/point_of_sale/point_of_sale_view.xml +++ b/addons/point_of_sale/point_of_sale_view.xml @@ -925,8 +925,10 @@
- - +
@@ -941,7 +943,8 @@ - + diff --git a/addons/point_of_sale/static/src/css/pos.css b/addons/point_of_sale/static/src/css/pos.css index d9a4d6d00a9..847e4799e97 100644 --- a/addons/point_of_sale/static/src/css/pos.css +++ b/addons/point_of_sale/static/src/css/pos.css @@ -1431,3 +1431,15 @@ box-shadow: 0px 3px 38px rgba(0,0,0,0.3); border-radius: 3px; } +.openerp .oe_force_bold { + font-weight: bold !important; +} +.openerp .oe_pos_opening_total { + margin-right: -14px; +} +.openerp .oe_pos_ening_total { + margin-right: -7px; +} +.openerp .oe_pos_total { + margin-left: -2px; +} \ No newline at end of file From c5f6bba3e8c8c6737ae26d639657504ee895142c Mon Sep 17 00:00:00 2001 From: Tejas Tank Date: Thu, 21 Mar 2013 15:48:28 +0530 Subject: [PATCH 22/57] [IMP] Update tooltips for point of sale. bzr revid: tta@openerp.com-20130321101828-w4ja2itf4eiqty4l --- addons/point_of_sale/point_of_sale.py | 6 +++--- addons/point_of_sale/point_of_sale_view.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index 326a92806f6..db0aeaaf8a8 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -222,7 +222,7 @@ class pos_session(osv.osv): type='float', digits_compute=dp.get_precision('Account'), string="Ending Balance", - help="Computed using the cash control lines", + help="Total of ending cash control line", readonly=True), 'cash_register_balance_start' : fields.related('cash_register_id', 'balance_start', type='float', @@ -237,12 +237,12 @@ class pos_session(osv.osv): type='float', digits_compute=dp.get_precision('Account'), string="Computed Balance", - help="Computed with the initial cash control and the sum of all payments.", + help="Sum of opening cash control total and the total of transactions.", readonly=True), 'cash_register_difference' : fields.related('cash_register_id', 'difference', type='float', string='Difference', - help="Difference between the counted cash control at the closing and the closing balance.", + help="Difference between the closing cash control and the theorical balance.", readonly=True), 'journal_ids' : fields.related('config_id', 'journal_ids', diff --git a/addons/point_of_sale/point_of_sale_view.xml b/addons/point_of_sale/point_of_sale_view.xml index e6e96f1aa14..19bf3cf2b0c 100644 --- a/addons/point_of_sale/point_of_sale_view.xml +++ b/addons/point_of_sale/point_of_sale_view.xml @@ -924,7 +924,7 @@ - +
From 3cc6916ec1cfa0e473620a7929f31cd49632e970 Mon Sep 17 00:00:00 2001 From: Tejas Tank Date: Fri, 22 Mar 2013 16:22:09 +0530 Subject: [PATCH 23/57] [FIX] Cash Journal: When user change the journal, updated the relavent cash box currency units. bzr revid: tta@openerp.com-20130322105209-uemdljwl42rql89h --- addons/account/account_cash_statement.py | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/addons/account/account_cash_statement.py b/addons/account/account_cash_statement.py index c3d2748f1a3..6520ad0ec8a 100644 --- a/addons/account/account_cash_statement.py +++ b/addons/account/account_cash_statement.py @@ -149,23 +149,20 @@ class account_cash_statement(osv.osv): def onchange_journal_id(self, cr, uid, ids, journal_id, context=None): result = super(account_cash_statement, self).onchange_journal_id(cr, uid, ids, journal_id) - if not journal_id: return result - + result['value']['opening_details_ids'] = self._get_cash_open_box_lines(cr, uid, journal_id, context) statement_ids = self.search(cr, uid, [('journal_id', '=', journal_id),('state', '=', 'confirm')], order='create_date desc', limit=1, context=context ) - if not statement_ids: return result st = self.browse(cr, uid, statement_ids[0], context=context) result.setdefault('value', {}).update({'last_closing_balance' : st.balance_end_real}) - return result _columns = { @@ -188,15 +185,11 @@ class account_cash_statement(osv.osv): 'user_id': lambda self, cr, uid, context=None: uid, } - def create(self, cr, uid, vals, context=None): - journal = False - if vals.get('journal_id'): - journal = self.pool.get('account.journal').browse(cr, uid, vals['journal_id'], context=context) - if journal and (journal.type == 'cash') and not vals.get('details_ids'): - vals['details_ids'] = [] - + def _get_cash_open_box_lines(self, cr, uid, journa_id, context): + details_ids = [] + journal = self.pool.get('account.journal').browse(cr, uid, journa_id, context=context) + if journal and (journal.type == 'cash'): last_pieces = None - if journal.with_last_closing_balance == True: domain = [('journal_id', '=', journal.id), ('state', '=', 'confirm')] @@ -207,16 +200,17 @@ class account_cash_statement(osv.osv): last_pieces = dict( (line.pieces, line.number_closing) for line in last_bank_statement.details_ids ) - for value in journal.cashbox_line_ids: nested_values = { 'number_closing' : 0, 'number_opening' : last_pieces.get(value.pieces, 0) if isinstance(last_pieces, dict) else 0, 'pieces' : value.pieces } + details_ids.append([0, False, nested_values]) + + return details_ids - vals['details_ids'].append([0, False, nested_values]) - + def create(self, cr, uid, vals, context=None): res_id = super(account_cash_statement, self).create(cr, uid, vals, context=context) self._update_balances(cr, uid, [res_id], context) return res_id From c9d79bc1efd0b2505bc94571ff4fbbd75f2ec8fb Mon Sep 17 00:00:00 2001 From: Tejas Tank Date: Mon, 25 Mar 2013 12:03:22 +0530 Subject: [PATCH 24/57] [IMP] account.cash.statement: onchange of journal_id, cashbox will be reflected as per journal. bzr revid: tta@openerp.com-20130325063322-57r9edxi0l4mx74j --- addons/account/account_cash_statement.py | 35 ++++++++++++------------ 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/addons/account/account_cash_statement.py b/addons/account/account_cash_statement.py index 6520ad0ec8a..95e7e0581cb 100644 --- a/addons/account/account_cash_statement.py +++ b/addons/account/account_cash_statement.py @@ -148,21 +148,19 @@ class account_cash_statement(osv.osv): return result def onchange_journal_id(self, cr, uid, ids, journal_id, context=None): - result = super(account_cash_statement, self).onchange_journal_id(cr, uid, ids, journal_id) - if not journal_id: - return result - result['value']['opening_details_ids'] = self._get_cash_open_box_lines(cr, uid, journal_id, context) - statement_ids = self.search(cr, uid, - [('journal_id', '=', journal_id),('state', '=', 'confirm')], - order='create_date desc', - limit=1, - context=context - ) - if not statement_ids: - return result - - st = self.browse(cr, uid, statement_ids[0], context=context) - result.setdefault('value', {}).update({'last_closing_balance' : st.balance_end_real}) + result = {} + if journal_id: + result = super(account_cash_statement, self).onchange_journal_id(cr, uid, ids, journal_id) + statement_ids = self.search(cr, uid, + [('journal_id', '=', journal_id),('state', '=', 'confirm')], + order='create_date desc', + limit=1, + context=context + ) + if statement_ids: + st = self.browse(cr, uid, statement_ids[0], context=context) + result.setdefault('value', {}).update({'last_closing_balance' : st.balance_end_real}) + result['value']['opening_details_ids'] = self._get_cash_open_box_lines(cr, uid, ids, journal_id, context) return result _columns = { @@ -185,7 +183,7 @@ class account_cash_statement(osv.osv): 'user_id': lambda self, cr, uid, context=None: uid, } - def _get_cash_open_box_lines(self, cr, uid, journa_id, context): + def _get_cash_open_box_lines(self, cr, uid, ids, journa_id, context): details_ids = [] journal = self.pool.get('account.journal').browse(cr, uid, journa_id, context=context) if journal and (journal.type == 'cash'): @@ -228,7 +226,10 @@ class account_cash_statement(osv.osv): @return: True on success, False otherwise """ - + cashbox_pool = self.pool.get('account.cashbox.line') + if vals.get('journal_id', False): + cashbox_ids = cashbox_pool.search(cr, uid, [('bank_statement_id', 'in', ids)], context=context) + cashbox_pool.unlink(cr, uid, cashbox_ids, context) res = super(account_cash_statement, self).write(cr, uid, ids, vals, context=context) self._update_balances(cr, uid, ids, context) return res From 52cb6ad46f2c643e854d38ae4bcb3e071d854d63 Mon Sep 17 00:00:00 2001 From: Tejas Tank Date: Mon, 25 Mar 2013 16:38:36 +0530 Subject: [PATCH 25/57] [FIX] account.cash.statement: code correct, it successful pass the yml test cases. bzr revid: tta@openerp.com-20130325110836-zfqi4nm0q90zivge --- addons/account/account_cash_statement.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/account/account_cash_statement.py b/addons/account/account_cash_statement.py index 95e7e0581cb..702dd94c04d 100644 --- a/addons/account/account_cash_statement.py +++ b/addons/account/account_cash_statement.py @@ -160,7 +160,9 @@ class account_cash_statement(osv.osv): if statement_ids: st = self.browse(cr, uid, statement_ids[0], context=context) result.setdefault('value', {}).update({'last_closing_balance' : st.balance_end_real}) - result['value']['opening_details_ids'] = self._get_cash_open_box_lines(cr, uid, ids, journal_id, context) + opening_details_ids = self._get_cash_open_box_lines(cr, uid, ids, journal_id, context) + if opening_details_ids: + result['value']['opening_details_ids'] = opening_details_ids return result _columns = { From 69b38773d40af96542db56f851b110496221fd75 Mon Sep 17 00:00:00 2001 From: Tejas Tank Date: Mon, 1 Apr 2013 12:38:55 +0530 Subject: [PATCH 26/57] [FIX] code corrected, if journal_id not set then return empty details_ids. bzr revid: tta@openerp.com-20130401070855-i4jbe8qsu9z9b5md --- addons/account/account_cash_statement.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/account/account_cash_statement.py b/addons/account/account_cash_statement.py index 702dd94c04d..85f32e02198 100644 --- a/addons/account/account_cash_statement.py +++ b/addons/account/account_cash_statement.py @@ -187,6 +187,8 @@ class account_cash_statement(osv.osv): def _get_cash_open_box_lines(self, cr, uid, ids, journa_id, context): details_ids = [] + if not journa_id: + return details_ids journal = self.pool.get('account.journal').browse(cr, uid, journa_id, context=context) if journal and (journal.type == 'cash'): last_pieces = None From 3f6526d1f0891845cc3986438fa9cb2f2c6e53a8 Mon Sep 17 00:00:00 2001 From: Tejas Tank Date: Mon, 1 Apr 2013 15:55:12 +0530 Subject: [PATCH 27/57] [IMP] Code corrected and pos.session, Opening Cashbox filled up for currencies. bzr revid: tta@openerp.com-20130401102512-52tdz9n8zlit4291 --- addons/account/account_cash_statement.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/addons/account/account_cash_statement.py b/addons/account/account_cash_statement.py index 85f32e02198..82423598057 100644 --- a/addons/account/account_cash_statement.py +++ b/addons/account/account_cash_statement.py @@ -160,7 +160,7 @@ class account_cash_statement(osv.osv): if statement_ids: st = self.browse(cr, uid, statement_ids[0], context=context) result.setdefault('value', {}).update({'last_closing_balance' : st.balance_end_real}) - opening_details_ids = self._get_cash_open_box_lines(cr, uid, ids, journal_id, context) + opening_details_ids = self._get_cash_open_box_lines(cr, uid, journal_id, context) if opening_details_ids: result['value']['opening_details_ids'] = opening_details_ids return result @@ -185,11 +185,11 @@ class account_cash_statement(osv.osv): 'user_id': lambda self, cr, uid, context=None: uid, } - def _get_cash_open_box_lines(self, cr, uid, ids, journa_id, context): + def _get_cash_open_box_lines(self, cr, uid, journal_id, context): details_ids = [] - if not journa_id: + if not journal_id: return details_ids - journal = self.pool.get('account.journal').browse(cr, uid, journa_id, context=context) + journal = self.pool.get('account.journal').browse(cr, uid, journal_id, context=context) if journal and (journal.type == 'cash'): last_pieces = None if journal.with_last_closing_balance == True: @@ -213,6 +213,9 @@ class account_cash_statement(osv.osv): return details_ids def create(self, cr, uid, vals, context=None): + journal_id = vals.get('journal_id',False) + if journal_id: + vals['opening_details_ids'] = vals.get('opening_details_ids',False) or self._get_cash_open_box_lines(cr, uid, journal_id, context) res_id = super(account_cash_statement, self).create(cr, uid, vals, context=context) self._update_balances(cr, uid, [res_id], context) return res_id From 14e4841c83fd786a3f4b27abbf41274e0322320c Mon Sep 17 00:00:00 2001 From: Tejas Tank Date: Mon, 1 Apr 2013 16:09:29 +0530 Subject: [PATCH 28/57] [IMP] pos.session:Corrected tooltip for cash_register_difference field. bzr revid: tta@openerp.com-20130401103929-tdpsfl7w8akhh4d8 --- addons/point_of_sale/point_of_sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index aab81fe1b55..2688c19cf33 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -242,7 +242,7 @@ class pos_session(osv.osv): 'cash_register_difference' : fields.related('cash_register_id', 'difference', type='float', string='Difference', - help="Difference between the closing cash control and the theorical balance.", + help="Difference between the closing cash control and the theoretical balance.", readonly=True), 'journal_ids' : fields.related('config_id', 'journal_ids', From 76b7a082750cd5ec68fb024c85ca8d63919f8644 Mon Sep 17 00:00:00 2001 From: Tejas Tank Date: Fri, 5 Apr 2013 14:54:19 +0530 Subject: [PATCH 29/57] [IMP] pos session and cash register, Improved tooltip and layout. bzr revid: tta@openerp.com-20130405092419-jpa89isevfq6jw49 --- addons/account/account_cash_statement.py | 5 +++-- addons/account/account_view.xml | 11 +++++------ addons/point_of_sale/point_of_sale.py | 11 ++++++----- addons/point_of_sale/point_of_sale_view.xml | 5 ++--- addons/point_of_sale/static/src/css/pos.css | 13 ++++++++----- 5 files changed, 24 insertions(+), 21 deletions(-) diff --git a/addons/account/account_cash_statement.py b/addons/account/account_cash_statement.py index 82423598057..68d170fe290 100644 --- a/addons/account/account_cash_statement.py +++ b/addons/account/account_cash_statement.py @@ -170,13 +170,14 @@ class account_cash_statement(osv.osv): store = { 'account.bank.statement': (lambda self, cr, uid, ids, context=None: ids, ['line_ids','move_line_ids'], 10), 'account.bank.statement.line': (_get_statement_from_line, ['amount'], 10), - }), + }, + help="Total of cash transaction lines."), 'closing_date': fields.datetime("Closed On"), 'details_ids' : fields.one2many('account.cashbox.line', 'bank_statement_id', string='CashBox Lines'), 'opening_details_ids' : fields.one2many('account.cashbox.line', 'bank_statement_id', string='Opening Cashbox Lines'), 'closing_details_ids' : fields.one2many('account.cashbox.line', 'bank_statement_id', string='Closing Cashbox Lines'), 'user_id': fields.many2one('res.users', 'Responsible', required=False), - 'difference' : fields.function(_compute_difference, method=True, string="Difference", type="float", help="Difference between the counted cash control at the closing and the closing balance."), + 'difference' : fields.function(_compute_difference, method=True, string="Difference", type="float", help="Difference between the closing balance and computed balance."), 'last_closing_balance' : fields.function(_compute_last_closing_balance, method=True, string='Last Closing Balance', type='float'), } _defaults = { diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 1af6460d858..be60e82bb6b 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -2350,17 +2350,16 @@ - -
- -
diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index 4e7e1d0ea84..bf51fdfee1a 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -236,27 +236,28 @@ class pos_session(osv.osv): type='float', digits_compute=dp.get_precision('Account'), string="Ending Balance", - help="Total of ending cash control line", + help="Total of closing cash control lines.", readonly=True), 'cash_register_balance_start' : fields.related('cash_register_id', 'balance_start', type='float', digits_compute=dp.get_precision('Account'), string="Starting Balance", - help="Computed using the cash control at the opening.", + help="Total of opening cash control lines.", readonly=True), 'cash_register_total_entry_encoding' : fields.related('cash_register_id', 'total_entry_encoding', string='Total Cash Transaction', - readonly=True), + readonly=True, + help="Total of all paid sale orders"), 'cash_register_balance_end' : fields.related('cash_register_id', 'balance_end', type='float', digits_compute=dp.get_precision('Account'), string="Computed Balance", - help="Sum of opening cash control total and the total of transactions.", + help="Sum of opening balance and transactions.", readonly=True), 'cash_register_difference' : fields.related('cash_register_id', 'difference', type='float', string='Difference', - help="Difference between the closing cash control and the theoretical balance.", + help="Difference between the closing balance and computed balance.", readonly=True), 'journal_ids' : fields.related('config_id', 'journal_ids', diff --git a/addons/point_of_sale/point_of_sale_view.xml b/addons/point_of_sale/point_of_sale_view.xml index db113738620..ae909a1e743 100644 --- a/addons/point_of_sale/point_of_sale_view.xml +++ b/addons/point_of_sale/point_of_sale_view.xml @@ -925,7 +925,7 @@
- diff --git a/addons/point_of_sale/static/src/css/pos.css b/addons/point_of_sale/static/src/css/pos.css index 847e4799e97..c4a22600a0a 100644 --- a/addons/point_of_sale/static/src/css/pos.css +++ b/addons/point_of_sale/static/src/css/pos.css @@ -1431,15 +1431,18 @@ box-shadow: 0px 3px 38px rgba(0,0,0,0.3); border-radius: 3px; } -.openerp .oe_force_bold { +.openerp .oe_force_bold{ font-weight: bold !important; } -.openerp .oe_pos_opening_total { +.openerp .oe_pos_opening_total{ margin-right: -14px; } -.openerp .oe_pos_ening_total { +.openerp .oe_pos_ening_total{ margin-right: -7px; } -.openerp .oe_pos_total { +.openerp .oe_pos_total{ margin-left: -2px; -} \ No newline at end of file +} +.openerp label.oe_pos_difference{ + margin-right: -11px; +} From 8ed830928fc092ff4c68535680c444b70737f225 Mon Sep 17 00:00:00 2001 From: Tejas Tank Date: Fri, 5 Apr 2013 16:51:03 +0530 Subject: [PATCH 30/57] [IMP] Corrected css for cash register form layout. bzr revid: tta@openerp.com-20130405112103-yt66bugf4oyq246e --- .../account/static/src/css/account_move_reconciliation.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account/static/src/css/account_move_reconciliation.css b/addons/account/static/src/css/account_move_reconciliation.css index 12edf8f3060..ff6ec340787 100644 --- a/addons/account/static/src/css/account_move_reconciliation.css +++ b/addons/account/static/src/css/account_move_reconciliation.css @@ -23,9 +23,9 @@ .openerp .oe_account_opening_total { margin-right: -14px; } -.openerp .oe_account_ening_total { - margin-right: -7px; +.openerp label.oe_account_ening_total { + margin-right: -11px; } .openerp .oe_account_total { margin-left: -2px; -} \ No newline at end of file +} From b062573df4a1bdda014aaecaed23f0372c08611a Mon Sep 17 00:00:00 2001 From: Tejas Tank Date: Tue, 9 Apr 2013 10:17:24 +0530 Subject: [PATCH 31/57] [IMP] pos,cash-register: Corrected tooltips and layout. bzr revid: tta@openerp.com-20130409044724-1jhnyjhp0ka1ckf6 --- addons/account/account_cash_statement.py | 2 +- addons/account/account_view.xml | 12 +++++----- .../src/css/account_move_reconciliation.css | 22 ++++++++++++++----- addons/point_of_sale/point_of_sale.py | 4 ++-- addons/point_of_sale/point_of_sale_view.xml | 4 ++-- addons/point_of_sale/static/src/css/pos.css | 12 ++++++---- 6 files changed, 36 insertions(+), 20 deletions(-) diff --git a/addons/account/account_cash_statement.py b/addons/account/account_cash_statement.py index 68d170fe290..94c9c010d7c 100644 --- a/addons/account/account_cash_statement.py +++ b/addons/account/account_cash_statement.py @@ -177,7 +177,7 @@ class account_cash_statement(osv.osv): 'opening_details_ids' : fields.one2many('account.cashbox.line', 'bank_statement_id', string='Opening Cashbox Lines'), 'closing_details_ids' : fields.one2many('account.cashbox.line', 'bank_statement_id', string='Closing Cashbox Lines'), 'user_id': fields.many2one('res.users', 'Responsible', required=False), - 'difference' : fields.function(_compute_difference, method=True, string="Difference", type="float", help="Difference between the closing balance and computed balance."), + 'difference' : fields.function(_compute_difference, method=True, string="Difference", type="float", help="Difference between the theoritical closing balance and the real closing balance."), 'last_closing_balance' : fields.function(_compute_last_closing_balance, method=True, string='Last Closing Balance', type='float'), } _defaults = { diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index be60e82bb6b..4ed129f6fa5 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -2350,16 +2350,16 @@ - -
- -
diff --git a/addons/account/static/src/css/account_move_reconciliation.css b/addons/account/static/src/css/account_move_reconciliation.css index ff6ec340787..b6baa122fe6 100644 --- a/addons/account/static/src/css/account_move_reconciliation.css +++ b/addons/account/static/src/css/account_move_reconciliation.css @@ -20,12 +20,24 @@ .openerp .oe_force_bold { font-weight: bold !important; } -.openerp .oe_account_opening_total { - margin-right: -14px; +.openerp label.oe_open_balance{ + margin-right: -18px; } -.openerp label.oe_account_ening_total { - margin-right: -11px; +.openerp label.oe_subtotal_footer_separator{ + float:right; +} +.openerp label.oe_mini_subtotal_footer_separator{ + margin-right: -14px; } .openerp .oe_account_total { - margin-left: -2px; + margin-left: -2px; } +.openerp label.oe_real_closing_balance{ + min-width: 184px !important; +} +.openerp label.oe_difference { + margin-right: -10px; + padding-left: 10px !important; + min-width: 195px !important; +} + diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index bf51fdfee1a..c735384c6ec 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -251,13 +251,13 @@ class pos_session(osv.osv): 'cash_register_balance_end' : fields.related('cash_register_id', 'balance_end', type='float', digits_compute=dp.get_precision('Account'), - string="Computed Balance", + string="Theoritical Closing Balance", help="Sum of opening balance and transactions.", readonly=True), 'cash_register_difference' : fields.related('cash_register_id', 'difference', type='float', string='Difference', - help="Difference between the closing balance and computed balance.", + help="Difference between the theoritical closing balance and the real closing balance.", readonly=True), 'journal_ids' : fields.related('config_id', 'journal_ids', diff --git a/addons/point_of_sale/point_of_sale_view.xml b/addons/point_of_sale/point_of_sale_view.xml index ae909a1e743..38bd0068864 100644 --- a/addons/point_of_sale/point_of_sale_view.xml +++ b/addons/point_of_sale/point_of_sale_view.xml @@ -927,7 +927,7 @@