From b698caf42e8abe369dc14450d4d76ee83e5a76cd Mon Sep 17 00:00:00 2001 From: Joren Van Onder Date: Wed, 1 Jun 2016 09:37:30 +0200 Subject: [PATCH] [FIX] point_of_sale: apply extended cash box behavior properly Normally when you manually add or remove money from the cashbox the reference on the bank statement line should be set to the name of the session. But because the wrong function names where used this didn't happen. Introduced by f5ad25168674e33149f4371ac0115b1f5bd9e6f3. Fixes #12224 --- addons/point_of_sale/wizard/pos_box.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/point_of_sale/wizard/pos_box.py b/addons/point_of_sale/wizard/pos_box.py index e013aea3167..6e93a760b57 100644 --- a/addons/point_of_sale/wizard/pos_box.py +++ b/addons/point_of_sale/wizard/pos_box.py @@ -29,12 +29,12 @@ class PosBox(CashBox): class PosBoxIn(PosBox): _inherit = 'cash.box.in' - def _compute_values_for_statement_line(self, cr, uid, box, record, context=None): + def _calculate_values_for_statement_line(self, cr, uid, id, record, context=None): if context is None: context = {} - values = super(PosBoxIn, self)._compute_values_for_statement_line(cr, uid, box, record, context=context) + values = super(PosBoxIn, self)._calculate_values_for_statement_line(cr, uid, id, record, context=context)[0] active_model = context.get('active_model', False) or False active_ids = context.get('active_ids', []) or [] @@ -49,8 +49,8 @@ class PosBoxIn(PosBox): class PosBoxOut(PosBox): _inherit = 'cash.box.out' - def _compute_values_for_statement_line(self, cr, uid, box, record, context=None): - values = super(PosBoxOut, self)._compute_values_for_statement_line(cr, uid, box, record, context=context) + def _calculate_values_for_statement_line(self, cr, uid, id, record, context=None): + values = super(PosBoxOut, self)._calculate_values_for_statement_line(cr, uid, id, record, context=context)[0] active_model = context.get('active_model', False) or False active_ids = context.get('active_ids', []) or []